mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[GH-ISSUE #998] [Issue]: LTM agent extraction fails for custom endpoints with trailing slash #520
Labels
No labels
agent: chess
agent: conversation-calls
agent: eightball
agent: haptic
agent: hierarchical-maps
agent: hierarchical-maps
agent: illustrator
agent: poker
agent: rock-paper-scissors
agent: tic-tac-toe
agent: uno
artifacts
bug
bugfix
build
catalog
ci
client
dependencies
docs
documentation
enhancement
feature
fixed-in-staging
in-pr
normal-scope
packages
pull-request
qol
regression
roadmap
scope-risk
server
soup
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Agents#520
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Promansis on GitHub (Sep 21, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/998
Originally assigned to: @Promansis on GitHub.
Summary
Long-Term Memory extraction fails when its configured agent connection uses a custom OpenAI-compatible base URL with a trailing slash. The host appends
/chat/completionswithout normalizing that URL, producing an invalid endpoint and a 404 response.Affected package
long-term-memory(agent-backed extraction)Expected behavior
LTM agent extraction should use the configured custom endpoint regardless of whether the saved base URL ends with
/.Actual behavior
A URL such as
https://api.example/v1/is passed through to the LTM capability host and the OpenAI-compatible provider builds:https://api.example/v1//chat/completionsThe request fails with an HTTP 404. The equivalent URL without the trailing slash works, and LTM extraction works with the local sidecar connection.
Steps to reproduce
/, for examplehttps://api.example/v1/.Custom OpenAI-compatible endpoint error 404: Not Found.Environment
long-term-memory1.3.6Logs, screenshots, or video
Reported log excerpt:
Additional context
The LTM package resolves the selected connection through
languageModels.resolveForRequest()and does not construct provider URLs itself. The host capability bridge passesconnection.baseUrldirectly intocreateLLMProvider, while normal agent generation strips trailing slashes before provider creation. The OpenAI-compatible provider appends/chat/completionsto the stored base URL.Temporary workaround: save the custom connection base URL without a trailing slash.
Template check