Commit Graph
1 Commits
Author SHA1 Message Date
yetone 7dc8a18d0e provider: a plugin's Gemini model is tested on generateContent, as the gateway asks it
A plugin's @ai-sdk/google model is served by the gateway on Code Assist,
which it sends to the plugin's fetch as Gemini's generateContent. Test
models kept only chat, Responses, Anthropic and Gemini, so such a model was
sent the body of the plugin's first other API: Zed's cloud read a chat body
as a Google request and answered 400 "failed to parse Google AI request:
missing field contents" for every Gemini model (Been on Discord), while
agents were answered. Its test now goes through the gateway's translator
(testTranslated), with the plugin's longer wait.

Run (mote-run): go test ./internal/provider ./internal/gateway ok (120s,
710s) at e0bb3c30a; go vet ./internal/provider ./internal/gateway on
darwin, GOOS=linux and GOOS=windows ok; after rebasing on 484b45d82,
./internal/provider ok again.
Broken by hand: with the provider change reverted,
TestPluginGeminiModelTestedOnGenerateContent is red (fake-gemini tested on
chat, /v1/chat/completions reached).
Not tried: a real Zed account's Gemini model.
2026-10-31 22:21:29 +08:00