updated fireconfig

This commit is contained in:
OwusuBlessing
2025-06-11 17:13:47 +01:00
parent 6ae07d1d98
commit 3fcce3b464
6 changed files with 244 additions and 27 deletions
+6 -2
View File
@@ -34,9 +34,13 @@ QUESTIONS_PATH = "./data/config_files/questions.json"
with open(QUESTIONS_PATH, "r") as f:
questions = json.load(f)
from config import Config
prompt_template = None
MODEL = "gpt-4o-mini"
def initialize_workflow(model) -> StateGraph:
"""Initialize LangGraph workflow"""
workflow = StateGraph(state_schema=MessagesState)
@@ -62,8 +66,8 @@ def fetch_conversation_history(conversation_id: str) -> List[Message]:
"""
Fetch conversation history from the API using the conversation ID.
"""
x_api_key = os.getenv("BACKEND_XAPI_KEY")
base_url = os.getenv("BACKEND_BASE_URL")
x_api_key = Config.BACKEND_XAPI_KEY
base_url = Config.BACKEND_BASE_URL
url = f"{base_url}/v3/api/custom/jordan/ai-chat/get-messages/{conversation_id}?x-project={x_api_key}"
try: