Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion apps/web/src/lib/ai-gateway/providers/model-settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { isGlmModel } from '@/lib/ai-gateway/providers/zai';
import type {
CustomLlmProvider,
OpenClawModelSettings,
OpenCodePrompt,
OpenCodeSettings,
} from '@kilocode/db/schema-types';
import { ReasoningEffortSchema } from '@kilocode/db/schema-types';
Expand Down Expand Up @@ -118,10 +119,18 @@ function getAiSdkProvider(model: string): CustomLlmProvider | undefined {
return undefined;
}

function getOpenCodePrompt(model: string): OpenCodePrompt | undefined {
if (model.includes('gpt-5.5')) {
return 'gpt55';
}
return undefined;
}

export function getOpenCodeSettings(model: string): OpenCodeSettings | undefined {
const ai_sdk_provider = getAiSdkProvider(model);
const variants = getModelVariants(model);
return { ai_sdk_provider, variants };
const prompt = getOpenCodePrompt(model);
return { ai_sdk_provider, variants, prompt };
}

export function getOpenClawSettings(model: string): OpenClawModelSettings | undefined {
Expand Down
1 change: 1 addition & 0 deletions packages/db/src/schema-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -963,6 +963,7 @@ export const OpenCodePromptSchema = z.enum([
'anthropic',
'trinity',
'anthropic_without_todo',
'ling',
'gpt55',
]);

Expand Down