This commit is contained in:
parent
b82018e971
commit
c174f7a262
|
|
@ -169,6 +169,7 @@ export default function WorkspaceLayout({ children }: WorkspaceLayoutProps) {
|
||||||
setTools(toolData.tools)
|
setTools(toolData.tools)
|
||||||
|
|
||||||
const modelData = await getModelWorkspacesByWorkspaceId(workspaceId)
|
const modelData = await getModelWorkspacesByWorkspaceId(workspaceId)
|
||||||
|
console.log("......Model data from DB:", modelData.models)
|
||||||
setModels(modelData.models)
|
setModels(modelData.models)
|
||||||
|
|
||||||
// setChatSettings({
|
// setChatSettings({
|
||||||
|
|
|
||||||
|
|
@ -69,6 +69,9 @@ export const ModelSelect: FC<ModelSelectProps> = ({
|
||||||
...availableOpenRouterModels
|
...availableOpenRouterModels
|
||||||
]
|
]
|
||||||
|
|
||||||
|
console.log("......ModelSelect - selectedModelId:", selectedModelId)
|
||||||
|
console.log("......ModelSelect - allModels IDs:", allModels.map(m => m.modelId))
|
||||||
|
|
||||||
const groupedModels = allModels.reduce<Record<string, LLM[]>>(
|
const groupedModels = allModels.reduce<Record<string, LLM[]>>(
|
||||||
(groups, model) => {
|
(groups, model) => {
|
||||||
const key = model.provider
|
const key = model.provider
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue