feat(ampcode): remove localhost-only management toggle

This commit is contained in:
Supra4E8C
2025-12-20 18:32:32 +08:00
parent c2627cac3e
commit 18c1ba6c3c
6 changed files with 8 additions and 46 deletions

View File

@@ -18,9 +18,6 @@ export const ampcodeApi = {
updateUpstreamApiKey: (apiKey: string) => apiClient.put('/ampcode/upstream-api-key', { value: apiKey }),
clearUpstreamApiKey: () => apiClient.delete('/ampcode/upstream-api-key'),
updateRestrictManagementToLocalhost: (enabled: boolean) =>
apiClient.put('/ampcode/restrict-management-to-localhost', { value: enabled }),
async getModelMappings(): Promise<AmpcodeModelMapping[]> {
const data = await apiClient.get('/ampcode/model-mappings');
const list = data?.['model-mappings'] ?? data?.modelMappings ?? data?.items ?? data;