Aimhub 全模型API测试平台(国内测试接口)
  1. 助手测试版(AssistantsBeta)
Aimhub 全模型API测试平台(国内测试接口)
  • 介绍
  • 发出请求
  • 项目说明
  • 导言
  • 身份验证
  • 参数详情
  • 模型列表(Models)
    • 模型对象
    • 模型列表获取(支持动态同步)
      GET
  • 聊天接口(Chat)
    • 聊天完成示列
    • 聊天完成块对象示列
    • Openai
      • gpt-3.5-turbo
      • gpt-3.5-turbo-0301
      • gpt-3.5-turbo-0613
      • gpt-3.5-turbo-1106
      • gpt-3.5-turbo-0125
      • gpt-3.5-turbo-16k
      • gpt-3.5-turbo-16k-0613
      • gpt-4
      • gpt-4-0314
      • gpt-4-0613
      • gpt-4-1106-preview
      • gpt-4-0125-preview
      • gpt-4-turbo-preview
      • gpt-4-32k
      • gpt-4-32k-0314
      • gpt-4-32k-0613
    • 阿里
      • qwen-turbo
      • qwen-plus
      • qwen-max
      • qwen-max-1201
      • qwen-max-longcontext
    • 文心千帆
      • 对话 Chat
        • ERNIE-Bot-4
        • ERNIE-Bot
        • ERNIE-Bot-turbo
    • 智谱
      • chatglm_lite
      • chatglm_std
      • chatglm_pro
      • chatglm_turbo
      • glm-3-turbo[128k]
      • glm-4[128k]
    • 腾讯
      • hunyuan
    • 讯飞
      • SparkDeskv1.1
      • SparkDeskv2.1
      • SparkDeskv3.1
      • SparkDeskv3.5
    • Moonshot
      • moonshot-v1-8k
      • moonshot-v1-32k
      • moonshot-v1-128k
    • Google
      • gemini-pro
    • Claude
      • claude-2.0
      • claude-2.1
      • claude-3-haiku-20240229
      • claude-3-opus-20240229
      • claude-3-sonnet-20240229
      • claude-3-5-sonnet-20240620
    • stepfun
      • step-1-32k
      • step-1v-32k
      • step-1-200k
  • 视觉模型(Vision)
    • gpt-4-vision-preview(视觉)
    • gpt-4-1106-vision-preview
    • gemini-pro-vision(多模态)
    • glm-4v(多模态)
  • 音频接口(Audio)
    • 创建翻译
    • TTS语音转文本
    • TTS文本转语音-alloy
    • TTS文本转语音-onyx
    • TTS-1-hd文本转语音-alloy
  • 自动补全(Completions)
    • 完成对象
    • 内容补全接口
  • 微调(Fine-tuning)
    • 微调作业对象
    • 微调作业事件对象
    • 创建微调作业
    • 列出微调作业
    • 检索微调作业
    • 取消微调
    • 列出微调事件
  • 向量生成接口(Embeddings)
    • 嵌入对象
    • 文心千帆 向量 Embeddings
      • Embedding-V1
    • 创建嵌入
  • 图像(Images)
    • DALL-E
      • README
      • 图像对象
      • DALL·E 2
      • DALL·E 3
      • 创建图像
      • 创建图片编辑
      • 创建图像变体
    • Midjourney API(测试中)
      • 任务查询
        • 指定ID获取任务
        • 获取任务图片的seed(需设置mj或niji的私信ID)
      • 任务提交
        • 提交Blend任务
        • 提交Describe任务
        • 提交Modal
        • 提交Shorten任务
        • 上传文件到discord
        • 执行动作
        • 提交Imagine任务
      • InsightFace任务提交
        • 提交swap_face任务
    • CogView
  • 文件(Files)
    • README
    • 文件对象
    • 上传文件
    • 删除文件
    • 检索文件
    • 检索文件内容
    • 列出文件
  • 审查(Moderations)(openai)
    • 调节对象
    • 创建内容审核
  • 助手测试版(AssistantsBeta)
    • 辅助对象
    • 辅助文件对象
    • 创建助手
      POST
    • 检索助手
      GET
    • 修改助手
      POST
    • 删除助手
      DELETE
    • 列出助手
      GET
    • 创建辅助文件
      POST
    • 检索助手文件
      GET
    • 删除辅助文件
      DELETE
    • 列出助手文件
      GET
  • 线程数(Threads)
    • 线程对象
    • 创建线程
    • 检索线程
    • 修改线程
    • 删除话题
  • 留言(Messages)
    • 消息对象
    • 消息文件对象
    • 创建消息
    • 检索消息
    • 修改留言
    • 列出消息
    • 检索消息文件
    • 列出消息文件
  • 运行(Runs)
    • 运行对象
    • 运行步骤对象
    • 创建运行
    • 检索运行
    • 修改运行
    • 列表运行
    • 提交工具输出以运行
    • 取消运行
    • 创建线程并运行
    • 检索运行步骤
    • 列出运行步骤
  • 已弃用
    • 创建转录
    • 创建翻译
  • 帮助中心
    • 常见问题及解决办法
  • all model test
    POST
  1. 助手测试版(AssistantsBeta)

