Merge pull request #32 from auriti/fix/tool-choice-none
fix: map tool_choice 'none' in OpenAI shim
This commit is contained in:
@@ -645,6 +645,8 @@ class OpenAIShimMessages {
|
||||
}
|
||||
} else if (tc.type === 'any') {
|
||||
body.tool_choice = 'required'
|
||||
} else if (tc.type === 'none') {
|
||||
body.tool_choice = 'none'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user