mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-24 15:41:40 +00:00
fix: format default model label as 'model · provider' for consistency
The default option showed 'Default (openai/gpt-5.2)' while individual options used the friendlier 'gpt-5.2 · openai' format.
This commit is contained in:
committed by
Peter Steinberger
parent
c0237d8544
commit
5cc35a2e95
@@ -592,7 +592,10 @@ function renderChatModelSelect(state: AppViewState) {
|
||||
currentOverride,
|
||||
defaultModel,
|
||||
);
|
||||
const defaultLabel = defaultModel ? `Default (${defaultModel})` : "Default model";
|
||||
const defaultDisplay = defaultModel.includes("/")
|
||||
? `${defaultModel.slice(defaultModel.indexOf("/") + 1)} · ${defaultModel.slice(0, defaultModel.indexOf("/"))}`
|
||||
: defaultModel;
|
||||
const defaultLabel = defaultModel ? `Default (${defaultDisplay})` : "Default model";
|
||||
const busy =
|
||||
state.chatLoading || state.chatSending || Boolean(state.chatRunId) || state.chatStream !== null;
|
||||
const disabled =
|
||||
|
||||
Reference in New Issue
Block a user