Sign in
Log inSign up
Christos

61 likes

·

15.1K reads

10 comments

Rafael dos Santos Miguel Filho
Rafael dos Santos Miguel Filho
Mar 17, 2023

Awesome! Dart and Flutter are on my future study list, thanks for sharing this rich content with the community!

1
·
Hongkai Wang
Hongkai Wang
Mar 17, 2023

Good job

1
·
Franklin Mayoyo
Franklin Mayoyo
Mar 18, 2023

I liked the article even though am a web dev. I see dart and JavaScript are similar in many ways. I understood the code even though I've touched neither flutter nor dart. Nice article ❤️❤️

1
·
az
az
Apr 21, 2023

Can we use voice input/output to the chats? maybe use google stt and tts? and is there any widget to monetize?

·
·1 reply
Christos
Christos
Author
·Apr 24, 2023

Voice input/output should be possible! There are a few Flutter plugins making use of Google/Apple APIs for this.

To monetize an app such as this one, you should first move the OpenAI interactions to e.g. your own server, as your API key should remain secret.

·
Jakob
Jakob
May 23, 2023

I cloned the github repo and attempted to run the application, however upon replacement of the API, the application will not run providing the error:

"Const variables must be initialized with a constant value."

If I wrap the api key in '' then the application just says "an error has occurred" when trying to send messages...

Any ideas to help a newbie?

·
·1 reply
Christos
Christos
Author
·Nov 19, 2023

You need to get your own API key from OpenAI, otherwise this won't work. (apologies for the late response)

·
Dee
Dee
Nov 16, 2023

Hello, is it possible to pass a system message somehow before any of the messages?

·
·1 reply
Christos
Christos
Author
·Nov 19, 2023

Yes, you simply need to add a message at the beginning of the messages in the completeChat method. The role should be system instead of user.

·
Jakub Wiśniewski
Jakub Wiśniewski
Nov 29, 2023

conversation storage would be great

·