Script di publish e modello più piccolo con effort low come predefiniti
scripts/publish.sh crea in dist/ gli eseguibili single-file per win-x64 e linux-x64 (o i rid indicati) e toglie i simboli delle librerie native; dist/ è ignorata da git. Ogni motore dichiara DefaultModelId (Haiku 5.5 per Claude Code, GPT-5.6 Luna per Codex) e il ViewModel parte da quel modello con effort low, all'avvio e a ogni cambio di CLI; "Predefinito" resta scelta possibile. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d6f293722e
commit
d7e8a341ab
4 files changed
+32
-5
No files matched your search
@@ -63,7 +63,7 @@ class MainViewModel : ObservableObject
|
||||
{
|
||||
static readonly ModelOption Default = new("Predefinito", "");
|
||||
static readonly ModelOption Custom = new("Altro ID…", "__custom");
|
||||
const string DefaultEffort = "Predefinito";
|
||||
const string NoEffort = "Predefinito";
|
||||
|
||||
public ObservableCollection<MessageVm> Messages { get; } = [];
|
||||
public ObservableCollection<ChatItem> Chats { get; } = [];
|
||||
@@ -102,7 +102,7 @@ class MainViewModel : ObservableObject
|
||||
bool busy, updating, sidebarOpen = true;
|
||||
ModelOption selectedModel = Default;
|
||||
string customModel = "";
|
||||
string selectedEffort = DefaultEffort;
|
||||
string selectedEffort = NoEffort;
|
||||
readonly RelayCommand<object> send, newChat;
|
||||
|
||||
public MainViewModel()
|
||||
@@ -188,8 +188,10 @@ class MainViewModel : ObservableObject
|
||||
{
|
||||
selectedEngine = choice;
|
||||
ModelChoices = [Default, .. choice.Engine.Models, Custom];
|
||||
EffortChoices = [DefaultEffort, .. choice.Engine.Efforts];
|
||||
SelectedModel = Default; CustomModel = ""; SelectedEffort = DefaultEffort;
|
||||
EffortChoices = [NoEffort, .. choice.Engine.Efforts];
|
||||
// valori iniziali: il modello più piccolo del motore ed effort basso ("Predefinito" resta selezionabile)
|
||||
SelectedModel = ModelChoices.FirstOrDefault(m => m.Id == choice.Engine.DefaultModelId) ?? Default;
|
||||
CustomModel = ""; SelectedEffort = choice.Engine.DefaultEffort;
|
||||
Raise(nameof(SelectedEngine)); Raise(nameof(Author)); Raise(nameof(InputPlaceholder)); Raise(nameof(BusyText));
|
||||
}
|
||||
|
||||
@@ -242,7 +244,7 @@ class MainViewModel : ObservableObject
|
||||
if (!CanSend) return;
|
||||
var text = input.Trim();
|
||||
var model = IsCustomModel ? customModel.Trim() : selectedModel.Id;
|
||||
var effort = selectedEffort == DefaultEffort ? "" : selectedEffort;
|
||||
var effort = selectedEffort == NoEffort ? "" : selectedEffort;
|
||||
|
||||
Input = ""; IsBusy = true;
|
||||
Add("user", text);
|
||||
|
||||
Reference in new issue
Block a user