mirror of
https://github.com/mudler/LocalAI.git
synced 2025-06-21 00:04:59 +00:00
fix missing openai_api_base on langchain-chroma example (#818)
This commit is contained in:
@ -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.
|
||||
|
Reference in New Issue
Block a user