@@ -33,7 +33,7 @@ const AZURE_DEFAULT_MAX_TOKENS = 16_384;
|
33 | 33 | type CustomModelInput = "text" | "image"; |
34 | 34 | |
35 | 35 | /** Result of best-effort image-input inference for custom model ids. */ |
36 | | -export type CustomModelImageInputInference = { |
| 36 | +type CustomModelImageInputInference = { |
37 | 37 | supportsImageInput: boolean; |
38 | 38 | confidence: "known" | "unknown"; |
39 | 39 | }; |
@@ -189,7 +189,7 @@ export type CustomApiResult = {
|
189 | 189 | }; |
190 | 190 | |
191 | 191 | /** Inputs used to persist a custom provider in the OpenClaw config. */ |
192 | | -export type ApplyCustomApiConfigParams = { |
| 192 | +type ApplyCustomApiConfigParams = { |
193 | 193 | config: OpenClawConfig; |
194 | 194 | baseUrl: string; |
195 | 195 | modelId: string; |
@@ -201,7 +201,7 @@ export type ApplyCustomApiConfigParams = {
|
201 | 201 | }; |
202 | 202 | |
203 | 203 | /** Raw CLI flag values for non-interactive custom API setup. */ |
204 | | -export type ParseNonInteractiveCustomApiFlagsParams = { |
| 204 | +type ParseNonInteractiveCustomApiFlagsParams = { |
205 | 205 | baseUrl?: string; |
206 | 206 | modelId?: string; |
207 | 207 | compatibility?: string; |
@@ -211,7 +211,7 @@ export type ParseNonInteractiveCustomApiFlagsParams = {
|
211 | 211 | }; |
212 | 212 | |
213 | 213 | /** Validated non-interactive custom API setup flags. */ |
214 | | -export type ParsedNonInteractiveCustomApiFlags = { |
| 214 | +type ParsedNonInteractiveCustomApiFlags = { |
215 | 215 | baseUrl: string; |
216 | 216 | modelId: string; |
217 | 217 | compatibility: CustomApiCompatibility; |
@@ -220,7 +220,7 @@ export type ParsedNonInteractiveCustomApiFlags = {
|
220 | 220 | supportsImageInput?: boolean; |
221 | 221 | }; |
222 | 222 | |
223 | | -export type CustomApiErrorCode = |
| 223 | +type CustomApiErrorCode = |
224 | 224 | | "missing_required" |
225 | 225 | | "invalid_compatibility" |
226 | 226 | | "invalid_base_url" |
@@ -239,14 +239,14 @@ export class CustomApiError extends Error {
|
239 | 239 | } |
240 | 240 | } |
241 | 241 | |
242 | | -export type ResolveCustomProviderIdParams = { |
| 242 | +type ResolveCustomProviderIdParams = { |
243 | 243 | config: OpenClawConfig; |
244 | 244 | baseUrl: string; |
245 | 245 | providerId?: string; |
246 | 246 | }; |
247 | 247 | |
248 | 248 | /** Provider id selected for a custom endpoint, with collision rename metadata. */ |
249 | | -export type ResolvedCustomProviderId = { |
| 249 | +type ResolvedCustomProviderId = { |
250 | 250 | providerId: string; |
251 | 251 | providerIdRenamedFrom?: string; |
252 | 252 | }; |
|