Skip to content

Commit 17e0e57

Browse files
committed
fix: require explicit toolProtocol === NATIVE for native tools activation
Address review feedback: change condition from !== XML to === NATIVE to require explicit opt-in for native tool protocol
1 parent e877088 commit 17e0e57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/providers/lite-llm.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export class LiteLLMHandler extends RouterProvider implements SingleCompletionHa
122122
supportsNativeTools &&
123123
metadata?.tools &&
124124
metadata.tools.length > 0 &&
125-
metadata?.toolProtocol !== TOOL_PROTOCOL.XML
125+
metadata?.toolProtocol === TOOL_PROTOCOL.NATIVE
126126

127127
const requestOptions: OpenAI.Chat.Completions.ChatCompletionCreateParamsStreaming = {
128128
model: modelId,

0 commit comments

Comments
 (0)