How to set custom request parameters in modelSpec of custom endpoint #6500
jameslamine
started this conversation in
Help Wanted
Replies: 1 comment
-
Ok, I ended up implementing what I need #6503 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I see that the bedrock client's modelSpec supports an
additionalModelRequestFields
, which sets additional request parameters.Like this:
Do custom endpoints support this? It looks like they don't. I tried to add it, but I'm having trouble figuring out how to plumb the data through.
In
OpenAIClient.js
I added...(this.options.additionalModelRequestFields ?? {})
:But the parameter is always empty. I tried to follow how the data gets plumbed through and edit the models/schemas, but I can't get it to work.
Alternatively, could you add support for setting
thinking
andthinkingBudget
on custom endpoints? I know that's an Anthropic-specific setting, but I cannot use the Anthropic client because I am using PortKey as a proxy and I need the ability to set custom headers. LibreChat doesn't support setting custom headers on the Anthropic client. SoANTHROPIC_REVERSE_PROXY
alone is not enough.Beta Was this translation helpful? Give feedback.
All reactions