mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-28 05:11:24 +08:00
Extract model name from session model string
- Use split and pop to isolate the model name after the colon - Fall back to the full model string if no colon is present - Maintain provider and group identifiers for model object consistency
This commit is contained in:
parent
282aa6e81a
commit
1c045231c8
@ -111,7 +111,7 @@ const AgentSessionInputbar: FC<Props> = ({ agentId, sessionId }) => {
|
||||
const model: Model | undefined = session?.model
|
||||
? {
|
||||
id: session.model,
|
||||
name: session.model,
|
||||
name: session.model.split(':').pop() || session.model, // Extract model name after ':'
|
||||
provider: 'agent-session',
|
||||
group: 'agent-session'
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user