mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-05-03 14:10:32 +00:00
Add model config presets and ignore agent artifacts
- Add model switcher component for chat input with progress display - Enhance model config store with active preset/model retrieval - Show agent progress as ghost text in chat input placeholder - Add agent artifact patterns to .gitignore
This commit is contained in:
parent
4cbb320587
commit
a2547f12a1
7 changed files with 148 additions and 24 deletions
|
|
@ -557,6 +557,21 @@ export const store = createStore("modelConfig", {
|
|||
return o.preset_name || o.name || o.provider || 'Custom';
|
||||
},
|
||||
|
||||
getActivePreset() {
|
||||
const o = this.switcherOverride;
|
||||
if (!o || !o.preset_name) return null;
|
||||
return this.switcherPresets.find(p => p.name === o.preset_name) || null;
|
||||
},
|
||||
|
||||
getActiveModels() {
|
||||
const preset = this.getActivePreset();
|
||||
if (!preset) return { main: null, utility: null };
|
||||
return {
|
||||
main: preset.chat?.name ? { provider: preset.chat.provider, name: preset.chat.name } : null,
|
||||
utility: preset.utility?.name ? { provider: preset.utility.provider, name: preset.utility.name } : null,
|
||||
};
|
||||
},
|
||||
|
||||
// Text conversion utilities (accessible from templates via $store.modelConfig)
|
||||
textToKwargs,
|
||||
textToHeaders,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue