mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-04 16:37:46 +08:00
fix(ai-formats): ignore OpenAI Responses metadata events
This commit is contained in:
@@ -3087,6 +3087,7 @@ fn openai_responses_stream_event_is_known_noop(event_type: &str) -> bool {
|
||||
matches!(
|
||||
event_type,
|
||||
"response.queued"
|
||||
| "response.metadata"
|
||||
| "response.output_text.annotation.added"
|
||||
| "response.audio.delta"
|
||||
| "response.audio.done"
|
||||
|
||||
@@ -1121,6 +1121,14 @@ mod tests {
|
||||
"item_id": "ws_123",
|
||||
"output_index": 0,
|
||||
})),
|
||||
data_line(json!({
|
||||
"type": "response.metadata",
|
||||
"response_id": "resp_sidecar_123",
|
||||
"sequence_number": 4,
|
||||
"metadata": {
|
||||
"candidate_id": "provider-a",
|
||||
},
|
||||
})),
|
||||
data_line(json!({
|
||||
"type": "response.output_text.annotation.added",
|
||||
"response_id": "resp_sidecar_123",
|
||||
|
||||
Reference in New Issue
Block a user