mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-10-20 17:13:44 +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
|
|
@ -6,6 +6,7 @@ const {
|
|||
createSafeUser,
|
||||
mcpToolPattern,
|
||||
loadWebSearchAuth,
|
||||
getCodeApiAuthHeaders,
|
||||
buildImageToolContext,
|
||||
buildWebSearchContext,
|
||||
buildWebSearchDynamicContext,
|
||||
|
|
@ -282,7 +283,11 @@ const loadTools = async ({
|
|||
if (files?.length) {
|
||||
primedCodeFiles = files;
|
||||
}
|
||||
return createCodeExecutionTool({ user_id: user, files });
|
||||
return createCodeExecutionTool({
|
||||
user_id: user,
|
||||
files,
|
||||
authHeaders: () => getCodeApiAuthHeaders(options.req),
|
||||
});
|
||||
};
|
||||
continue;
|
||||
} else if (tool === Tools.file_search) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue