Merge remote-tracking branch 'origin/main'
This commit is contained in:
@@ -460,12 +460,17 @@ function buildParams(
|
||||
}
|
||||
|
||||
if (model.reasoning) {
|
||||
// Always request encrypted reasoning content so reasoning items can be
|
||||
// replayed in multi-turn conversations when store is false (items aren't
|
||||
// persisted server-side, so we must include the full content).
|
||||
// See: https://github.com/can1357/oh-my-pi/issues/41
|
||||
params.include = ["reasoning.encrypted_content"];
|
||||
|
||||
if (options?.reasoningEffort || options?.reasoningSummary) {
|
||||
params.reasoning = {
|
||||
effort: options?.reasoningEffort || "medium",
|
||||
summary: options?.reasoningSummary || "auto",
|
||||
};
|
||||
params.include = ["reasoning.encrypted_content"];
|
||||
} else {
|
||||
if (model.name.toLowerCase().startsWith("gpt-5")) {
|
||||
// Jesus Christ, see https://community.openai.com/t/need-reasoning-false-option-for-gpt-5/1351588/7
|
||||
|
||||
@@ -454,12 +454,17 @@ function buildParams(model: Model<"openai-responses">, context: Context, options
|
||||
}
|
||||
|
||||
if (model.reasoning) {
|
||||
// Always request encrypted reasoning content so reasoning items can be
|
||||
// replayed in multi-turn conversations when store is false (items aren't
|
||||
// persisted server-side, so we must include the full content).
|
||||
// See: https://github.com/can1357/oh-my-pi/issues/41
|
||||
params.include = ["reasoning.encrypted_content"];
|
||||
|
||||
if (options?.reasoningEffort || options?.reasoningSummary) {
|
||||
params.reasoning = {
|
||||
effort: options?.reasoningEffort || "medium",
|
||||
summary: options?.reasoningSummary || "auto",
|
||||
};
|
||||
params.include = ["reasoning.encrypted_content"];
|
||||
} else {
|
||||
if (model.name.startsWith("gpt-5")) {
|
||||
// Jesus Christ, see https://community.openai.com/t/need-reasoning-false-option-for-gpt-5/1351588/7
|
||||
|
||||
@@ -28,9 +28,9 @@ export const defaultModelPerProvider: Record<KnownProvider, string> = {
|
||||
cerebras: "zai-glm-4.6",
|
||||
zai: "glm-4.6",
|
||||
mistral: "devstral-medium-latest",
|
||||
minimax: "MiniMax-M2.1",
|
||||
"minimax-code": "MiniMax-M2.1",
|
||||
"minimax-code-cn": "MiniMax-M2.1",
|
||||
minimax: "MiniMax-M2.5",
|
||||
"minimax-code": "MiniMax-M2.5",
|
||||
"minimax-code-cn": "MiniMax-M2.5",
|
||||
opencode: "claude-opus-4-6",
|
||||
"kimi-code": "kimi-k2.5",
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user