mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-04 22:02:16 +02:00
refactor(model-connections): update frontend for provider-based models
This commit is contained in:
parent
3dd54230e7
commit
610ff063d6
10 changed files with 177 additions and 124 deletions
|
|
@ -49,7 +49,7 @@ export function DashboardClientLayout({
|
|||
|
||||
const firstGlobalChatModel = useMemo(() => {
|
||||
for (const connection of globalConnections) {
|
||||
const model = connection.models.find((item) => item.enabled && item.capabilities?.chat);
|
||||
const model = connection.models.find((item) => item.enabled && item.supports_chat);
|
||||
if (model) return model;
|
||||
}
|
||||
return null;
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ export default function OnboardPage() {
|
|||
|
||||
const firstGlobalChatModel = useMemo(() => {
|
||||
for (const connection of globalConnections) {
|
||||
const model = connection.models.find((item) => item.enabled && item.capabilities?.chat);
|
||||
const model = connection.models.find((item) => item.enabled && item.supports_chat);
|
||||
if (model) return model;
|
||||
}
|
||||
return null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue