mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-29 23:12:38 +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') }
|
return { valid: false, error: new Error('No model found') }
|
||||||
}
|
}
|
||||||
|
|
||||||
const body = {
|
const body: any = {
|
||||||
model: model.id,
|
model: model.id,
|
||||||
messages: [{ role: 'user', content: 'hi' }],
|
messages: [{ role: 'user', content: 'hi' }],
|
||||||
enable_thinking: false, // qwen3
|
|
||||||
stream
|
stream
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.provider.id !== 'github') {
|
||||||
|
body.enable_thinking = false; // qwen3
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await this.checkIsCopilot()
|
await this.checkIsCopilot()
|
||||||
if (!stream) {
|
if (!stream) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user