Skip to content

Commit

Permalink
Error messages that to be sent from embedding gateway (#1118)
Browse files Browse the repository at this point in the history
  • Loading branch information
maheshrajamani authored May 28, 2024
1 parent 36a2b63 commit 5104a23
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,9 @@ public enum ErrorCode {
SERVER_FAILURE("Driver failed"),
SERVER_UNHANDLED_ERROR("Server failed"),
INVALID_PARAMETER_VALIDATION_TYPE("Invalid Parameter Validation Type"),
SERVER_EMBEDDING_GATEWAY_NOT_AVAILABLE("Embedding Gateway is not available");
SERVER_EMBEDDING_GATEWAY_NOT_AVAILABLE("Embedding Gateway is not available"),
EMBEDDING_GATEWAY_ERROR_RATE_LIMIT("Embedding Gateway error rate limit reached for the tenant"),
EMBEDDING_GATEWAY_PROCESSING_ERROR("Embedding Gateway failed to process request");

private final String message;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@ public boolean validate(String provider, String value) {
}

void onStop(@Observes ShutdownEvent ev) {
channel.shutdown();
if (channel != null) channel.shutdown();
}
}

0 comments on commit 5104a23

Please sign in to comment.