Files
YiemAgent/test/test_2.jl
narawat lamaiin ca0f9cd53f update
2024-08-27 13:22:53 +07:00

35 lines
395 B
Julia

import requests
# URL of the API endpoint
url = 'https://api.yiem.cc/wine/agent/sommelier/prompt/apiv1'
# Data to be sent in the JSON request
data = {
'sid': 'dummySID',
'txt': 'hello'
}
# Sending the POST request
response = requests.post(url, json=data)
# Displaying the response
print('Status Code:', response.status_code)
print('Response JSON:', response.json())