()
| 51 | } |
| 52 | |
| 53 | async getModelCatalog(): Promise<ModelCatalogItem[]> { |
| 54 | return get<ModelCatalogItem[]>('/ai/llm/model-catalog') |
| 55 | } |
| 56 | |
| 57 | async addConfig(config: AIServiceConfigInput) { |
| 58 | return post<{ success: boolean; config?: AIServiceConfigDisplay; error?: string }>('/ai/llm/configs', config) |