mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-03 17:18:51 +01:00
🥷 fix: Correct Agents Handling for Marketplace Users (#9065)
* refactor: Introduce ModelSelectorChatContext and integrate with ModelSelector * fix: agents handling in ModelSelector to show expected agents if user has marketplace access
This commit is contained in:
parent
e4e25aaf2b
commit
d57e7aec73
8 changed files with 124 additions and 57 deletions
|
|
@ -57,11 +57,9 @@ export const getDefaultAgentFormValues = () => ({
|
|||
export const processAgentOption = ({
|
||||
agent: _agent,
|
||||
fileMap,
|
||||
instanceProjectId,
|
||||
}: {
|
||||
agent?: Agent;
|
||||
fileMap?: Record<string, TFile | undefined>;
|
||||
instanceProjectId?: string;
|
||||
}): TAgentOption => {
|
||||
const isGlobal = _agent?.isPublic ?? false;
|
||||
const agent: TAgentOption = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue