Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): ChatGPT sharing input-item rejections get their specific message #36207

Opencro13(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/36207/headopened View on GitHub

Showing 2 changed files with 6 additions and 1 deletion.

x
0 of 2 viewed, 2 left
4 additions and 0 deletionsapps/server/src/provider/CodexManagedErrors.test.tsModified
View file
@@ -36,6 +36,10 @@
for (const [detail, expected] of [
["tool 'namespace' is not supported", "tool namespace"],
["input item 'additional_tools' is not supported", "input item"],
+ [
+ "User subscription sharing currently supports only text, image, and file messages, item references, additional tools, compaction summaries, reasoning items, Web Search call items, developer function and custom tool call items, and programmatic tool calling items. Remove unsupported input items or use an API key instead.",
+ "input item",
+ ],
]) {
const response = { error: { code, message: `${detail}; dummy-sensitive` } };
for (const value of [response, JSON.stringify(response)]) {
2 additions and 1 deletionapps/server/src/provider/CodexManagedErrors.tsModified
View file
@@ -105,7 +105,8 @@
message:
"Codex sent a tool namespace that ChatGPT sharing does not support. Use another provider for this request.",
- if (text.includes("additional_tools"))
+ // ChatGPT lists `additional tools` as supported and says "Remove unsupported input items".
+ if (text.includes("input item"))
return {
...failure,
message: