[Enhancement]: Add conversationId to Custom Model Request Body #9376
balu33
started this conversation in
Feature Requests & Suggestions
Replies: 1 comment 3 replies
-
Right now, this feature only applies to headers: https://www.librechat.ai/docs/configuration/librechat_yaml/object_structure/custom_endpoint#headers |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What features would you like to see added?
Hi team,
Add conversationId to Custom Model Request Body
When using a custom model, LibreChat strips out metadata like conversationId. Backends only receive model, messages, etc., which makes it hard to maintain chat-wise history.
version: 1.2.8
cache: true
endpoints:
custom:
- name: "OpenRouter"
apiKey: "sk-bjhuh"
baseURL: "http://192.178.19.157:8092/v1/chat/completions"
headers:
Content-Type: "application/json"
X-User-ID: "{{LIBRECHAT_USER_ID}}"
X-User-Email: "{{LIBRECHAT_USER_EMAIL}}"
models:
default: ["rag-agent"]
fetch: true
titleConvo: true
titleModel: "current_model"
summarize: false
summaryModel: "current_model"
forcePrompt: false
modelDisplayLabel: "OpenRouter"
addParams:
conversationId: "{{LIBRECHAT_CONVERSATION_ID}}"
after adding this i'm not able to see conversationId in Model Request Body. Please help on this
More details
Hi team,
Add conversationId to Custom Model Request Body
When using a custom model, LibreChat strips out metadata like conversationId. Backends only receive model, messages, etc., which makes it hard to maintain chat-wise history.
version: 1.2.8
cache: true
endpoints:
custom:
- name: "OpenRouter"
apiKey: "sk-bjhuh"
baseURL: "http://192.178.19.157:8092/v1/chat/completions"
headers:
Content-Type: "application/json"
X-User-ID: "{{LIBRECHAT_USER_ID}}"
X-User-Email: "{{LIBRECHAT_USER_EMAIL}}"
models:
default: ["rag-agent"]
fetch: true
titleConvo: true
titleModel: "current_model"
summarize: false
summaryModel: "current_model"
forcePrompt: false
modelDisplayLabel: "OpenRouter"
addParams:
conversationId: "{{LIBRECHAT_CONVERSATION_ID}}"
after adding this i'm not able to see conversationId in Model Request Body. Please help on this
Which components are impacted by your request?
No response
Pictures
No response
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions