Minecraft Chat To ChatGPT
免责声明 - 使用 API 并非免费,消息发送会消耗令牌,而令牌需要付费。有关定价详情,请访问 OpenAI Pricing
使用方法
要与 ChatGPT 交互,请输入以 # 为前缀的命令。
注册
首先,注册你的 API 密钥,你可以在 OpenAI API Key 找到。注意:需要一个账户。
示例用法(忽略尖括号):
#register <YOUR_API_KEY_HERE>
模组将确认密钥注册。如果密钥无效,聊天将会失败。
设置参数
默认参数是
- 模型: gpt-3.5-turbo 可用模型
- 最大令牌数: 50 什么是令牌?
- 温度: 1.0 (这控制随机性,1.0 是完全随机,0.0 是完全确定)
要修改这些参数,请使用 #setapi 命令:
#setapi model ada // 设置模型
#setapi tokens 30 // 将最大令牌数设置为 30
#setapi temp 0.2 // 将温度设置为 0.2
聊天
要与 ChatGPT 聊天,请使用 #chat 命令后跟你要发送的消息:
#chat What is water?
这将向 ChatGPT 提问“什么是水?”并将在聊天中显示响应。响应仅对玩家可见。
依赖项
此模组需要 FabricAPI 才能工作
资源
OpenAI API Documentation 获取更多信息。
Minecraft Chat To ChatGPT
Disclaimer - Using the API is not free, Messaging consumes tokens, which cost money. For pricing details, visit OpenAI Pricing
Usage
To interact with ChatGPT, type commands prefixed with #.
Register
First, register your API key, which can be found at OpenAI API Key. Note: An account is required.
Example usage (ignore angle brakets):
#register <YOUR_API_KEY_HERE>
The mod will confirm key registration. If the key is invalid, chatting will fail.
Setting Parameters
The Default parameters are
- Model: gpt-3.5-turbo Available Models
- Max Tokens: 50 What are Tokens?
- Temperature: 1.0 (This controls the randomness 1.0 is fully random, 0.0 is fully deterministic)
To modify these parameters, use the #setapi command:
#setapi model ada // set the model
#setapi tokens 30 // set the max tokens to 30
#setapi temp 0.2 // set the temperature to 0.2
Chatting
To chat with ChatGPT, use the #chat command followed by the message you want to send:
#chat What is water?
This will ask ChatGPT "What is water?" and the response will appear in the chat. Responses are visible only to the player.
Dependencies
This mod requires the FabricAPI to work
Resources
OpenAI API Documentation for more information.
评论 0
登录后参与评分
还没有评论,来抢沙发吧