|
|
@@ -3,7 +3,7 @@ export type ChatDepth = "light" | "normal" | "deep";
|
|
|
export interface ChatDepthProfile {
|
|
|
readonly depth: ChatDepth;
|
|
|
readonly temperature: number;
|
|
|
- readonly maxTokens: number;
|
|
|
+ readonly maxTokens?: number;
|
|
|
readonly label: string;
|
|
|
}
|
|
|
|
|
|
@@ -15,6 +15,8 @@ export function resolveChatDepthProfile(depth: ChatDepth): ChatDepthProfile {
|
|
|
return { depth, temperature: 0.45, maxTokens: 420, label: "deep" };
|
|
|
case "normal":
|
|
|
default:
|
|
|
- return { depth: "normal", temperature: 0.4, maxTokens: 240, label: "normal" };
|
|
|
+ // No maxTokens — let the model decide its own output length.
|
|
|
+ // Only /depth light|deep explicitly caps tokens.
|
|
|
+ return { depth: "normal", temperature: 0.4, label: "normal" };
|
|
|
}
|
|
|
}
|