mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-09-22 08:12:00 +02:00
feat: add body to other endpoints
This commit is contained in:
parent
274987712c
commit
e9d0442531
2 changed files with 2 additions and 0 deletions
|
@ -116,6 +116,7 @@ const initializeClient = async ({ req, res, version, endpointOption, initAppClie
|
||||||
'OpenAI-Beta': `assistants=${version}`,
|
'OpenAI-Beta': `assistants=${version}`,
|
||||||
},
|
},
|
||||||
user: req.user,
|
user: req.user,
|
||||||
|
body: req.body,
|
||||||
});
|
});
|
||||||
opts.model = azureOptions.azureOpenAIApiDeploymentName;
|
opts.model = azureOptions.azureOpenAIApiDeploymentName;
|
||||||
|
|
||||||
|
|
|
@ -84,6 +84,7 @@ const initializeClient = async ({
|
||||||
clientOptions.headers = resolveHeaders({
|
clientOptions.headers = resolveHeaders({
|
||||||
headers: { ...headers, ...(clientOptions.headers ?? {}) },
|
headers: { ...headers, ...(clientOptions.headers ?? {}) },
|
||||||
user: req.user,
|
user: req.user,
|
||||||
|
body: req.body,
|
||||||
});
|
});
|
||||||
|
|
||||||
clientOptions.titleConvo = azureConfig.titleConvo;
|
clientOptions.titleConvo = azureConfig.titleConvo;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue