This commit is contained in:
@@ -1 +1 @@
|
||||
6a3351b1936a09050428f73f854b2a89c96a98b049657d87bce78cf84d46e9eb
|
||||
9862200858d46d8e15e10d56972039a85b69853ca35f4e79f19abaab784d91fc
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"title": "LappConnectionTestResult",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"diagnosticCode": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"message": {
|
||||
"type": "string"
|
||||
},
|
||||
"modelId": {
|
||||
"type": "string"
|
||||
},
|
||||
"ok": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"providerId": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"ok",
|
||||
"providerId",
|
||||
"modelId",
|
||||
"message"
|
||||
]
|
||||
}
|
||||
@@ -25,6 +25,10 @@
|
||||
"stale_node",
|
||||
"invalid_input",
|
||||
"invalid_model_output",
|
||||
"provider_configuration",
|
||||
"provider_credentials",
|
||||
"provider_rate_limited",
|
||||
"provider_rejected",
|
||||
"provider_unavailable",
|
||||
"cancelled",
|
||||
"timed_out",
|
||||
|
||||
@@ -138,7 +138,9 @@ export type LappSettings = { mode: LappMode, selectedProviderId: string | null,
|
||||
|
||||
export type UpdateLappSettingsRequest = { providerId: string, modelId: string, };
|
||||
|
||||
export type TurnFailureCode = "stale_node" | "invalid_input" | "invalid_model_output" | "provider_unavailable" | "cancelled" | "timed_out" | "internal";
|
||||
export type LappConnectionTestResult = { ok: boolean, providerId: string, modelId: string, message: string, diagnosticCode: string | null, };
|
||||
|
||||
export type TurnFailureCode = "stale_node" | "invalid_input" | "invalid_model_output" | "provider_configuration" | "provider_credentials" | "provider_rate_limited" | "provider_rejected" | "provider_unavailable" | "cancelled" | "timed_out" | "internal";
|
||||
|
||||
export type TurnFailure = { code: TurnFailureCode, message: string, retryable: boolean, };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user