You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.
hey @pedromartip , to add your own OpenAI account, you can spin up your own server using the code provided in the server folder, and change the url in the code you provided above to the URL of your own server. Lmk if you need any help with that!
Hello there,
I would like to use my openAI account instead of this one:
function getGPTResponse(question) {
var options = {
'method' : 'post',
'contentType': 'application/json',
// Convert the JavaScript object to a JSON string.
'payload' : JSON.stringify({
'message': question
})
};
const response = UrlFetchApp.fetch('https://chatgpt-api.kesarx.repl.co/chat', options);
const json = JSON.parse(response.getContentText());
return json.choices[0].message.content;
}
Does anyone know how to change it for the openAI chat API? (https://platform.openai.com/docs/api-reference/chat)
Thanks!
The text was updated successfully, but these errors were encountered: