GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Trying to connect to Ollama · Issue #173 · sqlchat/sqlchat

Trying to connect to Ollama #173

New issue
Copy link
New issue
Copy link
Open
Open
Trying to connect to Ollama#173
Copy link

Description

@vishalmishra14
vishalmishra14
opened on Feb 6, 2025
Issue body actions

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"}]}'

Reacted by Pablo Hinojosa and naknak987

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.