fix: disable storage for Codex responses requests (#3192)

Co-authored-by: honor2030 <honor2030@users.noreply.github.com>
This commit is contained in:
이민재
2026-06-02 19:47:33 +05:30
committed by GitHub
co-authored by honor2030
parent ec7c97cc1d
commit c10d747de7
3 changed files with 13 additions and 1 deletions
@@ -269,6 +269,7 @@ impl OpenAiCompatibleProvider {
input,
instructions,
stream: Some(false),
store: Some(false),
};
let url = self.responses_url();
@@ -1,7 +1,7 @@
use super::*;
use sentry::test::TestTransport;
use std::sync::Arc;
use wiremock::matchers::{method, path};
use wiremock::matchers::{body_json, method, path};
use wiremock::{Mock, MockServer, ResponseTemplate};
fn make_provider(name: &str, url: &str, key: Option<&str>) -> OpenAiCompatibleProvider {
@@ -354,6 +354,15 @@ async fn responses_api_primary_posts_directly_to_responses() {
let server = MockServer::start().await;
Mock::given(method("POST"))
.and(path("/backend-api/codex/responses"))
.and(body_json(serde_json::json!({
"model": "gpt-5.5",
"input": [{
"role": "user",
"content": [{"type": "input_text", "text": "hello"}]
}],
"stream": false,
"store": false
})))
.respond_with(ResponseTemplate::new(200).set_body_json(serde_json::json!({
"output_text": "hello from responses",
"output": []
@@ -93,6 +93,8 @@ pub(crate) struct ResponsesRequest {
pub(crate) instructions: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub(crate) stream: Option<bool>,
#[serde(skip_serializing_if = "Option::is_none")]
pub(crate) store: Option<bool>,
}
#[derive(Debug, Serialize)]