working request to openai
This commit is contained in:
parent
720dcbb381
commit
47b1cbaf04
4 changed files with 25693 additions and 6 deletions
|
@ -10,6 +10,7 @@
|
|||
#include <TextView.h>
|
||||
#include <StatusBar.h>
|
||||
#include <Window.h>
|
||||
#include <String.h>
|
||||
|
||||
|
||||
|
||||
|
@ -22,6 +23,7 @@
|
|||
#include "/boot/system/develop/headers/private/netservices2/HttpSession.h"
|
||||
#include "/boot/system/develop/headers/private/netservices2/HttpRequest.h"
|
||||
#include "/boot/system/develop/headers/private/netservices2/HttpResult.h"
|
||||
#include "/boot/system/develop/headers/private/netservices2/HttpFields.h"
|
||||
#include "/boot/system/develop/headers/private/netservices2/ErrorsExt.h"
|
||||
|
||||
//From private headers !
|
||||
|
@ -43,9 +45,12 @@ public:
|
|||
virtual void MessageReceived(BMessage *msg);
|
||||
|
||||
void sendQuery();
|
||||
BString ReadOpenAIKey();
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
BString _apiKey;
|
||||
BHttpSession _sharedSession = BHttpSession ();
|
||||
|
||||
std::optional<BHttpResult> _lastResult;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue