Appearance
不支持接口
以下接口路由已存在,但当前未启用对应能力。调用时返回 OpenAI 风格错误,HTTP 状态码为 501。
接口列表
| 接口 | SDK 方法 | 状态 |
|---|---|---|
POST /v1/completions | client.completions.create() | 暂不支持 |
POST /v1/images/generations | client.images.generate() | 暂不支持 |
POST /v1/audio/transcriptions | client.audio.transcriptions.create() | 暂不支持 |
GET /v1/files | client.files.list() | 暂不支持 |
POST /v1/files | client.files.create() | 暂不支持 |
GET /v1/batches | client.batches.list() | 暂不支持 |
POST /v1/batches | client.batches.create() | 暂不支持 |
POST /v1/moderations | client.moderations.create() | 暂不支持 |
错误格式
json
{
"error": {
"message": "files is not enabled on this gateway",
"type": "unsupported_feature",
"code": "unsupported_feature"
}
}边界
| 边界 | 说明 |
|---|---|
| 重试 | 不建议重试 unsupported_feature |
| 文件上传 | 当前没有文件上传、文件引用、文件生命周期管理 |
| 图片/音频生成 | 当前不提供统一生成接口 |
| 后续启用 | 若后续开放,会新增独立文档页说明参数和计费边界 |
示例
bash
curl -i https://llm.lytokens.com/v1/files \
-H 'Authorization: Bearer sk-gtw-REPLACE_ME'