mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-08-27 04:07:05 +00:00
🔐 feat: Mint Code API Auth Tokens (#13028)
* feat: Mint CodeAPI auth tokens * style: Format CodeAPI download route * fix: Prune CodeAPI token cache * fix: Propagate CodeAPI managed auth * test: Mock CodeAPI auth in traversal suite * fix: Pass auth context to invoked skill cache * feat: Mint CodeAPI plan context * chore: Refresh CodeAPI auth guidance * fix: Guard OpenID JWT fallback * fix: Default CodeAPI JWT tenant in single-tenant mode * chore: Update @librechat/agents to version 3.1.84 in package-lock.json and package.json files * chore: Standardize references to Code API in comments and tests
This commit is contained in:
parent
8a654dc8b1
commit
c67e2b54dc
23 changed files with 973 additions and 58 deletions
|
|
@ -318,10 +318,14 @@ router.get('/code/download/:session_id/:fileId', async (req, res) => {
|
|||
* sessionKey; without these query params it 400s with
|
||||
* "kind must be one of: skill, agent, user". */
|
||||
/** @type {AxiosResponse<ReadableStream> | undefined} */
|
||||
const response = await getDownloadStream(`${session_id}/${fileId}`, {
|
||||
kind: 'user',
|
||||
id: req.user.id,
|
||||
});
|
||||
const response = await getDownloadStream(
|
||||
`${session_id}/${fileId}`,
|
||||
{
|
||||
kind: 'user',
|
||||
id: req.user.id,
|
||||
},
|
||||
req,
|
||||
);
|
||||
res.set(response.headers);
|
||||
response.data.pipe(res);
|
||||
} catch (error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue