OpenAI Conversation 操作#
¥OpenAI Conversation operations
使用此操作可在 OpenAI 中创建、获取、更新或移除对话。有关 OpenAI 节点本身的更多信息,请参阅 OpenAI。
¥Use this operation to create, get, update, or remove a conversation in OpenAI. Refer to OpenAI for more information on the OpenAI node itself.
创建对话#
¥Create a Conversation
使用此操作创建新的对话。
¥Use this operation to create a new conversation.
请输入以下参数:
¥Enter these parameters:
- 用于连接的凭据:创建或选择现有 OpenAI 凭证。
¥Credential to connect with: Create or select an existing OpenAI credential.
- 资源:选择“对话”。
¥Resource: Select Conversation.
- 操作:选择“创建对话”。
¥Operation: Select Create a Conversation.
- 消息:模型的消息输入。具有
system角色的消息优先于具有user角色的指令。角色为assistant的消息将被视为由模型在之前的交互中生成。
¥Messages: A message input to the model. Messages with the system role take precedence over instructions given with the user role. Messages with the assistant role will be assumed to have been generated by the model in previous interactions.
选项#
¥Options
- 元数据:一组用于存储结构化信息的键值对。你可以将最多 16 个节点对附加到对象,这对于添加可用于 API 或仪表板搜索的自定义数据非常有用。
¥Metadata: A set of key-value pairs for storing structured information. You can attach up to 16 pairs to an object, which is useful for adding custom data that can be used for searching via the API or in the dashboard.
有关更多信息,请参阅 对话 | OpenAI 文档。
¥Refer to Conversations | OpenAI documentation for more information.
获取对话#
¥Get a Conversation
使用此操作可检索现有对话。
¥Use this operation to retrieve an existing conversation.
请输入以下参数:
¥Enter these parameters:
- 用于连接的凭据:创建或选择现有 OpenAI 凭证。
¥Credential to connect with: Create or select an existing OpenAI credential.
- 资源:选择“对话”。
¥Resource: Select Conversation.
- 操作:选择“获取对话”。
¥Operation: Select Get Conversation.
- 对话 ID:要检索的对话的 ID。
¥Conversation ID: The ID of the conversation to retrieve.
有关更多信息,请参阅 对话 | OpenAI 文档。
¥Refer to Conversations | OpenAI documentation for more information.
移除会话#
¥Remove a Conversation
使用此操作可删除现有对话。
¥Use this operation to remove an existing conversation.
请输入以下参数:
¥Enter these parameters:
- 用于连接的凭据:创建或选择现有 OpenAI 凭证。
¥Credential to connect with: Create or select an existing OpenAI credential.
- 资源:选择“对话”。
¥Resource: Select Conversation.
- 操作:选择“移除对话”。
¥Operation: Select Remove Conversation.
- 对话 ID:要删除的对话的 ID。
¥Conversation ID: The ID of the conversation to remove.
有关更多信息,请参阅 对话 | OpenAI 文档。
¥Refer to Conversations | OpenAI documentation for more information.
更新对话#
¥Update a Conversation
使用此操作更新现有对话。
¥Use this operation to update an existing conversation.
请输入以下参数:
¥Enter these parameters:
- 用于连接的凭据:创建或选择现有 OpenAI 凭证。
¥Credential to connect with: Create or select an existing OpenAI credential.
- 资源:选择“对话”。
¥Resource: Select Conversation.
- 操作:选择“更新对话”。
¥Operation: Select Update a Conversation.
- 对话 ID:要更新的对话 ID。
¥Conversation ID: The ID of the conversation to update.
选项#
¥Options
- 元数据:一组用于存储结构化信息的键值对。你可以将最多 16 个节点对附加到对象,这对于添加可用于 API 或仪表板搜索的自定义数据非常有用。
¥Metadata: A set of key-value pairs for storing structured information. You can attach up to 16 pairs to an object, which is useful for adding custom data that can be used for searching via the API or in the dashboard.
有关更多信息,请参阅 对话 | OpenAI 文档。
¥Refer to Conversations | OpenAI documentation for more information.