fix: use model name in selector
This commit is contained in:
parent
35b32306c8
commit
097116a114
2 changed files with 4 additions and 4 deletions
|
|
@ -38,7 +38,7 @@ const ModelSelector: React.FC<ModelSelectorProps> = ({
|
|||
|
||||
const modelOptions: ModelOption[] = availableModels.map((model) => ({
|
||||
id: `${model.provider}-${model.name}-${model.index}`,
|
||||
name: `${model.provider}/${model.name}`,
|
||||
name: model.name,
|
||||
index: model.index,
|
||||
provider: model.provider,
|
||||
}));
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
import { updateModelName } from "../../auth/workos.js";
|
||||
import {
|
||||
services,
|
||||
serviceContainer,
|
||||
SERVICE_NAMES,
|
||||
serviceContainer,
|
||||
services,
|
||||
} from "../../services/index.js";
|
||||
import { ModelServiceState } from "../../services/types.js";
|
||||
import { useNavigation } from "../context/NavigationContext.js";
|
||||
|
|
@ -50,7 +50,7 @@ export function useModelSelector({
|
|||
|
||||
onMessage({
|
||||
role: "system",
|
||||
content: `Switched to model: ${modelInfo?.provider}/${modelInfo?.name}`,
|
||||
content: `Switched to model: ${modelInfo?.name}`,
|
||||
messageType: "system",
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue