leo-elstin / chat_gpt Goto Github PK
View Code? Open in Web Editor NEWChatGPT SDK for Flutter apps written in Dart Language
Home Page: https://pub.dev/packages/chat_gpt_api
License: BSD 3-Clause "New" or "Revised" License
ChatGPT SDK for Flutter apps written in Dart Language
Home Page: https://pub.dev/packages/chat_gpt_api
License: BSD 3-Clause "New" or "Revised" License
I wonder if it is possible and if so, what is the configuration like?
Issue Title: Unable to Catch Invalid Token Errors in chatgpt_completions Flutter Package
Description:
I am using the chatgpt_completions package for Flutter to integrate OpenAI's GPT-3.5 language model into my application. While the package works well in normal scenarios, I have encountered an issue with error handling related to invalid tokens.
Issue Details:
When an invalid token is provided or when something is wrong with the token, the package says in debug console
[VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: Exception: status code: 401, error: Incorrect API key provided: sk-S5Y6J********************************************temp. You can find your API key at https://platform.openai.com/account/api-keys.
But I can't catch this error in the code.
Expected Behavior:
When an invalid token is detected or any token-related error occurs, the chatgpt_completions package should raise clear and descriptive error messages . This would greatly assist developers in identifying the issue and taking appropriate actions.
How to maintain a session?
i make a new page and used chat_gpt
people use my app in chat Gpt
I want chat gpt to know the history of asking questions by maintaining their session.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.