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 🛝 perf: Render Chats Independently of Catalog Discovery (#17692) 2026-11-09 11:11:22 -05:00
auth 🥸 fix: Block Private IPv4-Translated IPv6 Targets (#18002) 2026-11-10 09:22:41 -05:00
cache
cdn
channels 🔗 fix: Update Slack Account Linking in Place (#18039) 2026-11-10 21:04:12 -08:00
clientlimits
cluster
code 📎 fix: Keep Lazily Provisioned Attachments for Code Calls After read_file (#17942) 2026-11-10 09:03:47 +01:00
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 🧊 fix: Fence Auth User Cache Writes After Eviction and Evict Favorite Holders (#17505) 2026-10-29 17:44:51 +01:00
files 📎 feat: Resolve Channel Attachments and Usage Summaries (#17608) 2026-11-10 21:04:02 -08:00
flow
html 🪟 feat: Add Welcome Footer and Response Author Options and Tidy the Chat Chrome (#17879) 2026-11-08 14:57:59 +01:00
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 🧮 fix: Count Memory Tokens After the o200k Encoding Loads (#17892) 2026-11-08 15:23:40 +01:00
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 🪟 fix: Serve the OAuth Error Page for Connect Callback Failures (#17946) 2026-11-09 17:41:17 +01:00
openapi 🔗 feat: Link Langfuse Prompts as Agent Instructions (#17294) 2026-10-30 17:28:37 +01:00
plugins
projects
prompts 🔗 feat: Link Langfuse Prompts as Agent Instructions (#17294) 2026-10-30 17:28:37 +01:00
protection 🦭 fix: Require Full-Length Private Text Authentication Tags (#17646) 2026-10-30 15:12:02 +01:00
pulls 🔒 fix: Gate GET Routes That Start OAuth Flows Behind Terms Acceptance (#17935) 2026-11-09 15:35:24 +01:00
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 🔗 fix: Encode Local Storage URLs and Reject Nested File Names (#17949) 2026-11-09 17:40:12 +01:00
storage 🔗 fix: Encode Local Storage URLs and Reject Nested File Names (#17949) 2026-11-09 17:40:12 +01:00
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