Skip to content

Commit

Permalink
refactor: example app
Browse files Browse the repository at this point in the history
  • Loading branch information
redevrx committed Aug 7, 2024
1 parent 9966dcc commit b0f014b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion example_app/openai_app/lib/bloc/openai/openai_bloc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ class OpenAIBloc extends Cubit<OpenAIState> {
emit(RateLimitErrorState());
// emit(ChatCompletionState(
// isBot: true, messages: list, showStopButton: false));
} on OpenAIServerError catch (e) {
} on OpenAIServerError {
///return state server error
emit(OpenAIServerErrorState());
// emit(ChatCompletionState(
Expand Down
1 change: 1 addition & 0 deletions lib/src/client/exception/request_error.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class OpenAIAuthError extends BaseErrorWrapper {
class OpenAIRateLimitError extends BaseErrorWrapper {
OpenAIRateLimitError({super.data, super.code});
}

const kRateLimitMessage = 'Billing hard limit has been reached';

///Cause: Issue on our servers.
Expand Down

0 comments on commit b0f014b

Please sign in to comment.