The OpenAI GPT-3 plugin for Bubble.io allows you to seamlessly integrate the powerful GPT-3.5 Turbo language model into your Bubble application. With this plugin, you can easily make API calls to generate human-like text based on the prompts you provide. Whether you're building a chatbot, a content generator, or any other NLP application, this plugin has got you covered.
API Calls:
Authorization: Bearer YOUR API KEY HERE
Content-Type: application/json
Request Name: Get ChatGPT
Response Type: POST
API Endpoint:
https://api.openai.com/v1/chat/completionsRequest Body:
{
"model": "gpt-3.5-turbo",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "<Prompt>"
},
{
"role": "assistant",
"content": ""
}
],
"temperature": 0.7,
"max_tokens": 256,
"top_p": 1,
"frequency_penalty": 0,
"presence_penalty": 0
}
Sample Response:
{
"id": "chatcmpl-8BOsMkA1NWAGb2gP0tvsZ37Jflt1x",
"object": "chat.completion",
"created": 1697727922,
"model": "gpt-3.5-turbo-0613",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hello! How can I assist you today?"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 22,
"completion_tokens": 9,
"total_tokens": 31
}
}