Skip to content

Conversation

Juraji
Copy link
Contributor

@Juraji Juraji commented Aug 1, 2025

Fixes #1089

My (second) hunch was correct. The CustomOpenAIRequestFactory as well as several points in the Code Completion logic referenced ee.carlrobert.codegpt.settings.service.custom.CustomServicesState#getActive but that property always contains the same (first) custom service definition state.

@Juraji
Copy link
Contributor Author

Juraji commented Aug 1, 2025

@carlrobertoh I could completely eliminate the active property, if you want. Just say the magic word of confirmation! :D

Anyway, let me know if you need any changes or don't like the fix. I'll see what I can do.

Testing note: I tested switching custom services in all features except for Code Completion. I can´t get it to work with the custom services, it keeps stating my API key is incorrect and I should get it in the OpenAI console. I mean, I can try, but it still won't work :P
Anyway, I don't use Code Completion (I like writing code to much XD)

@ProhoDimka
Copy link

How soon it will be merged?
This bug affected me so much.

@carlrobertoh carlrobertoh merged commit ba426a2 into carlrobertoh:master Sep 3, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Multiple Custom OpenAI Providers only uses first definition after Models per Feature update
3 participants