coaidev / coai

🚀 Next Generation AI One-Stop Internationalization Solution. 🚀 下一代 AI 一站式 B/C 端解决方案,支持 OpenAI,Midjourney,Claude,讯飞星火,Stable Diffusion,DALL·E,ChatGLM,通义千问,腾讯混元,360 智脑,百川 AI,火山方舟,新必应,Gemini,Moonshot 等模型,支持对话分享,自定义预设,云端同步,模型市场,支持弹性计费和订阅计划模式,支持图片解析,支持联网搜索,支持模型缓存,丰富美观的后台管理与仪表盘数据统计。
https://coai.dev
Apache License 2.0
6.92k stars 900 forks source link

不支持 o1-preview #255

Open FlintyLemming opened 2 weeks ago

FlintyLemming commented 2 weeks ago

供应商名称

OpenAI o1-preview

描述

调用 o1 的 API 时报错

Unsupported parameter: 'max_tokens' is not supported with this model. Use 'max_completion_tokens' instead. (type: invalid_request_error)

参考 issue: https://github.com/janhq/jan/issues/3698

Issues-translate-bot commented 2 weeks ago

Bot detected the issue body's language is not English, translate it automatically.


Title: o1-preview is not supported

Supplier name

OpenAI o1-preview

describe

An error occurs when calling the API of o1

Unsupported parameter: 'max_tokens' is not supported with this model. Use 'max_completion_tokens' instead. (type: invalid_request_error)

Reference issue: https://github.com/janhq/jan/issues/3698