alondmnt / joplin-plugin-jarvis

Joplin (note-taking) assistant running a very intelligent system (OpenAI/GPT, Hugging Face, Gemini, Llama, Universal Sentence Encoder, etc.)
GNU Affero General Public License v3.0
209 stars 22 forks source link

OpenAI proxy #26

Closed LevonLu closed 2 months ago

LevonLu commented 2 months ago

Hello, could you please add an option to customize the OpenAI proxy in the settings?

alondmnt commented 2 months ago

I'm not entirely sure what you mean by OpenAI proxy, but if it's this repo, and it supports the OpenAI API, then you can change the OpenAI endpoint already in the settings. If you meant that you wish to edit the OpenAI endpoint in general, then in addition to the example below you can have a look at the examples in the Jarvis guide.

For example (just guessing here), select the following settings:

Chat: Model (online) OpenAI or compatible: custom model

and in the advanced settings:

Chat: OpenAI (or compatible) custom model ID gpt-4

Chat: Custom model is a conversation model yes

Chat: Custom model API endpoint https://openai.aihey.cc/openai/v1/chat/completions