added shortcuts
This commit is contained in:
parent
de3dc540c4
commit
392dc320b9
5 changed files with 19 additions and 11 deletions
|
@ -270,7 +270,9 @@ void Conversation::ask(const std::string &prompt) {
|
|||
auto url = BUrl("https://api.openai.com/v1/chat/completions");
|
||||
BHttpRequest request = BHttpRequest(url);
|
||||
request.SetMethod(BHttpMethod::Post);
|
||||
|
||||
//Allow up to 2 minute before timeout, it can be long depending on load or complexity of prompt
|
||||
request.SetTimeout(120*1000000);
|
||||
|
||||
BHttpFields fields = BHttpFields();
|
||||
fields.AddField("Authorization", buildBearerKey());
|
||||
// fields.AddField("Content-Type", "application/json"); //NO, this will
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue