TransformerOptimus / TransformerOptimus/SuperCoder

Allow Custom OpenAI Base URL in Settings

Open
#120 0 comments 0 reactions 0 assignees View on GitHub

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

https://developer.superagi.com/settings

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.