mirror of
https://github.com/carlrobertoh/ProxyAI.git
synced 2026-05-21 11:05:59 +00:00
* on quota exceeded suggest user switch to different LLM provider * Improve insufficient quota handling, add more telemetry actions --------- Co-authored-by: Carl-Robert Linnupuu <carlrobertoh@gmail.com>
26 lines
632 B
Java
26 lines
632 B
Java
package ee.carlrobert.codegpt.telemetry;
|
|
|
|
import ee.carlrobert.codegpt.telemetry.core.service.TelemetryMessageBuilder.ActionMessage;
|
|
|
|
public enum TelemetryAction {
|
|
|
|
COMPLETION("CodeGPT-Completion"),
|
|
COMPLETION_ERROR("CodeGPT-Completion-Error"),
|
|
IDE_ACTION("CodeGPT-Action"),
|
|
IDE_ACTION_ERROR("CodeGPT-Action-Error"),
|
|
SETTINGS_CHANGED("CodeGPT-Settings-Changed");
|
|
|
|
private final String code;
|
|
|
|
TelemetryAction(String code) {
|
|
this.code = code;
|
|
}
|
|
|
|
public String getCode() {
|
|
return code;
|
|
}
|
|
|
|
public ActionMessage createActionMessage() {
|
|
return TelemetryMessageProvider.builder().action(getCode());
|
|
}
|
|
}
|