Skip to content

Commit

Permalink
corsBypass for ollama
Browse files Browse the repository at this point in the history
  • Loading branch information
haouarihk committed May 13, 2024
1 parent f983a0c commit 02902db
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/LLMProviders/langchain/ollama.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ const logger = debug("textgenerator:llmProvider:ollama");

export default class LangchainOllamaProvider
extends LangchainBase
implements LLMProviderInterface
{
implements LLMProviderInterface {
static slug = "ollama" as const;

static provider = "Langchain";
Expand All @@ -24,6 +23,8 @@ export default class LangchainOllamaProvider
streamable = true;
llmPredict = true;

corsBypass = true;

id = LangchainOllamaProvider.id;
provider = LangchainOllamaProvider.provider;
originalId = LangchainOllamaProvider.id;
Expand Down

0 comments on commit 02902db

Please sign in to comment.