Skip to content

Commit 6118bc8

Browse files
committed
Merge fixes
1 parent 0ac6a62 commit 6118bc8

File tree

2 files changed

+2
-37
lines changed

2 files changed

+2
-37
lines changed

lib/llm/src/protocols/openai/chat_completions/aggregator.rs

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,12 @@
11
// SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
// 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.
153

164
use futures::{Stream, StreamExt};
175
use std::collections::HashMap;
186

197
use super::{NvCreateChatCompletionResponse, NvCreateChatCompletionStreamResponse};
208
use crate::protocols::{
21-
Annotated, Annotated,
9+
Annotated,
2210
codec::{Message, SseCodecError},
2311
convert_sse_stream,
2412
openai::ParsingOptions,
@@ -198,17 +186,6 @@ impl DeltaAggregator {
198186
choice.finish_reason =
199187
Some(dynamo_async_openai::types::FinishReason::ToolCalls);
200188
}
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);
212189
}
213190
}
214191

lib/llm/src/protocols/openai/completions/aggregator.rs

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,5 @@
11
// SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
// 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.
153

164
use std::collections::HashMap;
175

@@ -20,7 +8,7 @@ use futures::{Stream, StreamExt};
208

219
use super::NvCreateCompletionResponse;
2210
use crate::protocols::{
23-
Annotated, Annotated, DataStream, DataStream,
11+
Annotated, DataStream,
2412
codec::{Message, SseCodecError},
2513
common::FinishReason,
2614
convert_sse_stream,

0 commit comments

Comments
 (0)