Skip to content

Commit

Permalink
Create set_azure_key.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
D7EAD authored Jun 12, 2023
1 parent a548d7a commit 03da5fe
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions documentation/authorization/examples/set_azure_key.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#include "liboai.h"

using namespace liboai;

int main() {
OpenAI oai;
if (oai.auth.SetAzureKey("hard-coded-key")) { // NOT recommended
...
}
}

0 comments on commit 03da5fe

Please sign in to comment.