fix(opencode): surface content-filter finish reason as visible error (#31745)
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
This commit is contained in:
parent
a1dee8b273
commit
e2527db3c7
6 changed files with 110 additions and 0 deletions
|
|
@ -308,6 +308,13 @@ export type ContextOverflowError = {
|
|||
}
|
||||
}
|
||||
|
||||
export type ContentFilterError = {
|
||||
name: "ContentFilterError"
|
||||
data: {
|
||||
message: string
|
||||
}
|
||||
}
|
||||
|
||||
export type ApiError = {
|
||||
name: "APIError"
|
||||
data: {
|
||||
|
|
@ -339,6 +346,7 @@ export type AssistantMessage = {
|
|||
| MessageAbortedError
|
||||
| StructuredOutputError
|
||||
| ContextOverflowError
|
||||
| ContentFilterError
|
||||
| ApiError
|
||||
parentID: string
|
||||
modelID: string
|
||||
|
|
@ -1249,6 +1257,7 @@ export type GlobalEvent = {
|
|||
| MessageAbortedError
|
||||
| StructuredOutputError
|
||||
| ContextOverflowError
|
||||
| ContentFilterError
|
||||
| ApiError
|
||||
}
|
||||
}
|
||||
|
|
@ -4920,6 +4929,7 @@ export type EventSessionError = {
|
|||
| MessageAbortedError
|
||||
| StructuredOutputError
|
||||
| ContextOverflowError
|
||||
| ContentFilterError
|
||||
| ApiError
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14375,6 +14375,27 @@
|
|||
"required": ["name", "data"],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"ContentFilterError": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string",
|
||||
"enum": ["ContentFilterError"]
|
||||
},
|
||||
"data": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"message": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": ["message"],
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"required": ["name", "data"],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"APIError": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
|
@ -14468,6 +14489,9 @@
|
|||
{
|
||||
"$ref": "#/components/schemas/ContextOverflowError"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/ContentFilterError"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/APIError"
|
||||
}
|
||||
|
|
@ -17399,6 +17423,9 @@
|
|||
{
|
||||
"$ref": "#/components/schemas/ContextOverflowError"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/ContentFilterError"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/APIError"
|
||||
}
|
||||
|
|
@ -29058,6 +29085,9 @@
|
|||
{
|
||||
"$ref": "#/components/schemas/ContextOverflowError"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/ContentFilterError"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/APIError"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue