mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 08:50:15 +01:00
🐛 fix: Enforced Model Spec Icons/Labels and Agent Descriptions (#4979)
* fix: Previous convos missing model spec info when enforce is set to `true` #4749 * refactor: Include description field in agent list response
This commit is contained in:
parent
0a5bc503b0
commit
f15035542f
2 changed files with 5 additions and 0 deletions
|
|
@ -200,6 +200,7 @@ const getListAgents = async (searchParameter) => {
|
||||||
avatar: 1,
|
avatar: 1,
|
||||||
author: 1,
|
author: 1,
|
||||||
projectIds: 1,
|
projectIds: 1,
|
||||||
|
description: 1,
|
||||||
isCollaborative: 1,
|
isCollaborative: 1,
|
||||||
}).lean()
|
}).lean()
|
||||||
).map((agent) => {
|
).map((agent) => {
|
||||||
|
|
|
||||||
|
|
@ -63,6 +63,10 @@ async function buildEndpointOption(req, res, next) {
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
currentModelSpec.preset.spec = spec;
|
||||||
|
if (currentModelSpec.iconURL != null && currentModelSpec.iconURL !== '') {
|
||||||
|
currentModelSpec.preset.iconURL = currentModelSpec.iconURL;
|
||||||
|
}
|
||||||
parsedBody = parseCompactConvo({
|
parsedBody = parseCompactConvo({
|
||||||
endpoint,
|
endpoint,
|
||||||
endpointType,
|
endpointType,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue