From 7787baf8766163737e5a6a16c8d2dbae08aafc41 Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Tue, 10 Dec 2024 07:24:01 +0000 Subject: [PATCH] =?UTF-8?q?docs:=20update=20configuration=20for=20fallback?= =?UTF-8?q?=20tools=20=F0=9F=92=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/src/content/docs/getting-started/configuration.mdx | 2 ++ packages/core/src/tools.ts | 3 +++ 2 files changed, 5 insertions(+) diff --git a/docs/src/content/docs/getting-started/configuration.mdx b/docs/src/content/docs/getting-started/configuration.mdx index b1d6a7617..150ea816c 100644 --- a/docs/src/content/docs/getting-started/configuration.mdx +++ b/docs/src/content/docs/getting-started/configuration.mdx @@ -710,6 +710,8 @@ GenAIScript uses the [OpenAI compatibility](https://ai.google.dev/gemini-api/doc so some [limitations](https://ai.google.dev/gemini-api/docs/openai#current-limitations) apply. - `seed` is not supported and ignored. +- [fallback tools](/genaiscript/reference/tools#fallback-tools) are enabled + using Google finishes the OpenAI compatibilty layer. (See [forum](https://discuss.ai.google.dev/t/gemini-openai-compatibility-multiple-functions-support-in-function-calling-error-400/49431)). ::: diff --git a/packages/core/src/tools.ts b/packages/core/src/tools.ts index 4827bf079..d5175975c 100644 --- a/packages/core/src/tools.ts +++ b/packages/core/src/tools.ts @@ -20,6 +20,9 @@ export function isToolsSupported(modelId: string): boolean | undefined { if (provider === MODEL_PROVIDER_TRANSFORMERS) return false + // https://discuss.ai.google.dev/t/multi-turn-tool-usage-with-gemini-openai/53202 + if (provider === MODEL_PROVIDER_GOOGLE) return false + const oai = { "o1-preview": false, "o1-mini": false,