mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-20 13:02:15 +00:00
fix
This commit is contained in:
parent
4ca2086cd4
commit
fcb434bd57
1 changed files with 2 additions and 1 deletions
|
|
@ -752,6 +752,8 @@ export async function main(args: string[]) {
|
||||||
authStorage.setRuntimeApiKey(sessionOptions.model.provider, parsed.apiKey);
|
authStorage.setRuntimeApiKey(sessionOptions.model.provider, parsed.apiKey);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const cliThinkingOverride = parsed.thinking !== undefined || cliThinkingFromModel;
|
||||||
|
|
||||||
if (isGatewayCommand) {
|
if (isGatewayCommand) {
|
||||||
const gatewayLoaderOptions = {
|
const gatewayLoaderOptions = {
|
||||||
additionalExtensionPaths: firstPass.extensions,
|
additionalExtensionPaths: firstPass.extensions,
|
||||||
|
|
@ -906,7 +908,6 @@ export async function main(args: string[]) {
|
||||||
|
|
||||||
// Clamp thinking level to model capabilities for CLI-provided thinking levels.
|
// Clamp thinking level to model capabilities for CLI-provided thinking levels.
|
||||||
// This covers both --thinking <level> and --model <pattern>:<thinking>.
|
// This covers both --thinking <level> and --model <pattern>:<thinking>.
|
||||||
const cliThinkingOverride = parsed.thinking !== undefined || cliThinkingFromModel;
|
|
||||||
if (session.model && cliThinkingOverride) {
|
if (session.model && cliThinkingOverride) {
|
||||||
let effectiveThinking = session.thinkingLevel;
|
let effectiveThinking = session.thinkingLevel;
|
||||||
if (!session.model.reasoning) {
|
if (!session.model.reasoning) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue