feat: add support for request body placeholders in custom endpoint headers

- Add {{LIBRECHAT_BODY_*}} placeholders for conversationId, parentMessageId, messageId
- Update tests to reflect new body placeholder functionality
This commit is contained in:
Gopal Sharma 2025-08-07 05:31:57 +05:30 committed by Gopal Sharma
parent 3508839d6d
commit eec10bf745
5 changed files with 58 additions and 34 deletions

View file

@ -259,6 +259,8 @@ endpoints:
# recommended environment variables:
apiKey: '${OPENROUTER_KEY}'
baseURL: 'https://openrouter.ai/api/v1'
headers:
x-librechat-body-parentmessageid: '{{LIBRECHAT_BODY_PARENTMESSAGEID}}'
models:
default: ['meta-llama/llama-3-70b-instruct']
fetch: true