style: adjust providers style

This commit is contained in:
jialin
2026-02-03 18:21:08 +08:00
parent 6fd886b27a
commit 51bab71291
18 changed files with 197 additions and 130 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ export const mockDataList: MaasProviderItem[] = [
name: 'Anthropic',
state: 'inactive',
state_message: 'Provider is inactive',
provider: 'anthropic',
provider: 'claude',
proxy_url: {},
builtIn: true
}
+13 -21
View File
@@ -1,26 +1,5 @@
import { maasProviderType } from '.';
export interface MaasProviderItem {
id: number;
created_at: string;
updated_at: string;
deleted_at: string;
name: string;
description: string;
api_tokens: string[];
timeout: number;
config: {
type: maasProviderType;
[key: string]: any;
};
support_models: unknown[];
proxy_url: string;
proxy_timeout: number;
builtin: boolean;
provider_model_count: number;
api_token_count: number;
}
export interface FormData {
name: string;
description: string;
@@ -30,3 +9,16 @@ export interface FormData {
[key: string]: any;
};
}
export interface MaasProviderItem extends FormData {
id: number;
created_at: string;
updated_at: string;
deleted_at: string;
timeout: number;
support_models: unknown[];
proxy_url: string;
proxy_timeout: number;
builtin: boolean;
provider_model_count: number;
api_token_count: number;
}