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
12 changes: 6 additions & 6 deletions src/apps/cli/src/ui/model_config_form.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ impl ModelFormResult {
base_url: model.base_url,
api_key: String::new(),
provider_format: model.provider,
context_window: model.context_window.unwrap_or(128_000),
context_window: model.context_window.unwrap_or(300_000),
max_tokens: model.max_tokens.unwrap_or(8_192),
reasoning_preset_options: projection.reasoning_preset_options,
reasoning: projection.reasoning,
Expand Down Expand Up @@ -202,7 +202,7 @@ impl ModelConfigFormState {
base_url: String::new(),
api_key: String::new(),
provider_format_index: 0,
context_window: "128000".into(),
context_window: "300000".into(),
max_tokens: "8192".into(),
reasoning_preset_options: Vec::new(),
reasoning_preset_index: 0,
Expand Down Expand Up @@ -233,7 +233,7 @@ impl ModelConfigFormState {
self.base_url = "https://".into();
self.api_key.clear();
self.provider_format_index = 0;
self.context_window = "128000".into();
self.context_window = "300000".into();
self.max_tokens = "8192".into();
self.reasoning_preset_options.clear();
self.reasoning_preset_index = 0;
Expand Down Expand Up @@ -273,7 +273,7 @@ impl ModelConfigFormState {
.iter()
.position(|&f| f == format)
.unwrap_or(0);
self.context_window = "128000".into();
self.context_window = "300000".into();
self.max_tokens = "8192".into();
self.reasoning_preset_options.clear();
self.reasoning_preset_index = 0;
Expand Down Expand Up @@ -559,7 +559,7 @@ impl ModelConfigFormState {
base_url: self.base_url.trim().to_string(),
api_key: self.api_key.trim().to_string(),
provider_format: PROVIDER_FORMATS[self.provider_format_index].to_string(),
context_window: self.context_window.trim().parse().unwrap_or(128000),
context_window: self.context_window.trim().parse().unwrap_or(300_000),
max_tokens: self.max_tokens.trim().parse().unwrap_or(8192),
reasoning_preset_options: self.reasoning_preset_options.clone(),
reasoning,
Expand Down Expand Up @@ -1237,7 +1237,7 @@ impl ModelConfigFormState {
}
FormField::ApiKey => "Enter your API key",
FormField::ProviderFormat => "",
FormField::ContextWindow => "128000",
FormField::ContextWindow => "300000",
FormField::MaxTokens => "8192",
FormField::DefaultReasoningPreset => "",
FormField::SkipSslVerify => "",
Expand Down
2 changes: 1 addition & 1 deletion src/crates/assembly/core/src/service/config/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ pub(crate) fn validate_current_config_value(value: &Value, context: &str) -> Ope
}

const INSTALLER_MODEL_ID: &str = "installer:default";
const INSTALLER_MODEL_CONTEXT_WINDOW: u32 = 200_000;
const INSTALLER_MODEL_CONTEXT_WINDOW: u32 = 300_000;

fn model_from_installer_handoff(model: InstallerModelHandoff) -> AIModelConfig {
AIModelConfig {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ function createModelDraft(
modelName: trimmedModelName,
manualRequestFormat: overrides?.manualRequestFormat ?? baseConfig?.provider,
category: overrides?.category ?? baseConfig?.category ?? 'general_chat',
contextWindow: overrides?.contextWindow ?? baseConfig?.context_window ?? 200000,
contextWindow: overrides?.contextWindow ?? baseConfig?.context_window ?? 300000,
maxTokens: overrides?.maxTokens ?? baseConfig?.max_tokens,
reasoning,
reasoningProjectionCatalog: overrides?.reasoningProjectionCatalog ?? reasoning.catalog,
Expand Down Expand Up @@ -381,7 +381,7 @@ function modelDraftHasUnsavedChanges(
normalizeComparableString(draft.modelName) !== normalizeComparableString(persisted.model_name) ||
(isOpenCodeApiKeyConfig(persisted) && draft.manualRequestFormat !== persisted.provider) ||
draft.category !== (persisted.category ?? 'general_chat') ||
draft.contextWindow !== (persisted.context_window || 200000) ||
draft.contextWindow !== (persisted.context_window || 300000) ||
draft.maxTokens !== persisted.max_tokens ||
stableJson(draft.reasoning) !== stableJson(canonicalReasoningConfig(persisted))
);
Expand Down Expand Up @@ -746,7 +746,7 @@ const ModelSettingsPage: React.FC = () => {
const createDraftsFromConfigs = (configs: AIModelConfigType[]) => (
configs.map(config => createModelDraft(config.model_name, config, {
configId: config.id,
contextWindow: config.context_window || 200000,
contextWindow: config.context_window || 300000,
maxTokens: config.max_tokens,
reasoning: canonicalReasoningConfig(config),
}))
Expand Down Expand Up @@ -952,7 +952,7 @@ const ModelSettingsPage: React.FC = () => {
base_url: resolvedBaseUrl,
request_url: config.request_url || resolveRequestUrl(resolvedBaseUrl, resolvedProvider, resolvedModelName),
model_name: resolvedModelName,
context_window: config.context_window || 200000,
context_window: config.context_window || 300000,
max_tokens: config.max_tokens,
temperature: config.temperature,
top_p: config.top_p,
Expand Down Expand Up @@ -1098,7 +1098,7 @@ const ModelSettingsPage: React.FC = () => {
api_key: '',
model_name: '',
enabled: true,
context_window: 200000,
context_window: 300000,
category: 'multimodal',
capabilities: getCapabilitiesByCategory('multimodal'),
recommended_for: [],
Expand Down Expand Up @@ -1471,7 +1471,7 @@ const ModelSettingsPage: React.FC = () => {
model_name: '',
provider: template.format,
enabled: true,
context_window: 200000,
context_window: 300000,
category: 'multimodal',
capabilities: getCapabilitiesByCategory('multimodal'),
recommended_for: [],
Expand Down Expand Up @@ -1502,7 +1502,7 @@ const ModelSettingsPage: React.FC = () => {
model_name: '',
provider: 'openai',
enabled: true,
context_window: 200000,
context_window: 300000,
category: 'multimodal',
capabilities: getCapabilitiesByCategory('multimodal'),
recommended_for: [],
Expand Down Expand Up @@ -1543,7 +1543,7 @@ const ModelSettingsPage: React.FC = () => {
model_name: '',
provider: config.provider,
enabled: true,
context_window: config.context_window || 200000,
context_window: config.context_window || 300000,
max_tokens: config.max_tokens,
category: config.category || 'general_chat',
capabilities: config.capabilities || getCapabilitiesByCategory(config.category || 'general_chat'),
Expand Down Expand Up @@ -1580,7 +1580,7 @@ const ModelSettingsPage: React.FC = () => {
setEditingConfig({ ...config, name: getProviderDisplayName(config) });
setSelectedModelDrafts([
createModelDraft(config.model_name, config, {
contextWindow: config.context_window || 200000,
contextWindow: config.context_window || 300000,
maxTokens: config.max_tokens,
reasoning: canonicalReasoningConfig(config),
})
Expand Down
Loading