Description
This custom command allows you to use OpenAI’s Chat Completions API and get back the complete response object.
This custom command allows you to use OpenAI’s Chat Completions API and get back the complete response object.
How to configure and use this Custom Command :
1) Enter your OpenAI API Key.
2) Specify your preferred model.
3) Choose the role from User, System, and Assistant.
4) Input your prompt for completion.
2) Specify your preferred model.
3) Choose the role from User, System, and Assistant.
4) Input your prompt for completion.
Chat Completions response format example:
{
"choices": [
{
"finish_reason": "stop",
"index": 0,
"message": {
"content": "The history of the internet dates back to the 1960s when the US Department of Defense developed the ARPANET",
"role": "assistant"
},
"logprobs": null
}
],
"created": 1677664795,
"id": "chatcmpl-7QyqpwdfhqwajicIEznoc6Q47XAyW",
"model": "gpt-3.5-turbo-0613",
"object": "chat.completion",
"usage": {
"completion_tokens": 17,
"prompt_tokens": 57,
"total_tokens": 74
}
}
Watch Video Demo :
Note:
If you find our template useful and like it, please give us a favor by sharing this template to your community for wide circulation. Thanks
If you find our template useful and like it, please give us a favor by sharing this template to your community for wide circulation. Thanks