feat: allow custom model User-Agent overrides#239
Conversation
|
Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: exe.dev user.
|
31bb426 to
e399aff
Compare
|
Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: exe.dev user.
|
Co-authored-by: Shelley <shelley@exe.dev>
e399aff to
9c46200
Compare
|
We require contributors to sign our Contributor License Agreement, and we don't have you on file. In order for us to review and merge your code, please contact @crawshaw at david@bold.dev to get yourself added. |
|
Thanks for the contribution. This currently seems pretty niche to me. I'd recommend you run a proxy locally instead. If you let me know what providers you're running into issues with, happy to reconsider. |
Summary
user_agentsettingShelley/<commit>User-Agent when unsetMotivation
Some OpenAI-compatible providers restrict channels by client User-Agent. Custom models currently cannot use those providers because Shelley always overwrites
User-Agent.Validation
go test ./llm/llmhttp ./db ./models ./serverpnpm run type-checkpnpm run lintpnpm run build/api/custom-models-test: default Shelley UA was rejected with 403; configured custom UA succeededFull
go test ./...still has pre-existing unrelated failures on current main in Anthropic metadata/tool-schema tests, plus templates must be generated before cmd/templates compilation.