|
1 | 1 | // SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. |
2 | 2 | // SPDX-License-Identifier: Apache-2.0 |
3 | | -// |
4 | | -// Licensed under the Apache License, Version 2.0 (the "License"); |
5 | | -// you may not use this file except in compliance with the License. |
6 | | -// You may obtain a copy of the License at |
7 | | -// |
8 | | -// http://www.apache.org/licenses/LICENSE-2.0 |
9 | | -// |
10 | | -// Unless required by applicable law or agreed to in writing, software |
11 | | -// distributed under the License is distributed on an "AS IS" BASIS, |
12 | | -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
13 | | -// See the License for the specific language governing permissions and |
14 | | -// limitations under the License. |
15 | 3 |
|
16 | 4 | use futures::{Stream, StreamExt}; |
17 | 5 | use std::collections::HashMap; |
18 | 6 |
|
19 | 7 | use super::{NvCreateChatCompletionResponse, NvCreateChatCompletionStreamResponse}; |
20 | 8 | use crate::protocols::{ |
21 | | - Annotated, Annotated, |
| 9 | + Annotated, |
22 | 10 | codec::{Message, SseCodecError}, |
23 | 11 | convert_sse_stream, |
24 | 12 | openai::ParsingOptions, |
@@ -198,17 +186,6 @@ impl DeltaAggregator { |
198 | 186 | choice.finish_reason = |
199 | 187 | Some(dynamo_async_openai::types::FinishReason::ToolCalls); |
200 | 188 | } |
201 | | - for tool_call in &tool_calls { |
202 | | - tracing::debug!( |
203 | | - tool_call_id = %tool_call.id, |
204 | | - function_name = %tool_call.function.name, |
205 | | - arguments = %tool_call.function.arguments, |
206 | | - "Parsed structured tool call from aggregated content" |
207 | | - ); |
208 | | - } |
209 | | - choice.tool_calls = Some(tool_calls); |
210 | | - choice.text.clear(); |
211 | | - choice.finish_reason = Some(dynamo_async_openai::types::FinishReason::ToolCalls); |
212 | 189 | } |
213 | 190 | } |
214 | 191 |
|
|
0 commit comments