fix(ai): skip errored/aborted assistant messages in transform-messages
Fixes OpenAI Responses 400 error 'reasoning without following item' by skipping errored/aborted assistant messages entirely rather than filtering at the provider level. This covers openai-responses, openai-codex-responses, and future providers. Removes strictResponsesPairing compat option (no longer needed). Closes #838
This commit is contained in:
@@ -729,7 +729,7 @@ interface OpenAICompletionsCompat {
|
||||
}
|
||||
|
||||
interface OpenAIResponsesCompat {
|
||||
strictResponsesPairing?: boolean; // Enforce strict reasoning/message pairing for OpenAI Responses history replay on providers like Azure (default: false)
|
||||
// Reserved for future use
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user