File tree Expand file tree Collapse file tree
codex-rs/core/src/agent_identity Expand file tree Collapse file tree Original file line number Diff line number Diff 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" ) ,
You can’t perform that action at this time.
0 commit comments