wip
parent
f3437d9a49
commit
7a511a1a25
|
|
@ -336,7 +336,7 @@ export namespace ProviderTransform {
|
|||
include: true,
|
||||
}
|
||||
if (model.api.id.includes("gemini-3")) {
|
||||
result["reasoning"] = { effort: "high" }
|
||||
// result["reasoning"] = { effort: "high" }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -356,7 +356,7 @@ export namespace ProviderTransform {
|
|||
includeThoughts: true,
|
||||
}
|
||||
if (model.api.id.includes("gemini-3")) {
|
||||
result["thinkingConfig"]["thinkingLevel"] = "high"
|
||||
// result["thinkingConfig"]["thinkingLevel"] = "high"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -366,7 +366,7 @@ export namespace ProviderTransform {
|
|||
}
|
||||
|
||||
if (!model.api.id.includes("codex") && !model.api.id.includes("gpt-5-pro")) {
|
||||
result["reasoningEffort"] = "medium"
|
||||
// result["reasoningEffort"] = "medium"
|
||||
}
|
||||
|
||||
if (model.api.id.endsWith("gpt-5.") && model.providerID !== "azure") {
|
||||
|
|
|
|||
|
|
@ -90,6 +90,7 @@ export namespace SessionPrompt {
|
|||
noReply: z.boolean().optional(),
|
||||
tools: z.record(z.string(), z.boolean()).optional(),
|
||||
system: z.string().optional(),
|
||||
thinking: MessageV2.Thinking.optional(),
|
||||
parts: z.array(
|
||||
z.discriminatedUnion("type", [
|
||||
MessageV2.TextPart.omit({
|
||||
|
|
@ -727,6 +728,7 @@ export namespace SessionPrompt {
|
|||
agent: agent.name,
|
||||
model: input.model ?? agent.model ?? (await lastModel(input.sessionID)),
|
||||
system: input.system,
|
||||
thinking: input.thinking,
|
||||
}
|
||||
|
||||
const parts = await Promise.all(
|
||||
|
|
|
|||
Loading…
Reference in New Issue