mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-20 10:35:01 +00:00
fix missing openai_api_base on langchain-chroma example (#818)
This commit is contained in:
parent
78e36779cf
commit
9b307799ce
2 changed files with 3 additions and 3 deletions
|
@ -9,7 +9,7 @@ from langchain.vectorstores.base import VectorStoreRetriever
|
|||
base_path = os.environ.get('OPENAI_API_BASE', 'http://localhost:8080/v1')
|
||||
|
||||
# Load and process the text
|
||||
embedding = OpenAIEmbeddings()
|
||||
embedding = OpenAIEmbeddings(model="text-embedding-ada-002", openai_api_base=base_path)
|
||||
persist_directory = 'db'
|
||||
|
||||
# Now we can load the persisted database from disk, and use it as normal.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue