Replies: 1 comment
|
Thanks for the detailed write-up, @toarni. The two configs plus the per-model observations made both behaviours traceable from the code alone. 1. GLM context shows ~28K on the
Workaround today: set 2. Code references (main, read 2026-09-14)The same split exists in v0.8.7-rc1 (GLM only in the aggregate map), so upgrading alone does not change the 28K. I read the code rather than running your exact config, so if the numbers on your instance disagree, say so. |
Uh oh!
There was an error while loading. Please reload this page.
First of all thanks for this wonderful project and all the hard work already done till this point. I really love LibreChat and I'm rolling it out here at my company.
And also sorry if this looks like a dumb question, but I searched all issues discussions, found several solutions but some seem outdated and I can not achieve what I want/need.
Prereq
Chapter 1 - First Steps with LibreChat
Endpoint Config
"Problems" with this setup per model
I checked the whole docs, but I only get an unknown
model invaliderror here. Everything else (permissions in AWS) is set up correctly, as I made it work via the modelSpecs using the full ARN without the region.Chapter 2 - Second Config Evolution
After having those problems I tried to solve them via the modelSpecs which kind of worked.
ModelSpec Config
With these modelSpecs in place, I was able to solve the problems with the "wrong" contextSize and with the "not working" inferenceProfile mapping for GLM 5.
When I now removed the addedEndpoints from this config everything looked and worked as expected.
Chapter 3 - Adding Agents
Now I also wanted to add the agentBuilder, which is one of the most powerful features in LibreChat.
So, I added
addedEndpoints: ["agents"]to the modelSpecs, which opened the Agents-Selection and Builder. So far so good.But now I'm facing the problem that I can only select the "raw" models from the bedrock endpoint. So again I have the same problems as in Chapter 1. Wrong contextSize and "wrong" region for GLM 5. I'm aware that I can set the config for each agent I create, but I can not expect from all my colleagues here that they are aware of the correct contextSizes and regions, which they need to set up in their agent to work properly.
I already tried so many "solutions" to somehow solve this, but I couldn't find a way.
Conclusion
It looks to me that:
What I want to achieve
To achieve that, I need the agentBuilder to be able to choose from the "modelSpecs" or to be able to set model-specific configurations directly in the bedrock endpoint. But I can not make any of those two ways work.
I was thinking about the solution to group my models by region into custom endpoints. With the new tokenConfig option there, I should be able to achieve everything. But thinking this into the future I need a custom endpoint for every region I want to use, which seems to be really annoying.
Really appreaciating any help or advice, which points me into the right direction.
All reactions