feat(ai): support Gemini thinking levels
This commit is contained in:
parent
9c38358197
commit
5bcf62cea0
2 changed files with 21 additions and 0 deletions
|
|
@ -36,6 +36,20 @@ describe("Gemini route", () => {
|
|||
}),
|
||||
)
|
||||
|
||||
it.effect("prepares thinking level", () =>
|
||||
Effect.gen(function* () {
|
||||
const prepared = yield* LLMClient.prepare<Gemini.GeminiBody>(
|
||||
LLM.request({
|
||||
model,
|
||||
prompt: "Say hello.",
|
||||
providerOptions: { gemini: { thinkingConfig: { thinkingLevel: "minimal" } } },
|
||||
}),
|
||||
)
|
||||
|
||||
expect(prepared.body.generationConfig).toEqual({ thinkingConfig: { thinkingLevel: "minimal" } })
|
||||
}),
|
||||
)
|
||||
|
||||
it.effect("lowers chronological system updates to wrapped user text in order", () =>
|
||||
Effect.gen(function* () {
|
||||
const prepared = yield* LLMClient.prepare<Gemini.GeminiBody>(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue