POST и API в DeepSeek запрос кто может подсказать

Регистрация
16.12.2015
Сообщения
50
Благодарностей
3
Баллы
8
Здравствуйте если пишу короткий запрос приходит нармальный ответ в json если пишу с большим ответом то приходит такой ответ -


HTTP/1.1 200 OK
Date: Wed, 14 May 2025 13:01:40 GMT
Content-Type: application/json
Transfer-Encoding: chunked
Connection: keep-alive
vary: origin, access-control-request-method, access-control-request-headers
access-control-allow-credentials: true
x-ds-trace-id: e64a2ff504e57a176362aa05571554ad
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
X-Content-Type-Options: nosniff
cf-cache-status: DYNAMIC
Server: cloudflare
CF-RAY: 93fa95e44db492e5-CPH
Content-Encoding: gzip

Запрос был такой -

{
"model": "deepseek-chat",
"messages": [
{"role": "user", "content": "Шашлык из баранины — напиши рецепт как топовый блогер, с подробностями приготовления, историей рецепта и рекомендациями"}
],
"stream": false
}

а вот другой ответ короткий -

Date: Wed, 14 May 2025 10:29:07 GMT
Content-Type: application/json
Transfer-Encoding: chunked
Connection: keep-alive
vary: origin, access-control-request-method, access-control-request-headers
access-control-allow-credentials: true
x-ds-trace-id: 1b9cbe3e99cb739f782322363c4f0ff6
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
X-Content-Type-Options: nosniff
cf-cache-status: DYNAMIC
Server: cloudflare
CF-RAY: 93f9b66c6fe8d090-CPH
Content-Encoding: gzip

{"id":"3bb72e9f-00d2-4b94-969e-9fe85a1b40f8","object":"chat.completion","created":1747218546,"model":"deepseek-chat","choices":\[{"index":0,"message":{"role":"assistant","content":"Making coffee is simple and can be done in various ways depending on your preferred method. Here’s a basic guide to brewing a great cup of coffee:\n\n### **Basic Steps to Make Coffee**\n1. **Choose Your Coffee Beans** \n - Use freshly roasted, high-quality coffee beans for the best flavor. \n - Grind them just before brewing for maximum freshness (medium grind for most methods).\n\n2. **Measure the Coffee & Water** \n - A standard ratio is **1 to 2 tablespoons of coffee per 6 oz (180 mL) of water**, depending on how strong you like it. \n - Adjust to taste.\n\n3. **Heat the Water** \n - Ideal brewing temperature: **195–205°F (90–96°C)**. \n - If boiling, let it cool slightly after reaching a boil.\n\n4. **Brewing Method (Choose One)**\n - **Drip Coffee Maker:** \n - Add ground coffee to the filter. \n - Pour water into the reservoir and start the machine. \n - **French Press:** \n - Add coffee, pour hot water, stir, and steep for **4 minutes**. \n - Press the plunger down slowly and pour. \n - **Pour-Over (e.g., V60, Chemex):** \n - Place a filter in the dripper, add coffee, and pour hot water in slow, circular motions. \n - Brew time: **2.5–4 minutes**. \n - **AeroPress:** \n - Add coffee, pour water, stir, press down after **1–2 minutes**. \n - **Espresso Machine:** \n - Use finely ground coffee, tamp firmly, and extract under pressure (\~25–30 seconds). \n\n5. **Serve & Enjoy** \n - Drink black or add milk, cream, sugar, or flavorings as desired. \n\n### **Pro Tips** \n- **Use filtered water** for better taste. \n- **Experiment with grind size & brew time** to adjust strength. \n- **Clean your equipment** regularly to avoid stale flavors. \n\nWould you like detailed instructions for a specific brewing method? ☕"},"logprobs"\:null,"finish\_reason":"stop"}],"usage":{"prompt\_tokens":8,"completion\_tokens":457,"total\_tokens":465,"prompt\_tokens\_details":{"cached\_tokens":0},"prompt\_cache\_hit\_tokens":0,"prompt\_cache\_miss\_tokens":8},"system\_fingerprint":"fp\_8802369eaa\_prod0425fp8"}
Запрос был такой -

{
"model": "deepseek-chat",
"messages": [
{"role": "user", "content": "How to make a coffee"}
],
"stream": false
}
 

n0n3mi1y

Client
Регистрация
08.03.2017
Сообщения
1 378
Благодарностей
694
Баллы
113
Таймаут может повысить надо, чтобы целиком получить ответ? На обработку запроса надо же время
 
  • Спасибо
Реакции: Валерий
Регистрация
16.12.2015
Сообщения
50
Благодарностей
3
Баллы
8
Таймаут может повысить надо, чтобы целиком получить ответ? На обработку запроса надо же время
Да увеличил в 2 раза все стало работать. Благодарю, добра и кеша!
 
  • Спасибо
Реакции: n0n3mi1y

Кто просматривает тему: (Всего: 3, Пользователи: 0, Гости: 3)