mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-16 04:01:56 +00:00
Add /models command for enabling/disabling Ctrl+P model cycling
- New /models command with toggle UI for each available model - Changes persist to enabledModels in settings.json - Updates take effect immediately for Ctrl+P cycling
This commit is contained in:
parent
42ed0129ed
commit
49acd8e648
7 changed files with 241 additions and 0 deletions
|
|
@ -525,6 +525,11 @@ export class AgentSession {
|
|||
return this._scopedModels;
|
||||
}
|
||||
|
||||
/** Update scoped models for cycling */
|
||||
setScopedModels(scopedModels: Array<{ model: Model<any>; thinkingLevel: ThinkingLevel }>): void {
|
||||
this._scopedModels = scopedModels;
|
||||
}
|
||||
|
||||
/** File-based prompt templates */
|
||||
get promptTemplates(): ReadonlyArray<PromptTemplate> {
|
||||
return this._promptTemplates;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue