Giter Club home page Giter Club logo

chatcat's Introduction

More Secure、Efficient、Integrated An chatGPT-based integrated efficiency tool

GitHub license Go Report Card codebeat badge GitHub stars

English | 中文文档

Download:

Chatcat

ChatCat More Safety ChatGPT Client Supports Mac (Intel, M1, M2), win7 64-bit and above systems

Introduction

  1. Classification Management: Manage dialogue content lists by category.
  2. Prompt Word Management: Manage your own high-quality prompt words in a unified way for easy sharing and use.
  3. Common Configuration: Configure keys, set API models, set internationalization, and themes.
  4. Data Synchronization: Register online environments for sharing prompt words and dialogue content.
  5. Dialogue Management: Save dialogue content locally for easy management.
  6. Advanced Settings: Dynamic adjustment of GPT conversation parameters can be made, such as randomness, the number of attached historical messages, word reply limits, etc.

Screenshots

Technology Stack

Vue3 + arco.design + golang + wails + sqlite

Local Development

Install wails from the official source for packaging.

Note: The official wails packaging cannot run on win7. To support win7, download MQEnergy/wails and compile it locally:

cd wails/v2/cmd/wails
go install .

Run the tests:

# 
make dev

Installation Package

Mac Environment

1. Package according to the local environment

# The ENV parameter can be set to test (for testing) or prod (for production), for example:
make build ENV=prod

# Package into dmg format
make dmg

2、Package installation packages for other environments.

# amd64
make darwin/amd64 ENV=prod

# arm64
make darwin/arm64 ENV=prod

Windows Environment

Note: The installation packages below need to be packaged according to your computer architecture, otherwise the packaging may not be successful.

# amd64 is a 64-bit version of the X86 architecture CPU. It is also known as X86_64. It is widely used in mainstream desktop PCs, laptops, and servers (including virtual machines).
make windows/amd64 ENV=prod

# arm64 is a 64-bit version of the ARM architecture CPU.
make windows/arm64 ENV=prod

# win32
make windows/386 ENV=prod

chatcat's People

Contributors

chenxi2015 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

chatcat's Issues

windows平台启动项目时存在的几个问题

在windows上启动测试的,可能出现的部分问题如下

  1. 启动时panic异常Node number must be between 0 and 1023 参考MQEnergy/go-websocket#1
  2. sqlite初始化error导致启动失败
    • 文件路径拼接出现 c:\xxxxx\xxxxx/AppName/DbNamefilepath.Join处理
    • 初始化的时候没有创建文件夹及文件导致gorm.Open找不到路径
// 异常路径https://github.com/MQEnergy/chatcat/blob/main/backend/pkg/csqlite/sqlite.go#L26
// 参考修改的代码如下 
databasePath = filepath.Join(runtimeDir, conf.App.AppName, conf.App.DbName)
if !chelp.IsPathExist(databasePath) {
	// 创建文件夹和文件
	err := os.MkdirAll(filepath.Join(runtimeDir, conf.App.AppName), os.ModePerm)
	if err != nil {
		panic(err)
	}
	_, err = os.Create(databasePath)
	if err != nil {
		panic(err)
	}

	// 初始化数据库
	db, err = gorm.Open(sqlite.Open(databasePath), &gorm.Config{})
		....

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.