2025-02-06 21:01:22 +00:00
|
|
|
import os
|
|
|
|
|
import requests
|
2025-02-06 20:22:43 +00:00
|
|
|
import json
|
2025-02-12 00:12:02 +01:00
|
|
|
from typing import List
|
2025-02-06 21:01:22 +00:00
|
|
|
from dotenv import load_dotenv
|
|
|
|
|
load_dotenv()
|
2025-02-06 20:22:43 +00:00
|
|
|
|
|
|
|
|
|
2025-02-12 00:12:02 +01:00
|
|
|
from src.llm import ai_chat
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#conversation_id = "12345" # Replace with the actual conversation ID
|
|
|
|
|
query = "Hello let us continue"
|
|
|
|
|
theme_id = 1
|
|
|
|
|
resume = "Emergency Response Specialist"
|
|
|
|
|
conversation_id = 1
|
|
|
|
|
response = ai_chat(query, conversation_id, theme_id, resume)
|
|
|
|
|
print(response)
|
|
|
|
|
"""
|
|
|
|
|
with open(file_path, 'rb') as file:
|
|
|
|
|
files = {'file': file}
|
|
|
|
|
response = requests.post(upload_url, files=files)
|
|
|
|
|
response.raise_for_status() # Ensure we raise an error for bad responses
|
|
|
|
|
response_data = response.json() # Get the response in JSON format
|
|
|
|
|
print(response_data)
|
|
|
|
|
|
|
|
|
|
"""
|
|
|
|
|
|