Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replaceed all typo "Wether" to "Whether" #192

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -423,11 +423,11 @@ final chat = await OpenAI.instance.chat.create(

final message = chat.choices.first.message;

// Wether the message has a tool call.
// Whether the message has a tool call.
if (message.haveToolCalls) {
final call = message.toolCalls!.first;

// Wether the tool call is the one we sent.
// Whether the tool call is the one we sent.
if (call.function.name == "sumOfTwoNumbers") {
// decode the arguments from the tool call.
final decodedArgs = jsonDecode(call.function.arguments);
Expand Down
4 changes: 2 additions & 2 deletions example/lib/simple_tools_demo.dart
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ void main() async {

final message = chat.choices.first.message;

// Wether the message has a tool call.
// Whether the message has a tool call.
if (message.haveToolCalls) {
final call = message.toolCalls!.first;

// Wether the tool call is the one we sent.
// Whether the tool call is the one we sent.
if (call.function.name == "sumOfTwoNumbers") {
// decode the arguments from the tool call.
final decodedArgs = jsonDecode(call.function.arguments);
Expand Down
4 changes: 2 additions & 2 deletions lib/src/core/models/chat/stream/chat.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ final class OpenAIStreamChatCompletionModel {
/// This fingerprint represents the backend configuration that the model runs with.
final String? systemFingerprint;

/// Wether the chat completion have at least one choice in [choices].
/// Whether the chat completion have at least one choice in [choices].
bool get haveChoices => choices.isNotEmpty;

/// Wether the chat completion have a [systemFingerprint] or not.
/// Whether the chat completion have a [systemFingerprint] or not.
bool get haveSystemFingerprint => systemFingerprint != null;

@override
Expand Down
4 changes: 2 additions & 2 deletions lib/src/core/utils/logger.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ abstract final class OpenAILogger {
static const int _kValidApiKeyLength = 10;

/// {@template openai_logger_is_active}
/// Wether the to show operations flow logger is active or not.
/// Whether the to show operations flow logger is active or not.
/// {@endtemplate}
static bool _isActive = true;

/// {@template openai_logger_show_responses_logs}
/// Wether to show operations response bodies in logs or not.
/// Whether to show operations response bodies in logs or not.
/// {@endtemplate}
static bool _showResponsesLogs = false;

Expand Down
2 changes: 1 addition & 1 deletion lib/src/instance/openai.dart
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ final class OpenAI extends OpenAIClientBase {
OpenAILogger.showResponsesLogs = showResponsesLogs;
}

// /// Wether the package is running on the web or not, example of this is the use of Flutter web.
// /// Whether the package is running on the web or not, example of this is the use of Flutter web.
// ///
// /// By default it is set to [false].
// ///
Expand Down