We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Testing on Windows 10. The function works, a correct answer is returned from Openai, but it keeps throwing this error every time I call the function.
try { chatCompletion = await OpenAI.instance.chat.create( model: modelName, messages: [ OpenAIChatCompletionChoiceMessageModel( content:[ OpenAIChatCompletionChoiceMessageContentItemModel.text(prompt), ], role: OpenAIChatMessageRole.user, ), ] maxTokens: maxTokens, ); } catch (e) { print("ERROR: $e") ; rethrow; }
SocketException: Failed host lookup: 'api.openai.com' (OS Error: Host sconosciuto. , errno = 11001) OS Error: Host sconosciuto. , errno = 11001
The Catch does not catch anything!
And the function returns a correct answer from Openai!
The text was updated successfully, but these errors were encountered:
This is likely to be related to this issue
Sorry, something went wrong.
No branches or pull requests
Testing on Windows 10.
The function works, a correct answer is returned from Openai, but it keeps throwing this error every time I call the function.
The Catch does not catch anything!
And the function returns a correct answer from Openai!
The text was updated successfully, but these errors were encountered: