style: adjust providers style
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user