Spaces:
Sleeping
Sleeping
Update src/bot/bot.py
Browse files- src/bot/bot.py +2 -1
src/bot/bot.py
CHANGED
|
@@ -1,7 +1,6 @@
|
|
| 1 |
import os
|
| 2 |
import toml
|
| 3 |
from typing import Optional
|
| 4 |
-
from groq import Groq
|
| 5 |
from langchain_core.prompts import ChatPromptTemplate
|
| 6 |
from langchain_core.output_parsers import StrOutputParser
|
| 7 |
from langchain_community.vectorstores import FAISS
|
|
@@ -27,6 +26,8 @@ class Medibot:
|
|
| 27 |
if not api_key:
|
| 28 |
logger.error("GROQ_API_KEY not found in environment variables")
|
| 29 |
raise ValueError("GROQ_API_KEY is required")
|
|
|
|
|
|
|
| 30 |
|
| 31 |
# Load prompt configuration
|
| 32 |
try:
|
|
|
|
| 1 |
import os
|
| 2 |
import toml
|
| 3 |
from typing import Optional
|
|
|
|
| 4 |
from langchain_core.prompts import ChatPromptTemplate
|
| 5 |
from langchain_core.output_parsers import StrOutputParser
|
| 6 |
from langchain_community.vectorstores import FAISS
|
|
|
|
| 26 |
if not api_key:
|
| 27 |
logger.error("GROQ_API_KEY not found in environment variables")
|
| 28 |
raise ValueError("GROQ_API_KEY is required")
|
| 29 |
+
|
| 30 |
+
os.environ["OPENAI_API_KEY"] = os.environ.get("OPENAI_API_KEY")
|
| 31 |
|
| 32 |
# Load prompt configuration
|
| 33 |
try:
|