Skip to content

Commit e0cef11

Browse files
committed
Fix agent task biscuit target method
1 parent 7618dc4 commit e0cef11

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

codex-rs/core/src/agent_identity/task_registration.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ impl AgentIdentityManager {
6464
let client = create_client();
6565
let url =
6666
agent_task_registration_url(&self.chatgpt_base_url, &stored_identity.agent_runtime_id);
67-
let human_biscuit = self.mint_human_biscuit(&binding, &url).await?;
67+
let human_biscuit = self.mint_human_biscuit(&binding, "POST", &url).await?;
6868
let response = client
6969
.post(&url)
7070
.header("X-OpenAI-Authorization", human_biscuit)
@@ -365,7 +365,7 @@ mod tests {
365365
Mock::given(method("GET"))
366366
.and(path(biscuit_path))
367367
.and(header("authorization", "Bearer access-token-account-123"))
368-
.and(header("x-original-method", "GET"))
368+
.and(header("x-original-method", "POST"))
369369
.and(header("x-original-url", target_url))
370370
.respond_with(
371371
ResponseTemplate::new(200).insert_header("x-openai-authorization", "human-biscuit"),

0 commit comments

Comments
 (0)