Added gemini tool calling support

This commit is contained in:
Waleed Latif
2025-02-04 15:43:00 -08:00
parent 1e3beec39f
commit 5ae95bbed9
3 changed files with 189 additions and 2 deletions

View File

@@ -3,10 +3,12 @@ import { getTool } from '@/tools'
import { anthropicProvider } from '@/providers/anthropic'
import { openaiProvider } from '@/providers/openai'
import { ProviderConfig } from '@/providers/types'
import { googleProvider } from '@/providers/google'
const providers: Record<string, ProviderConfig> = {
'anthropic/chat': anthropicProvider,
'openai/chat': openaiProvider
'openai/chat': openaiProvider,
'google/chat': googleProvider
}
export async function POST(request: Request) {