Skip to content

Commit

Permalink
Update ESP32_openAI_telegrambot.ino
Browse files Browse the repository at this point in the history
  • Loading branch information
fustyles authored Apr 1, 2023
1 parent 3b7bd27 commit b2d60fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ESP32_openAI_telegrambot.ino
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ String openAI_chat(String message) {
client_tcp.println("POST /v1/chat/completions HTTP/1.1");
client_tcp.println("Connection: close");
client_tcp.println("Host: api.openai.com");
client_tcp.println("Authorization: Bearer " + token);
client_tcp.println("Authorization: Bearer " + openaiKey);
client_tcp.println("Content-Type: application/json; charset=utf-8");
client_tcp.println("Content-Length: " + String(request.length()));
client_tcp.println();
Expand Down

0 comments on commit b2d60fb

Please sign in to comment.