mirror of
https://github.com/enricoros/big-AGI.git
synced 2026-05-10 21:50:14 -07:00
AIX: Gemini: comment
This commit is contained in:
@@ -252,6 +252,7 @@ export function aixToGeminiGenerateContent(model: AixAPI_Model, _chatGenerate: A
|
||||
|
||||
// [NO-CIRCULATION] can't combine hosted + custom tools with restrictive policies - custom wins -> wipe hosted if any
|
||||
const hasUserRestrictivePolicy = chatGenerate.toolsPolicy?.type === 'any' || chatGenerate.toolsPolicy?.type === 'function_call';
|
||||
// NOTE: we may have to remove the 'hasUserRestrictivePolicy' as some models seem to not want any other tool when user tools are set
|
||||
if (_addedHostedTools && hasUserTools && !hasToolContextCirculation && hasUserRestrictivePolicy) {
|
||||
_addedHostedTools = false;
|
||||
payload.tools = undefined; // wipe
|
||||
|
||||
Reference in New Issue
Block a user