TransformerOptimus / TransformerOptimus/SuperCoder
Allow Custom OpenAI Base URL in Settings
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 995
- Forks
- 110
- PR merge metrics
- No merged PRs in 30d
Description
⚠️ Check for existing issues before proceeding. ⚠️
- I have searched the existing issues, and there is no existing issue for my problem
Where are you using SuperCoder?
Cloud
Which branch of SuperCoder are you using?
Cloud Version
Which area covers your issue best?
Installation and setup
Describe your issue.
I need to be able to set a custom base url for the OpenAI API to be able to use Azure OpenAI with SuperCoder.
I was able to get it working by manually changing the apiBaseUrl in NewOpenAiClient (app/llms/open_ai.go), but it would be better to pass that as a parameter like the apiKey.
How to replicate your Issue?
No response
Upload Error Log Content
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in app/llms/open_ai.go at NewOpenAiClient and trace how the settings page at https://developer.superagi.com/settings supplies the API key. Add a configurable base URL alongside the key so Azure OpenAI can be selected, then verify that the client uses the configured URL.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- api, backend, cloud
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100