Skip to content

Commit 68183c7

Browse files
committed
fix: allow openai in browser
Signed-off-by: Innei <[email protected]>
1 parent 2e601eb commit 68183c7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/views/manage-posts/components/ask-ai.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ CONCISE SUMMARY:`)
3030
const handleAskAI = async () => {
3131
const ai = new OpenAI({
3232
apiKey: token.value,
33+
dangerouslyAllowBrowser: true,
3334
})
3435

3536
const finalPrompt = promptRef.value.replace('{text}', props.article)

0 commit comments

Comments
 (0)