Config openai
From UBot Studio
(Difference between revisions)
(Created page with "$config_openai is a function used to configure the OpenAI API. This is used to set up the API key that will enable the user to make requests to the OpenAI service. Parameters...") |
|||
(3 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
− | + | '''config openai''' sets the API key for use with OpenAI commands and functions. | |
− | + | You need to provide the API key from OpenAI to authorize the use of the API. | |
− | + | == Parameters == | |
− | + | '''Key:''' The OpenAI API key. This is essential for providing authorization to use the OpenAI API. Note that the key is sensitive information. Never share this information with anyone. If you copy and paste your script to show it to someone, remove this api key. | |
− | + | == Example == | |
<pre> | <pre> | ||
− | + | config openai("your_open_ai_key") | |
− | + | ||
</pre> | </pre> | ||
− | + | This script configures the OpenAI API by setting up the API key "your_open_ai_key". Remember to replace "your_open_ai_key" with your actual OpenAI API key. |
Latest revision as of 14:31, 30 June 2023
config openai sets the API key for use with OpenAI commands and functions.
You need to provide the API key from OpenAI to authorize the use of the API.
[edit] Parameters
Key: The OpenAI API key. This is essential for providing authorization to use the OpenAI API. Note that the key is sensitive information. Never share this information with anyone. If you copy and paste your script to show it to someone, remove this api key.
[edit] Example
config openai("your_open_ai_key")
This script configures the OpenAI API by setting up the API key "your_open_ai_key". Remember to replace "your_open_ai_key" with your actual OpenAI API key.