Fix provider context limits and AWS authentication routing
This commit is contained in:
@@ -7242,6 +7242,9 @@ impl ProviderSettingsWidget {
|
||||
format!("Context: {}", model.context_size),
|
||||
];
|
||||
|
||||
if let Some(default_context_size) = model.default_context_size {
|
||||
details.push(format!("Default context: {default_context_size}"));
|
||||
}
|
||||
if let Some(max_input_tokens) = model.max_input_tokens {
|
||||
details.push(format!("Max input: {max_input_tokens}"));
|
||||
}
|
||||
|
||||
@@ -782,6 +782,7 @@ impl ProviderSetupView {
|
||||
if let Ok(context_size) = editor.as_ref(ctx).buffer_text(ctx).parse() {
|
||||
model.context_size = context_size;
|
||||
model.max_input_tokens = Some(context_size);
|
||||
model.default_context_size = Some(context_size);
|
||||
}
|
||||
}
|
||||
me.update_next_button(ctx);
|
||||
|
||||
Reference in New Issue
Block a user