修改助手

POST
https://api.gaiasc.com/v1https://api.openai.com/v1/assistants/{assistant_id }
最后修改时间:2023-12-02 10:28:46
责任人:未设置

请求参数

Path 参数
assistant_id 
string 
必需
需要修改的助手ID。
Header 参数
Authorization
string 
必需
默认值:
Bearer {{YOUR_API_KEY}}
Content-Type
string 
必需
默认值:
application/json
Accept
string 
必需
默认值:
application/json
Body 参数application/json
model
string 
可选
要使用的模型的 ID。您可以使用列表模型API 查看所有可用模型,或查看我们的模型概述以获取它们的描述。
name
string 
可选
助理的名字。最大长度为 256 个字符。
description
string 
可选
助理的描述。最大长度为 512 个字符。
instructions
string 
可选
助手使用的系统指令。最大长度为 32768 个字符。
tools
array [object {1}] 
可选
助手上启用的工具列表。每个助手最多可以有 128 个工具。工具的类型可以是code_interpreter、retrieval、 或function。
type
string 
可选
正在定义的工具类型:code_interpreter
file_ids
array[string]
可选
附加到该助手的文件ID列表。助手最多可以附加 20 个文件。文件按其创建日期升序排列。如果某个文件之前已附加到列表但未显示在列表中,则该文件将从助手中删除。
metadata
object 
可选
一组可附加到对象的 16 个键值对。这对于以结构化格式存储有关对象的附加信息非常有用。键的最大长度为 64 个字符,值的最大长度为 512 个字符。
示例
{
      "instructions": "You are an HR bot, and you have access to files to answer employee questions about company policies. Always response with info from either of the files.",
      "tools": [{"type": "retrieval"}],
      "model": "gpt-4",
      "file_ids": ["file-abc123", "file-abc456"]
    }

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.openai.com/v1/assistants/' \
--header 'Authorization;' \
--header 'Accept;' \
--header 'Content-Type: application/json' \
--data-raw '{
      "instructions": "You are an HR bot, and you have access to files to answer employee questions about company policies. Always response with info from either of the files.",
      "tools": [{"type": "retrieval"}],
      "model": "gpt-4",
      "file_ids": ["file-abc123", "file-abc456"]
    }'

返回响应

🟢200成功
application/json
Body
id
string 
必需
object
string 
必需
created_at
integer 
必需
name
string 
必需
description
null 
必需
model
string 
必需
instructions
string 
必需
tools
array [object {1}] 
必需
type
string 
可选
file_ids
array[string]
必需
metadata
object 
必需
示例
{
  "id": "asst_abc123",
  "object": "assistant",
  "created_at": 1699009709,
  "name": "HR Helper",
  "description": null,
  "model": "gpt-4",
  "instructions": "You are an HR bot, and you have access to files to answer employee questions about company policies. Always response with info from either of the files.",
  "tools": [
    {
      "type": "retrieval"
    }
  ],
  "file_ids": [
    "file-abc123",
    "file-abc456"
  ],
  "metadata": {}
}
上一页
检索助手
下一页
删除助手
Built with