steven-tey / novel

Notion-style WYSIWYG editor with AI-powered autocompletion.
https://novel.sh
Apache License 2.0
12.47k stars 1.03k forks source link

openai API proxy url #261

Closed mosas closed 8 months ago

mosas commented 8 months ago

does anyone can help me with adding my own openai api-key with proxy url?

marcushohlbein commented 8 months ago

You have to add your own api key to the .env file as OPENAI_API_KEY and if you want to edit the default completion url ('api/generate') init the editor with the prop completionApi.

<Editor completionApi="YOUR_URL_GOES_HERE" />