mirror of
https://github.com/carlrobertoh/ProxyAI.git
synced 2026-05-11 04:50:31 +00:00
* refactor service credential managers * refactor azure settings * refactor openai settings * refactor llama settings * refactor you settings * refactor included files settings * refactor general settings * refactor advanced settings * fix advanced settings component init * refactor project structure * refactor service settings forms * remove openai quota exceeded field validator * fix credential modified conditions * fix and rearrange minor stuff * fix you auth logic, add credential cache
16 lines
464 B
Java
16 lines
464 B
Java
package ee.carlrobert.codegpt.credentials;
|
|
|
|
import com.intellij.openapi.application.ApplicationManager;
|
|
import com.intellij.openapi.components.Service;
|
|
|
|
@Service
|
|
public final class OpenAICredentialManager extends SingleCredentialManager {
|
|
|
|
private OpenAICredentialManager() {
|
|
super("OPENAI_API_KEY");
|
|
}
|
|
|
|
public static OpenAICredentialManager getInstance() {
|
|
return ApplicationManager.getApplication().getService(OpenAICredentialManager.class);
|
|
}
|
|
}
|