redevrx / chat_gpt_sdk

Flutter ChatGPT
https://pub.dev/packages/chat_gpt_sdk
MIT License
307 stars 157 forks source link

Did syntax change quite a bit since this app was made? #58

Closed nyck33 closed 4 months ago

nyck33 commented 11 months ago

https://github.com/iampawan/ChatGPT-Flutter-AIChatBot

I feel like I'm using a different library.

Just ran flutter pub upgrade and a lot of stuff broke.

Can you fill me in?

nyck33 commented 11 months ago

It seems like all the responses get cut off. I said, "give me as much lorem ipsum text to fill the max tokens you can respond with" and all I get it is about a paragraph's worth. How can I refactor so the messages are in an infinitely scrolling view with the text composer floating so it stays on screen? Also the response length is too short.

redevrx commented 11 months ago

Your have code displays text

— Reply to this email directly, view it on GitHub https://github.com/redevrx/chat_gpt_sdk/issues/58#issuecomment-1646732792, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKLSYJPYKKARFVH2R5MU35TXRSIA7ANCNFSM6AAAAAA2TZQFLM . You are receiving this because you are subscribed to this thread.Message ID: @.***>

redevrx commented 11 months ago

https://github.com/iampawan/ChatGPT-Flutter-AIChatBot

ฉันรู้สึกเหมือนกําลังใช้ห้องสมุดอื่น

เพิ่งวิ่งอัพเกรดผับกระพือปีกและของมากมายพัง

คุณช่วยกรอกให้ฉันได้ไหม

yes

redevrx commented 11 months ago

It seems like all the responses get cut off. I said, "give me as much lorem ipsum text to fill the max tokens you can respond with" and all I get it is about a paragraph's worth. How can I refactor so the messages are in an infinitely scrolling view with the text composer floating so it stays on screen? Also the response length is too short.

example https://github.com/redevrx/chat_gpt_sdk/blob/main/example_app/openai_app/lib/screen/chatbot/chatbot.dart

nyck33 commented 11 months ago

Thanks! I git pulled and have that app running now. I hate to ask but is there any way to hard code in the openai key instead of using the gui that appears when I run the app?

I don't think shared preferences is totally secure by the way.