handles missing api key
This commit is contained in:
parent
2489e46d23
commit
708eb51755
7 changed files with 85 additions and 13 deletions
|
@ -47,12 +47,16 @@ using namespace BPrivate::Network;
|
|||
class Conversation : public BHandler {
|
||||
public:
|
||||
|
||||
bool validKey = false;
|
||||
|
||||
Conversation(BHandler* replyTo);
|
||||
virtual ~Conversation() ;
|
||||
virtual void ask(const std::string& prompt);
|
||||
virtual void MessageReceived(BMessage *msg);
|
||||
|
||||
private:
|
||||
|
||||
|
||||
void sendReply(BMessage message);
|
||||
BHandler* replyTarget;
|
||||
BString ReadOpenAIKey();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue