Skip to content

Commit ae82d46

Browse files
committed
Fix runtime error in production
1 parent 1bdc693 commit ae82d46

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main/ai.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ import { createOpenAI } from '@ai-sdk/openai'
33
import { PROMPT_SYSTEM } from './prompts'
44
import { settings } from './settings'
55

6-
const openai = createOpenAI({
7-
baseURL: settings.apiBaseURL,
8-
apiKey: settings.apiKey
9-
})
10-
116
export function getSolutionStream(base64Image: string) {
7+
const openai = createOpenAI({
8+
baseURL: settings.apiBaseURL,
9+
apiKey: settings.apiKey
10+
})
11+
1212
const { textStream } = streamText({
1313
model: openai(settings.model),
1414
system: settings.customPrompt || PROMPT_SYSTEM,

0 commit comments

Comments
 (0)