OpenAI 接口管理 & 分发系统,支持 Azure、Anthropic Claude、Google PaLM 2 & Gemini、智谱 ChatGLM、百度文心一言、讯飞星火认知、阿里通义千问、360 智脑以及腾讯混元,可用于二次分发管理 key,仅单可执行文件,已打包好 Docker 镜像,一键部署,开箱即用. OpenAI key management & redistribution system, using a single API for all LLMs, and features an English UI.
问题描述
OPENAI 的embeddings 接口的input是 数组,而智谱的input 是string
复现步骤
{"model":"embedding-2","input":["My name is Andrea"]}
{"error":{"message":"Panic detected, error: interface conversion: interface {} is []interface {}, not string. Please submit an issue with the related log here: https://github.com/songquanpeng/one-api","type":"one_api_panic"}}
例行检查
问题描述 OPENAI 的embeddings 接口的input是 数组,而智谱的input 是string 复现步骤 {"model":"embedding-2","input":["My name is Andrea"]} {"error":{"message":"Panic detected, error: interface conversion: interface {} is []interface {}, not string. Please submit an issue with the related log here: https://github.com/songquanpeng/one-api","type":"one_api_panic"}}
预期结果
相关截图![image](https://github.com/songquanpeng/one-api/assets/11872314/dcfeee7b-f19f-4455-84bc-ad51708762a5)