mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-25 03:10:08 +08:00
hotfix: github models check error (#6128)
This commit is contained in:
parent
b17326d8f9
commit
462f31e839
@ -1136,13 +1136,16 @@ export default class OpenAIProvider extends BaseOpenAIProvider {
|
||||
return { valid: false, error: new Error('No model found') }
|
||||
}
|
||||
|
||||
const body = {
|
||||
const body: any = {
|
||||
model: model.id,
|
||||
messages: [{ role: 'user', content: 'hi' }],
|
||||
enable_thinking: false, // qwen3
|
||||
stream
|
||||
}
|
||||
|
||||
if (this.provider.id !== 'github') {
|
||||
body.enable_thinking = false; // qwen3
|
||||
}
|
||||
|
||||
try {
|
||||
await this.checkIsCopilot()
|
||||
if (!stream) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user