Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openAI custom model not work expected #119

Closed
iptton opened this issue Mar 27, 2024 · 0 comments
Closed

openAI custom model not work expected #119

iptton opened this issue Mar 27, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@iptton
Copy link
Collaborator

iptton commented Mar 27, 2024

Describe the bug
openAI custom model not work as expected

To Reproduce
Steps to reproduce the behavior:

  1. set custom openai model
  2. chat in chat panel
  3. reopen setting panel, the openAI model will reset from custom to gpt-3.5-turbo

Expected behavior
setting stay "custom"

relate code:

        get() {
            val customModel = AutoDevSettingsState.getInstance().customModel
            if(AutoDevSettingsState.getInstance().openAiModel == SELECT_CUSTOM_MODEL) {
                AutoDevSettingsState.getInstance().openAiModel = customModel
            }
            return  AutoDevSettingsState.getInstance().openAiModel
        }

will reset openAIModel to a unknow value

e001c12

@phodal phodal added the bug Something isn't working label Mar 27, 2024
@phodal phodal closed this as completed in d4eee77 Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants