mirror of
https://github.com/openai/codex.git
synced 2026-11-18 23:02:23 +00:00
Reduce cloning when building Responses requests (#34825)
## Why Preparing Responses API requests rebuilt tool definitions as a generic JSON tree, and incremental WebSocket requests cloned their full item prefix for comparison. ## What changed - Serialize tool definitions into shared raw JSON that can be embedded directly in HTTP and WebSocket requests. - Compare incremental request prefixes in place while still ignoring internal message metadata. ## Testing - Verify raw tool JSON matches the existing value encoding. - Preserve the serialized WebSocket request payload. GitOrigin-RevId: 66e2921792c332e8904954dafa597f6d39abcf29
This commit is contained in:
1 parent
bbfc3f0152
commit
12c115d558
12 files changed
+145
-42
No files matched your search
@@ -72,7 +72,7 @@ impl ToolRouter {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn model_visible_specs(&self) -> Vec<ToolSpec> {
|
||||
pub(crate) fn model_visible_specs(&self) -> Vec<ToolSpec> {
|
||||
self.model_visible_specs.clone()
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user