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

Got an exception when run on web #150

Open
hnvmeta opened this issue Jan 19, 2024 · 0 comments
Open

Got an exception when run on web #150

hnvmeta opened this issue Jan 19, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@hnvmeta
Copy link

hnvmeta commented Jan 19, 2024

I got this exception when I run code on web. It works well when I run on Android.
_aiMessages.add(OpenAIChatCompletionChoiceMessageModel( content: [ OpenAIChatCompletionChoiceMessageContentItemModel.text(prompt), OpenAIChatCompletionChoiceMessageContentItemModel.fromMap( {'type': 'image_url', 'image_url': imageUri}) ], role: OpenAIChatMessageRole.user, ));
OpenAI API: https://platform.openai.com/docs/guides/vision
Error: ClientException: Failed to execute fetch: TypeError: Failed to fetch, uri=https://api.openai.com/v1/chat/completions
dart-sdk/lib/internal/js_dev_runtime/private/ddc_runtime/errors.dart 294:3 throw
packages/fetch_client/src/fetch_client.dart 127:7

@anasfik anasfik self-assigned this Feb 21, 2024
@anasfik anasfik added the bug Something isn't working label Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants