CorrectRoadH 473abb857c fix: the change assistant didn't take effect immediately #45 (#46)
* fix the change assistant didn't take effect immediately #45

* Update src/store/conversation.ts

Co-authored-by: boojack <stevenlgtm@gmail.com>

* change method name

* change method name

* fix the call method

---------

Co-authored-by: boojack <stevenlgtm@gmail.com>
2023-04-20 21:08:00 +08:00
2023-04-18 00:41:48 +08:00
2023-04-18 17:18:11 +08:00
2023-04-13 01:51:18 +08:00
2023-04-14 10:45:21 +08:00
2023-04-13 22:11:28 +08:00
2023-03-16 11:20:38 +08:00
2023-04-14 10:45:21 +08:00
2023-03-28 11:57:36 +08:00
2023-03-16 11:20:38 +08:00
2023-03-16 11:20:38 +08:00
2023-04-19 10:45:11 +08:00
2023-04-12 20:48:22 +08:00

SQL Chat banner

SQL Chat

vercel

What

SQL Chat is a chat-based SQL client to ask database questions and query databases using natural language.

Screenshot

Screenshot

Why

As we enter the Developer Tools 2.0 era, there is a massive opportunity to rebuild the existing tools using the chat-based interface. SQL Client is no exception. Instead of navigating across many UI controls, a chat-based interface is much more intuitive. Of course, only if that works, and our goal is to deliver that experience.

How

SQL Chat is built by Next.js, it supports the following databases and will add more over time:

  • MySQL
  • PostgreSQL
  • MSSQL

Data Privacy

  • All database connection configs are stored locally in your browser. You can also visit settings to clear the data.

  • Only the database schema will be sent to the OpenAI API. No table data will be sent there.

Deploy with Docker

docker run -d --name sqlchat -p 3000:3000 sqlchat/sqlchat:latest

You can set the following environment variables to customize the deployment:

  • OPENAI_API_KEY: OpenAI API key. You can get one from here.
  • OPENAI_API_ENDPOINT: OpenAI API endpoint. Defaults to https://api.openai.com.

Local Development

  1. Make a copy of the example environment variables file;

    cp .env.example .env
    
  2. Add your API key and OpenAI API Endpoint(optional) to the newly created .env file;

  3. Install dependencies and start the dev server;

    pnpm i && pnpm dev
    

Common questions

How to self host SQL Chat?

  • You can deploy SQL Chat to Vercel with one click

    vercel

  • You can deploy your SQL Chat with docker in seconds

    docker run -d --name sqlchat -p 3000:3000 sqlchat/sqlchat:latest
    

It always says that I have a network connection issue?

Please make sure you have a stable network connection which can access the OpenAI API endpoint. If you cannot access the OpenAI API endpoint, you can try to set the OPENAI_API_ENDPOINT in UI or environment variable.

Star History

Star History Chart

Community

Hang out on Discord

Follow us on Twitter

sqlchat

Sponsors

License

This project is under the BSL License. See the LICENSE file for the full license text.

Languages
TypeScript 98.7%
Dockerfile 0.5%
CSS 0.5%
JavaScript 0.3%