LibreChat/packages/api/src
Danny Avila 4b024ffd21
🎯 fix: Match the GPT-6 Cyber API Mode to an Exact Endpoint URL (#18071)
* 🚇 fix: Preserve Exact Cyber Endpoint API Contracts

* refactor: Name the Exact Chat Completions Check

Move the exact-URL test into `isExactChatCompletionsURL`, which states the
rule once and tolerates an unparseable URL on its own rather than relying
on the native-host classification having parsed it first.

Keep the summary's custom endpoint lookup inside the native Cyber branch,
where it was, and pass `directEndpoint` to the request shaping from there,
so a gateway summary does not resolve endpoint secrets it never uses.

Collect the request URL in the SDK test and assert it afterwards: an
assertion thrown inside the transport callback reaches the SDK as a
connection error. Cover the default for exact `/responses` URLs, base URLs
and paths that only contain `/chat/completions`, and an OpenRouter exact
URL.

* fix: Keep an Endpoint's Responses API Drop for Cross-Provider Cyber Summaries

A summary that targets another custom endpoint resolves that endpoint
through `getOpenAIConfig`, which applies a `useResponsesApi` drop by
removing the field. The native Cyber shaping that follows read the missing
field as "unset" and defaulted to the Responses API again, unless the
summary ran on the agent's own provider. An Anthropic agent summarizing
with GPT-6 Cyber on an exact Chat Completions endpoint that also drops
`useResponsesApi` therefore still sent a Responses body to that URL.

Record the drop as an explicit `false` on the resolved overrides. An
explicit `useResponsesApi` in the summary's own parameters still wins.

Cover summaries from an Anthropic agent, a built-in OpenAI agent and the
endpoint's own agent, with and without the drop, and with the summary
provider inferred from the agent.

---------

Co-authored-by: Lia <lia@librechat.ai>
2026-11-12 07:20:00 -05:00
..
acl 🪢 fix: Resolve the Races Behind Four Intermittent Session and Scenario E2E Tests (#18061) 2026-11-11 16:22:39 -05:00
actions
admin 🚜 feat: Support Native PostgreSQL Tool Favorites (#18032) 2026-11-11 12:07:07 -05:00
agents 🎯 fix: Match the GPT-6 Cyber API Mode to an Exact Endpoint URL (#18071) 2026-11-12 07:20:00 -05:00
apiKeys 🌐 feat: Wire Responses and Channel Lifecycle APIs (#17611) 2026-11-10 21:04:03 -08:00
app 🚜 feat: Support Native PostgreSQL Tool Favorites (#18032) 2026-11-11 12:07:07 -05:00
artifacts
assistants
auth
cache
cdn
channels 🔗 fix: Update Slack Account Linking in Place (#18039) 2026-11-10 21:04:12 -08:00
clientlimits
cluster
code
conversations 🔄 fix: Restore MCP Sign-In Prompts After Reload (#17604) 2026-11-10 21:04:00 -08:00
crypto
db
endpoints 🎯 fix: Match the GPT-6 Cyber API Mode to an Exact Endpoint URL (#18071) 2026-11-12 07:20:00 -05:00
favorites
files 📎 feat: Resolve Channel Attachments and Usage Summaries (#17608) 2026-11-10 21:04:02 -08:00
flow
html
images
insights
langfuse 👍 feat: Record Feedback on Delivered Channel Responses (#17610) 2026-11-10 21:04:02 -08:00
mcp 🚪 fix: Refuse Interactive MCP Sign-in on Remote Agent API Runs (#18058) 2026-11-11 20:56:17 -05:00
memory
messages 🌄 fix: Show Skill Pills When a Turn Starts (#18036) 2026-11-11 12:49:50 -05:00
middleware 🔐 feat: Add Admin-Assigned Slack Bot Managers (#17836) 2026-11-10 21:04:12 -08:00
modelSpecs 🌿 perf: Read Only the Active Branch for Turn History (#17971) 2026-11-10 17:32:58 +01:00
oauth
openapi
plugins
projects
prompts
protection
pulls
rum
schedules 🪸 refactor: Separate Shared-Link and Schedule Persistence (#18031) 2026-11-10 15:44:13 -05:00
security
shared-links 🪢 fix: Resolve the Races Behind Four Intermittent Session and Scenario E2E Tests (#18061) 2026-11-11 16:22:39 -05:00
skills
storage
stream 🦂 feat: Add GPT-6 Cyber Support (#18023) 2026-11-11 16:50:26 -05:00
telemetry 🖨️ feat: Add OpenTelemetry Tool Execution Logs (#18035) 2026-11-11 12:06:56 -05:00
tools ☄️ feat: Add GPT Image 2.6 Flare Support (#18021) 2026-11-10 22:58:02 -05:00
traces
types 🦂 feat: Add GPT-6 Cyber Support (#18023) 2026-11-11 16:50:26 -05:00
user 🚜 feat: Support Native PostgreSQL Tool Favorites (#18032) 2026-11-11 12:07:07 -05:00
utils 🦂 feat: Add GPT-6 Cyber Support (#18023) 2026-11-11 16:50:26 -05:00
web
credentials.spec.ts
credentials.ts
imports.spec.ts
imports.ts
index.spec.ts
index.ts 📦 feat: Package Shared Slack Workspace Deployments (#17815) 2026-11-10 21:04:10 -08:00
telemetry.ts