chore: provider masked api-key

This commit is contained in:
jialin
2026-02-06 17:33:06 +08:00
parent 1bd31d2936
commit 4132494a49
7 changed files with 128 additions and 14 deletions
@@ -5,6 +5,8 @@ import { maasProviderType } from '.';
interface FormContextProps {
providerType?: maasProviderType;
action?: PageActionType;
currentData?: any;
id?: number;
}
const FormContext = createContext<FormContextProps>({});
+2 -2
View File
@@ -10,6 +10,8 @@ export interface FormData {
api_tokens: string[];
models: ProviderModel[];
api_key: string;
proxy_url: string;
proxy_timeout: number;
config: {
type: maasProviderType;
openaiCustomUrl?: string;
@@ -23,8 +25,6 @@ export interface MaasProviderItem extends FormData {
deleted_at: string;
timeout: number;
models: ProviderModel[];
proxy_url: string;
proxy_timeout: number;
builtin: boolean;
provider_model_count: number;
api_token_count: number;