We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bdc693 commit ae82d46Copy full SHA for ae82d46
src/main/ai.ts
@@ -3,12 +3,12 @@ import { createOpenAI } from '@ai-sdk/openai'
3
import { PROMPT_SYSTEM } from './prompts'
4
import { settings } from './settings'
5
6
-const openai = createOpenAI({
7
- baseURL: settings.apiBaseURL,
8
- apiKey: settings.apiKey
9
-})
10
-
11
export function getSolutionStream(base64Image: string) {
+ const openai = createOpenAI({
+ baseURL: settings.apiBaseURL,
+ apiKey: settings.apiKey
+ })
+
12
const { textStream } = streamText({
13
model: openai(settings.model),
14
system: settings.customPrompt || PROMPT_SYSTEM,
0 commit comments