feat(ai): type Vertex request options (#39499)
This commit is contained in:
parent
d72b428061
commit
9554f9a16e
2 changed files with 23 additions and 2 deletions
17
packages/ai/test/provider-options/google-vertex.types.ts
Normal file
17
packages/ai/test/provider-options/google-vertex.types.ts
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import { LLM } from "../../src"
|
||||
import { GoogleVertex } from "../../src/providers"
|
||||
|
||||
const model = GoogleVertex.provider.configure({ apiKey: "test" }).model("gemini-2.5-pro")
|
||||
|
||||
LLM.request({
|
||||
model,
|
||||
prompt: "Hello",
|
||||
providerOptions: { gemini: { thinkingConfig: { includeThoughts: true } } },
|
||||
})
|
||||
|
||||
LLM.request({
|
||||
model,
|
||||
prompt: "Hello",
|
||||
// @ts-expect-error Vertex Gemini includeThoughts must be boolean.
|
||||
providerOptions: { gemini: { thinkingConfig: { includeThoughts: "yes" } } },
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue