Spaces:
Building
Building
Update flare-ui/src/app/services/api.service.ts
Browse files
flare-ui/src/app/services/api.service.ts
CHANGED
@@ -116,17 +116,28 @@ export interface ParameterCollectionConfig {
|
|
116 |
collection_prompt: string;
|
117 |
}
|
118 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
119 |
export interface Environment {
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
tts_engine?: string;
|
125 |
-
tts_engine_api_key?: string;
|
126 |
-
tts_settings?: TTSSettings;
|
127 |
-
stt_engine?: string;
|
128 |
-
stt_engine_api_key?: string;
|
129 |
-
stt_settings?: STTSettings;
|
130 |
parameter_collection_config?: ParameterCollectionConfig;
|
131 |
}
|
132 |
|
|
|
116 |
collection_prompt: string;
|
117 |
}
|
118 |
|
119 |
+
export interface ProviderConfig {
|
120 |
+
type: 'llm' | 'tts' | 'stt';
|
121 |
+
name: string;
|
122 |
+
display_name: string;
|
123 |
+
requires_endpoint: boolean;
|
124 |
+
requires_api_key: boolean;
|
125 |
+
requires_repo_info?: boolean;
|
126 |
+
description: string;
|
127 |
+
}
|
128 |
+
|
129 |
+
export interface ProviderSettings {
|
130 |
+
name: string;
|
131 |
+
api_key?: string;
|
132 |
+
endpoint?: string | null;
|
133 |
+
settings?: any;
|
134 |
+
}
|
135 |
+
|
136 |
export interface Environment {
|
137 |
+
llm_provider: ProviderSettings;
|
138 |
+
tts_provider: ProviderSettings;
|
139 |
+
stt_provider: ProviderSettings;
|
140 |
+
providers: ProviderConfig[];
|
|
|
|
|
|
|
|
|
|
|
|
|
141 |
parameter_collection_config?: ParameterCollectionConfig;
|
142 |
}
|
143 |
|