Customize application settings (#132)

* Allow customizing the base application

* Make the core llms and embeddings customizable

* Make the settings, reasoning and index customizable

* Import from langchain_openai
This commit is contained in:
Duc Nguyen (john)
2024-01-21 14:36:07 +07:00
committed by GitHub
parent 5a9d6f75be
commit 9c5b707010
4 changed files with 5 additions and 4 deletions

View File

@@ -122,7 +122,7 @@ class OpenAIEmbeddings(LCEmbeddingMixin, BaseEmbeddings):
def _get_lc_class(self):
try:
from langchain_community.embeddings import OpenAIEmbeddings
from langchain_openai import OpenAIEmbeddings
except ImportError:
from langchain.embeddings import OpenAIEmbeddings
@@ -152,7 +152,7 @@ class AzureOpenAIEmbeddings(LCEmbeddingMixin, BaseEmbeddings):
def _get_lc_class(self):
try:
from langchain_community.embeddings import AzureOpenAIEmbeddings
from langchain_openai import AzureOpenAIEmbeddings
except ImportError:
from langchain.embeddings import AzureOpenAIEmbeddings