obsidian-Smart2Brain icon indicating copy to clipboard operation
obsidian-Smart2Brain copied to clipboard

Support custom OpenAI URL

Open bachp opened this issue 2 years ago • 4 comments

Allowing to specify an alternative URL for the OpenAI API gives the user the possibility to run the plugin against another alternative implementation like FastChat or llama.cpp.

bachp avatar Mar 21 '24 13:03 bachp

Came here to say the same thing, I don't use ollama but something else like many users I reckon who like to use models offline.

Nidvogr avatar Apr 03 '24 15:04 Nidvogr

OpenRouter can utilize the OpenAI API for model access. Besides the already available API Key setting, I suggest adding an option for the equivalent of OPENAI_BASE_URL in the Advanced Settings. For OpenRouter usage, this is typically set to https://openrouter.ai/api/v1. This addition might help to partially address the issue. image

Gerkinfeltser avatar Jun 13 '24 14:06 Gerkinfeltser