Умные боты для бизнеса с Claude и Qwen
API запросPOST JSONcryptocatslab.ru/api/v1/chat/completionsAuthorization: Bearer sk-ваш-ключ
Content-Type: application/json{
"model": "claude-haiku-4-5",
"messages": [
{"role": "system", "content": "Ты помощник магазина..."},
{"role": "user", "content": "#{text}"}
]
}#{text} — переменная с сообщением пользователя
#{api_response.choices.0.message.content}