Bump version to 1.6.3
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
4ba9706e35
commit
59cfd0e2f5
@@ -451,6 +451,13 @@ pub struct BedrockModelConfig {
|
||||
#[serde(default)]
|
||||
#[schemars(description = "Whether the model supports image/vision input.")]
|
||||
pub vision_supported: bool,
|
||||
#[serde(default = "default_context_size")]
|
||||
#[schemars(description = "Maximum context window size in tokens.")]
|
||||
pub context_size: u32,
|
||||
}
|
||||
|
||||
fn default_context_size() -> u32 {
|
||||
200_000
|
||||
}
|
||||
|
||||
impl settings_value::SettingsValue for BedrockModelConfig {}
|
||||
@@ -823,6 +830,18 @@ define_settings_group!(AISettings, settings: [
|
||||
private: false,
|
||||
toml_path: "agents.warp_agent.input.ai_command_denylist",
|
||||
description: "Commands to exclude from AI natural language autodetection.",
|
||||
}
|
||||
// Whether to use the local AI model for input classification and suggestions
|
||||
// instead of making Bedrock API calls. When enabled, SmolLM2-135M handles
|
||||
// autodetection, prompt suggestions, and code banners locally.
|
||||
use_local_model: UseLocalModel {
|
||||
type: bool,
|
||||
default: true,
|
||||
supported_platforms: SupportedPlatforms::DESKTOP,
|
||||
sync_to_cloud: SyncToCloud::Globally(RespectUserSyncSetting::Yes),
|
||||
private: false,
|
||||
toml_path: "agents.warp_agent.input.use_local_model",
|
||||
description: "Use a locally downloaded AI model for command recognition and suggestions instead of Bedrock.",
|
||||
},
|
||||
// This field should not be referenced directly to lookup intelligent autosuggestion enablement
|
||||
// -- use the `is_intelligent_autosuggestions_enabled()` getter.
|
||||
@@ -1642,6 +1661,10 @@ impl AISettings {
|
||||
self.is_active_ai_enabled(app) && *self.code_suggestions_enabled_internal
|
||||
}
|
||||
|
||||
pub fn should_use_local_model(&self) -> bool {
|
||||
*self.use_local_model
|
||||
}
|
||||
|
||||
pub fn is_natural_language_autosuggestions_enabled(&self, app: &galaxyui::AppContext) -> bool {
|
||||
self.is_active_ai_enabled(app) && *self.natural_language_autosuggestions_enabled_internal
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ use async_recursion::async_recursion;
|
||||
use async_trait::async_trait;
|
||||
use galaxy_core::ui::{
|
||||
color::hex_color::coloru_from_hex_string,
|
||||
theme::{AnsiColor, AnsiColors, TerminalColors, GalaxyTheme},
|
||||
theme::{AnsiColor, AnsiColors, GalaxyTheme, TerminalColors},
|
||||
};
|
||||
use galaxyui::fonts::FontInfo;
|
||||
use serde::Deserialize;
|
||||
|
||||
@@ -29,7 +29,10 @@ use super::iterm_parser::ITermProfile;
|
||||
|
||||
#[derive(Debug)]
|
||||
pub enum ThemeType {
|
||||
LightAndDark { light: GalaxyTheme, dark: GalaxyTheme },
|
||||
LightAndDark {
|
||||
light: GalaxyTheme,
|
||||
dark: GalaxyTheme,
|
||||
},
|
||||
Single(GalaxyTheme),
|
||||
}
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ use std::path::PathBuf;
|
||||
|
||||
use async_trait::async_trait;
|
||||
use bitflags::bitflags;
|
||||
use galaxy_core::ui::theme::{AnsiColors, TerminalColors, GalaxyTheme};
|
||||
use galaxy_core::ui::theme::{AnsiColors, GalaxyTheme, TerminalColors};
|
||||
use galaxyui::{
|
||||
fonts::FontInfo, keymap::Keystroke, platform::mac::utils::unicode_char_to_key, DisplayIdx,
|
||||
};
|
||||
|
||||
@@ -118,7 +118,7 @@ impl SettingsFileError {
|
||||
use crate::{
|
||||
root_view::QuakeModePinPosition,
|
||||
terminal::{BlockListSettings, BlockPadding},
|
||||
themes::theme::{ThemeKind, GalaxyTheme},
|
||||
themes::theme::{GalaxyTheme, ThemeKind},
|
||||
user_config::GalaxyConfig,
|
||||
};
|
||||
use galaxy_core::features::FeatureFlag;
|
||||
|
||||
Reference in New Issue
Block a user