mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-20 15:10:59 +08:00
fix: add gpustack provider for qwen3 enable think (#11843)
* add gpustack provider * fix: test * fix: type
This commit is contained in:
parent
595a0f194a
commit
c1bf6cfbb7
@ -148,9 +148,10 @@ export async function printWebviewToPDF(webviewId: number): Promise<string | nul
|
||||
|
||||
// Generate PDF with settings to capture full page
|
||||
const pdfData = await webview.printToPDF({
|
||||
marginsType: 0,
|
||||
margins: {
|
||||
marginType: 'default'
|
||||
},
|
||||
printBackground: true,
|
||||
printSelectionOnly: false,
|
||||
landscape: false,
|
||||
pageSize: 'A4',
|
||||
preferCSSPageSize: true
|
||||
|
||||
@ -754,7 +754,8 @@ describe('reasoning utils', () => {
|
||||
const result = getGeminiReasoningParams(assistant, model)
|
||||
expect(result).toEqual({
|
||||
thinkingConfig: {
|
||||
includeThoughts: true
|
||||
includeThoughts: true,
|
||||
thinkingBudget: -1
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
@ -58,7 +58,8 @@ export const isSupportStreamOptionsProvider = (provider: Provider) => {
|
||||
const NOT_SUPPORT_QWEN3_ENABLE_THINKING_PROVIDER = [
|
||||
'ollama',
|
||||
'lmstudio',
|
||||
'nvidia'
|
||||
'nvidia',
|
||||
'gpustack'
|
||||
] as const satisfies SystemProviderId[]
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user