-
Notifications
You must be signed in to change notification settings - Fork 483
Description
I am trying to connect the sqlchat to the locally hosted ollama model. We are able to send the request to the ollama model however the response is blank. We don't get any response. Below is the mentioned curl command.
curl 'http://localhost:3000/api/chat'
-H 'Accept: /'
-H 'Accept-Language: en-US,en;q=0.9'
-H 'Connection: keep-alive'
-H 'Content-Type: text/plain;charset=UTF-8'
-H 'Cookie: __stripe_mid=93879f1c-2224-4863-858f-3a40e62a3de53c8106; __stripe_sid=d908a2b3-9295-4aea-98bd-4569f8724ead746c6b'
-H 'Origin: http://localhost:3000'
-H 'Referer: http://localhost:3000/'
-H 'Sec-Fetch-Dest: empty'
-H 'Sec-Fetch-Mode: cors'
-H 'Sec-Fetch-Site: same-origin'
-H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36'
-H 'sec-ch-ua: "Not A(Brand";v="8", "Chromium";v="132", "Google Chrome";v="132"'
-H 'sec-ch-ua-mobile: ?0'
-H 'sec-ch-ua-platform: "Windows"'
-H 'x-openai-model: deepseek-r1:8b'
--data-raw '{"messages":[{"role":"system","content":"You are a general chat bot.\nWhen asked for your name, you must respond with "SQL Chat".\nYour responses should be informative and terse.\nSet the language to the markdown SQL block. e.g, SELECT * FROM table."},{"role":"user","content":"Give me an example schema about employee"},{"role":"user","content":"Give me an example schema about employee"},{"role":"user","content":"Give me an example schema about employee"}]}'