Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Request] 請求支援 2024/12/17 OpenAI API o1 正式版 API 新參數規格。 #5063

Open
Sen-CaPoo opened this issue Dec 17, 2024 · 5 comments
Labels
🌠 Feature Request New feature or request | 特性与建议

Comments

@Sen-CaPoo
Copy link

🥰 需求描述

OpenAI 的 API 於 2024/12/17 開放 o1 正式版,同時追加新的參數,請求支援。

https://platform.openai.com/docs/changelog

🧐 解决方案

新增了 o1gpt-4o-realtimegpt-4o-audio 以及 其他模型

為 o1 模型 新增了 reasoning_effort 參數

為 o1 模型 新增了 developer 訊息角色

📝 补充信息

No response

@Sen-CaPoo Sen-CaPoo added the 🌠 Feature Request New feature or request | 特性与建议 label Dec 17, 2024
@lobehubbot
Copy link
Member

👀 @Sen-CaPoo

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible.
Please make sure you have given us as much context as possible.
非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

@sxjeru
Copy link
Contributor

sxjeru commented Dec 20, 2024

reasoning_effort 参数 三档可调,个人认为适合做成一个按钮或下拉框等类似控件,放在工具栏上。由当前 model 指定是否显示。

image

@Sen-CaPoo
Copy link
Author

目前 OpenAI 已經更大規模開放 o1 正式版本的 API 串接使用,目前 lobechat 並不支援 OpenAI o1 正式版模型的呼叫,直接使用會出現錯誤,希望協助安排該項目的更新,感謝。

其中比較關鍵的是流式輸出的調整與 reasoning_effort 的新增參數。

以下是目前直接呼叫後 lobechat 輸出的錯誤訊息:
{
"error": {
"code": "unsupported_value",
"type": "invalid_request_error",
"param": "stream",
"message": "Unsupported value: 'stream' does not support true with this model. Supported values are: false."
},
"endpoint": "https://api.openai.com/v1",
"provider": "openai"
}

@ykangw
Copy link

ykangw commented Jan 22, 2025

Same issue.

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌠 Feature Request New feature or request | 特性与建议
Projects
None yet
Development

No branches or pull requests

4 participants