Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Отправка POST-запроса
- response = requests.post(QWEN_URL, headers=QWEN_HEADERS, json=payload)
- # Обработка ответа
- if response.status_code == 200:
- result = response.json()
- print("Ответ от нейросети:", result["choices"][0]["message"]["content"])
- else:
- print(f"Ошибка при отправке запроса: {response.status_code}")
- print("Текст ошибки:", response.text)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement