mirror of
https://github.com/ValueCell-ai/ClawX.git
synced 2026-08-14 08:53:09 +00:00
feat: update OpenAI OAuth default model to gpt-5.6-sol (#1203)
This commit is contained in:
@@ -30,7 +30,7 @@ import { listAgentsSnapshot } from '../../utils/agent-config';
|
||||
|
||||
/** OpenClaw Codex OAuth hooks only apply to the canonical `openai` provider id. */
|
||||
const OPENAI_OAUTH_RUNTIME_PROVIDER = 'openai';
|
||||
const OPENAI_OAUTH_DEFAULT_MODEL_REF = `${OPENAI_OAUTH_RUNTIME_PROVIDER}/gpt-5.5`;
|
||||
const OPENAI_OAUTH_DEFAULT_MODEL_REF = `${OPENAI_OAUTH_RUNTIME_PROVIDER}/gpt-5.6-sol`;
|
||||
|
||||
/**
|
||||
* Provider types that are not in the built-in provider registry (no `providerConfig.api`).
|
||||
|
||||
@@ -31,11 +31,11 @@ export const PROVIDER_DEFINITIONS: ProviderDefinition[] = [
|
||||
requiresApiKey: true,
|
||||
category: 'official',
|
||||
envVar: 'OPENAI_API_KEY',
|
||||
defaultModelId: 'gpt-5.5',
|
||||
defaultModelId: 'gpt-5.6-sol',
|
||||
isOAuth: true,
|
||||
supportsApiKey: true,
|
||||
showModelId: true,
|
||||
modelIdPlaceholder: 'gpt-5.5',
|
||||
modelIdPlaceholder: 'gpt-5.6-sol',
|
||||
supportedAuthModes: ['api_key', 'oauth_browser'],
|
||||
defaultAuthMode: 'api_key',
|
||||
supportsMultipleAccounts: true,
|
||||
|
||||
@@ -19,7 +19,7 @@ import {
|
||||
export type BrowserOAuthProviderType = 'openai';
|
||||
|
||||
const OPENAI_RUNTIME_PROVIDER_ID = 'openai';
|
||||
const OPENAI_OAUTH_DEFAULT_MODEL = 'gpt-5.5';
|
||||
const OPENAI_OAUTH_DEFAULT_MODEL = 'gpt-5.6-sol';
|
||||
|
||||
class BrowserOAuthManager extends EventEmitter {
|
||||
private activeAccountId: string | null = null;
|
||||
|
||||
@@ -172,9 +172,9 @@ export const PROVIDER_TYPE_INFO: ProviderTypeInfo[] = [
|
||||
requiresApiKey: true,
|
||||
isOAuth: true,
|
||||
supportsApiKey: true,
|
||||
defaultModelId: 'gpt-5.5',
|
||||
defaultModelId: 'gpt-5.6-sol',
|
||||
showModelId: true,
|
||||
modelIdPlaceholder: 'gpt-5.5',
|
||||
modelIdPlaceholder: 'gpt-5.6-sol',
|
||||
apiKeyUrl: 'https://platform.openai.com/api-keys',
|
||||
},
|
||||
{
|
||||
|
||||
@@ -234,7 +234,7 @@ describe('provider-runtime-sync refresh strategy', () => {
|
||||
expect(gateway.debouncedRestart).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it('uses gpt-5.5 as the browser OAuth default model for OpenAI', async () => {
|
||||
it('uses gpt-5.6-sol as the browser OAuth default model for OpenAI', async () => {
|
||||
mocks.getProvider.mockResolvedValue(
|
||||
createProvider({
|
||||
id: 'openai-personal',
|
||||
@@ -257,7 +257,7 @@ describe('provider-runtime-sync refresh strategy', () => {
|
||||
|
||||
expect(mocks.setOpenClawDefaultModelWithOverride).toHaveBeenCalledWith(
|
||||
'openai',
|
||||
'openai/gpt-5.5',
|
||||
'openai/gpt-5.6-sol',
|
||||
{
|
||||
baseUrl: 'https://chatgpt.com/backend-api/codex',
|
||||
api: 'openai-chatgpt-responses',
|
||||
|
||||
@@ -201,7 +201,7 @@ describe('provider metadata', () => {
|
||||
|
||||
expect(openai).toMatchObject({
|
||||
showModelId: true,
|
||||
defaultModelId: 'gpt-5.5',
|
||||
defaultModelId: 'gpt-5.6-sol',
|
||||
isOAuth: true,
|
||||
supportsApiKey: true,
|
||||
});
|
||||
@@ -216,7 +216,7 @@ describe('provider metadata', () => {
|
||||
expect(shouldShowProviderModelId(provider, true)).toBe(true);
|
||||
}
|
||||
|
||||
expect(resolveProviderModelForSave(openai, ' ', false)).toBe('gpt-5.5');
|
||||
expect(resolveProviderModelForSave(openai, ' ', false)).toBe('gpt-5.6-sol');
|
||||
expect(resolveProviderModelForSave(google, ' ', false)).toBe('gemini-3.1-pro-preview');
|
||||
expect(resolveProviderModelForSave(minimax, ' ', false)).toBe('MiniMax-M3');
|
||||
expect(resolveProviderModelForSave(minimaxCn, ' ', false)).toBe('MiniMax-M3');
|
||||
|
||||
Reference in New Issue
Block a user