mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-04-28 11:39:48 +00:00
Use ollama's OpenAI compatible API
This commit is contained in:
parent
52caf96cf4
commit
6153d9e691
@ -26,7 +26,7 @@ public static class HostExtensions
|
|||||||
{
|
{
|
||||||
Host.LM_STUDIO => "/v1/",
|
Host.LM_STUDIO => "/v1/",
|
||||||
Host.LLAMACPP => "/v1/",
|
Host.LLAMACPP => "/v1/",
|
||||||
Host.OLLAMA => "/api/",
|
Host.OLLAMA => "/v1/",
|
||||||
|
|
||||||
_ => "/v1/",
|
_ => "/v1/",
|
||||||
};
|
};
|
||||||
@ -35,7 +35,7 @@ public static class HostExtensions
|
|||||||
{
|
{
|
||||||
Host.LM_STUDIO => "chat/completions",
|
Host.LM_STUDIO => "chat/completions",
|
||||||
Host.LLAMACPP => "chat/completions",
|
Host.LLAMACPP => "chat/completions",
|
||||||
Host.OLLAMA => "chat",
|
Host.OLLAMA => "chat/completions",
|
||||||
|
|
||||||
_ => "chat/completions",
|
_ => "chat/completions",
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user