mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 22:03:45 +00:00
Enable thinking selector in MessageEditor
- Import Select component from mini-lit and Brain icon from lucide - Add thinkingLevel property to track current thinking level (off/minimal/low/medium/high) - Enable showThinkingSelector (was disabled before) - Add onThinkingChange callback for thinking level changes - Render Select component with thinking level options when model supports reasoning - Position thinking selector on left side next to attachment button - Add i18n translations for Off/Minimal/Low/Medium/High in English and German - Rename showThinking → showThinkingSelector in AgentInterface and ChatPanel for consistency - Remove showDebugToggle property from AgentInterface (unused) - Clean up browser-javascript tool output message (remove CSP note)
This commit is contained in:
parent
414a4eb8fd
commit
53e339ddb8
5 changed files with 54 additions and 12 deletions
|
|
@ -108,6 +108,11 @@ declare module "@mariozechner/mini-lit" {
|
|||
"API Key Required": string;
|
||||
"Enter your API key for {provider}": string;
|
||||
"The CORS proxy strips CORS headers from API responses, allowing browser-based apps to make direct calls to LLM providers without CORS restrictions. It forwards requests to providers while removing headers that would otherwise block cross-origin requests.": string;
|
||||
Off: string;
|
||||
Minimal: string;
|
||||
Low: string;
|
||||
Medium: string;
|
||||
High: string;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -223,6 +228,11 @@ const translations = {
|
|||
"Enter your API key for {provider}": "Enter your API key for {provider}",
|
||||
"The CORS proxy strips CORS headers from API responses, allowing browser-based apps to make direct calls to LLM providers without CORS restrictions. It forwards requests to providers while removing headers that would otherwise block cross-origin requests.":
|
||||
"The CORS proxy strips CORS headers from API responses, allowing browser-based apps to make direct calls to LLM providers without CORS restrictions. It forwards requests to providers while removing headers that would otherwise block cross-origin requests.",
|
||||
Off: "Off",
|
||||
Minimal: "Minimal",
|
||||
Low: "Low",
|
||||
Medium: "Medium",
|
||||
High: "High",
|
||||
},
|
||||
de: {
|
||||
...defaultGerman,
|
||||
|
|
@ -335,6 +345,11 @@ const translations = {
|
|||
"Enter your API key for {provider}": "Geben Sie Ihren API-Schlüssel für {provider} ein",
|
||||
"The CORS proxy strips CORS headers from API responses, allowing browser-based apps to make direct calls to LLM providers without CORS restrictions. It forwards requests to providers while removing headers that would otherwise block cross-origin requests.":
|
||||
"Der CORS-Proxy entfernt CORS-Header aus API-Antworten und ermöglicht browserbasierte Anwendungen, direkte Aufrufe an LLM-Anbieter ohne CORS-Einschränkungen durchzuführen. Er leitet Anfragen an Anbieter weiter und entfernt Header, die sonst Cross-Origin-Anfragen blockieren würden.",
|
||||
Off: "Aus",
|
||||
Minimal: "Minimal",
|
||||
Low: "Niedrig",
|
||||
Medium: "Mittel",
|
||||
High: "Hoch",
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue