Add dynamic vision model list from OpenRouter with combobox selector

This commit is contained in:
CREDO23 2026-04-07 23:39:52 +02:00
parent 4dd1b6c64f
commit 26bffbcc47
8 changed files with 346 additions and 7 deletions

View file

@ -4,6 +4,7 @@ import {
createVisionLLMConfigResponse,
deleteVisionLLMConfigResponse,
getGlobalVisionLLMConfigsResponse,
getModelListResponse,
getVisionLLMConfigsResponse,
type UpdateVisionLLMConfigRequest,
updateVisionLLMConfigRequest,
@ -13,6 +14,10 @@ import { ValidationError } from "../error";
import { baseApiService } from "./base-api.service";
class VisionLLMConfigApiService {
getModels = async () => {
return baseApiService.get(`/api/v1/vision-models`, getModelListResponse);
};
getGlobalConfigs = async () => {
return baseApiService.get(
`/api/v1/global-vision-llm-configs`,