Skip to content

Commit

Permalink
docs: update configuration for fallback tools 💾
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Dec 10, 2024
1 parent ad1273b commit 7787baf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/src/content/docs/getting-started/configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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)).

:::

Expand Down
3 changes: 3 additions & 0 deletions packages/core/src/tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7787baf

Please sign in to comment.