import json
import requests
headers = {"Authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjo
iN2E5MjkwOTUtZDcxMC00MDM4LWI0N2MtMzAxYzlmZjVkOTRkIiwidHlwZSI6ImFwaV90b2tlbiJ9.ukbmBb6J-_y
nlkBUBLGVcOxsicygwU5m55sMfH6gS2M"}
url ="https://api.edenai.run/v2/aiproducts/askyoda/e3501019-28b7-46f0-8ed5-7a5600d409a1/ask_llm"
payload={
"query": "Which product is the most expensive?",
"llm_provider": "openai",
"llm_model": "gpt-3.5-turbo-instruct",
"k": 5,
"filter_documents":{"metadata1":"value1"}
}
response = requests.post(url, json=payload, headers=headers)
result = json.loads(response.text)
print(result)