fix: desktop session model config tip nvidia
Browse files- src/server/api/models.ts +2 -1
src/server/api/models.ts
CHANGED
|
@@ -348,7 +348,8 @@ async function handleModelsList(): Promise<Response> {
|
|
| 348 |
if (activeId) {
|
| 349 |
const activeProvider = providers.find((p) => p.id === activeId)
|
| 350 |
if (activeProvider) {
|
| 351 |
-
|
|
|
|
| 352 |
const cliModels = await fetchCliProviderModels()
|
| 353 |
if (cliModels.length > 0) {
|
| 354 |
return Response.json({
|
|
|
|
| 348 |
if (activeId) {
|
| 349 |
const activeProvider = providers.find((p) => p.id === activeId)
|
| 350 |
if (activeProvider) {
|
| 351 |
+
const presetType = activeProvider.presetId?.replace(/^tui-/, '')
|
| 352 |
+
if (presetType && cliAuthProvider === presetType) {
|
| 353 |
const cliModels = await fetchCliProviderModels()
|
| 354 |
if (cliModels.length > 0) {
|
| 355 |
return Response.json({
|