fix: 修正o1模型无法使用的问题

This commit is contained in:
magicdmer 2025-01-15 10:55:11 +08:00 committed by kangfenmao
parent f7f8c6f0c6
commit 75742323ea

View File

@ -191,7 +191,7 @@ export default class OpenAIProvider extends BaseProvider {
userMessages.push(await this.getMessageParam(message, model))
}
const isOpenAIo1 = model.id.includes('o1-')
const isOpenAIo1 = model.id.includes('o1-') || model.id === 'o1'
const isSupportStreamOutput = () => {
if (this.provider.id === 'github' && isOpenAIo1) {