Spaces:
Runtime error
Runtime error
Update utils.py (#3)
Browse files- Update utils.py (f921450b1288b880a79b365a5655d8fabf8b529a)
Co-authored-by: Youri Itterbeek <itbyouri@users.noreply.huggingface.co>
utils.py
CHANGED
@@ -22,7 +22,7 @@ def format_document_metadata(docs):
|
|
22 |
|
23 |
def openai_llm(api_key: str):
|
24 |
"""Get a configured OpenAI language model."""
|
25 |
-
return ChatOpenAI(model_name="gpt-
|
26 |
|
27 |
def delete_collection(collection_name, qdrant_url, qdrant_api_key):
|
28 |
"""Delete a Qdrant collection."""
|
|
|
22 |
|
23 |
def openai_llm(api_key: str):
|
24 |
"""Get a configured OpenAI language model."""
|
25 |
+
return ChatOpenAI(model_name="gpt-4o", temperature=0, openai_api_key=api_key)
|
26 |
|
27 |
def delete_collection(collection_name, qdrant_url, qdrant_api_key):
|
28 |
"""Delete a Qdrant collection."""
|