Skip to content

Commit 228109a

Browse files
committed
fix: adjust maxTokens logic for LLM providers and update screenshot item styles
1 parent 5bb7f1c commit 228109a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main/lib/processing-manager.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ export class ProcessingManager {
405405
{ role: 'user', content: userMessagesContent }
406406
],
407407
temperature: 0.2,
408-
maxTokens: llmProvider.provider == 'openai' ? 4000 : 6000, // Vercel SDK might have different defaults or ways to set this
408+
maxTokens: llmProvider.provider == 'openai' ? 4000 : 6000,
409409
mode: 'json', // Enforce JSON output mode if supported by the model/provider
410410
abortSignal
411411
})
@@ -505,7 +505,7 @@ Your solution should be efficient, well-commented, and handle edge cases.
505505
{ role: 'user', content: promptText }
506506
],
507507
temperature: 0.2,
508-
maxTokens: 4000,
508+
maxTokens: solutionLLMProvider.provider == 'openai' ? 4000 : 6000,
509509
abortSignal
510510
})
511511
console.log('LLM Usage (Solution Generation):', usage)
@@ -673,7 +673,7 @@ Your solution should be efficient, well-commented, and handle edge cases.
673673
{ role: 'user', content: userMessagesContent }
674674
],
675675
temperature: 0.2,
676-
maxTokens: 4000,
676+
maxTokens: debuggingLLMProvider.provider == 'openai' ? 4000 : 6000,
677677
abortSignal
678678
})
679679
console.log('LLM Usage (Debugging):', usage)

src/renderer/src/components/queue/screenshot-item.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const ScreenshotItem: React.FC<ScreenshotItemProps> = ({
2525
return (
2626
<>
2727
<div
28-
className={`border rounded-xl border-white/90 relative w-36 h-24 ${isLoading ? '' : 'group'}`}
28+
className={`border overflow-hidden rounded-lg border-white/60 relative w-36 h-24 ${isLoading ? '' : 'group'}`}
2929
>
3030
<div className="w-full h-full relative">
3131
{isLoading && (

0 commit comments

Comments
 (0)