feat(ai): add Vertex Responses entrypoint (#37286)
This commit is contained in:
parent
75f9fd5208
commit
198ca749fd
10 changed files with 197 additions and 10 deletions
|
|
@ -360,7 +360,7 @@ import { model } from "@opencode-ai/ai/providers/openai/responses"
|
|||
model("gpt-4o", { apiKey, transport: "websocket" })
|
||||
```
|
||||
|
||||
Vertex keeps Gemini, Chat, and Messages as separate package-like entrypoints,
|
||||
Vertex keeps Gemini, Chat, Responses, and Messages as separate package-like entrypoints,
|
||||
while sharing project/location resolution and ADC authentication internally:
|
||||
|
||||
```ts
|
||||
|
|
@ -375,6 +375,12 @@ import { model } from "@opencode-ai/ai/providers/google-vertex/chat"
|
|||
model("deepseek-ai/deepseek-v3.2-maas", { project, location: "global" })
|
||||
```
|
||||
|
||||
```ts
|
||||
import { model } from "@opencode-ai/ai/providers/google-vertex/responses"
|
||||
|
||||
model("xai/grok-4.20-reasoning", { project, location: "global" })
|
||||
```
|
||||
|
||||
```ts
|
||||
import { model } from "@opencode-ai/ai/providers/google-vertex/messages"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue