updated fireconfig
This commit is contained in:
+6
-2
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user