Code Monkey home page Code Monkey logo

soulteary / sparrow Goto Github PK

View Code? Open in Web Editor NEW
88.0 88.0 18.0 424 KB

ChatGPT Style client-compatible Backend Server, open source implementation.

Home Page: https://soulteary.com/2023/05/19/make-openai-more-open-and-freely-access-data-sources-in-chatgpt.html

License: Apache License 2.0

Go 99.75% Dockerfile 0.14% Shell 0.11%
chat-application chatgpt chatgpt-api chatgpt-backend chatgpt-plugin chatgpt-plugins flagstudio midjourney midjourney-api-bot

sparrow's Introduction

Sparrow / 麻雀

ENGLISH | 中文文档

CodeQL Security Scan Release Go Report Card

ChatGPT Style client-compatible Backend Server, open source implementation.

Usage

The service can run independently, but if you want to get a quick result, you need to use OpenAI's client request method. A simple way is to use soulteary/docker-chatgpt client.

If used alone, you can refer to the following command:

# download this project image from dockerhub
docker pull soulteary/sparrow
# refer to `docker-compose.yml` to add some environment variables you need
docker run -p 8091:8091 soulteary/sparrow

or, download the docker-compose.yml from the project, and use the following command:

docker compose up -d

About This Project

  • Wouldn't it be interesting if the content in the ChatGPT ecosystem could be connected and then called to any other service?

  • Wouldn’t it be interesting if the products and functional services of the open source ecosystem can be freely and freely connected to ChatGPT or similar model services?

  • If we can freely combine the most advanced business services and software capabilities full of freedom and risks, especially those software that does not provide Chat OPS interaction ability, will it make us easier to make us easier

Quick Overview

Talk is cheap, I'll show you the video, and the code.

Regardless of whether we use a plug-in, we should be able to use other online services freely in ChatGPT or similar open source software. Whether it is a commercial service or an open source software for free.

If the content we want to look for itself is a long content, then our client should be able to support such long content display rather than abruptly.

Regardless of whether we are selected by Waitlist, accessing the world through Chatops and obtaining information should be the most basic ability.

sparrow's People

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

sparrow's Issues

No characters in ui code like (), []

Here is a JavaScript function that maps an array of strings to lowercase first letter:

javascript
Copy code
function mapArrayToLowercaseFirstLetterarr {
return arr.mapstr => {
const lowercaseFirstLetter = str.charAt0.toLowerCase + str.slice1;
return lowercaseFirstLetter;
};
}
Here's an example usage:

javascript
Copy code
const inputArray = "Apple", "Banana", "Orange";
const mappedArray = mapArrayToLowercaseFirstLetterinputArray;
console.logmappedArray;
// Output: "apple", "banana", "orange"

The administrator has disabled the export capability of this model.

In your another project :
docker-chatgpt

Input: *
Output: The administrator has disabled the export capability of this model.
Project: [soulteary/sparrow](https://github.com/soulteary/sparrow).
Talk is Cheap, Let's coding together.

docker config:

version: '3'

services:

  chatgpt-client:
    image: soulteary/chatgpt
    restart: always
    ports:
      - 8090:8090
    environment:
      # service port
      APP_PORT: 8090
      # the ChatGPT client domain, keep the same with chatgpt-client: `APP_HOSTNAME` option
      APP_HOSTNAME: "http://localhost:8090"
      # the ChatGPT backend upstream, or connect a sparrow dev server `"http://host.docker.internal:8091"`
      APP_UPSTREAM: "http://sparrow:8091"

  sparrow:
    image: soulteary/sparrow
    restart: always
    environment:
      # [Basic Settings]
      # => The ChatGPT Web Client Domain
      WEB_CLIENT_HOSTNAME: "http://localhost:8090"
      # => Service port, default: 8091
      # APP_PORT: 8091

      # [Private OpenAI API Server Settings] *optional
      # => Enable OpenAI 3.5 API
      ENABLE_OPENAI_API: "on"
      # => OpenAI API Key
      OPENAI_API_KEY: "sk-bkbWNsYhIsU27l2Tp11eHT3BlbkFJoMdXQJKfwHAfpGW2VhzK"
      FEATURE_NEW_UI: "on"
      # enable the models for switch
      ENABLE_OPENAI_OFFICIAL_MODEL: "on"
      # use new look UI, need to set the model switcher, and plugin system to `"on"`
      ENABLE_MODEL_SWITCH: "on"
      ENABLE_PLUGIN: "on"
    logging:
        driver: "json-file"
        options:
            max-size: "10m"

0x05 Basic Components

  • Prompt management (Predict, Hotload)
  • Retrieval management (Text Similar, Text Exact Match, Vector)
  • Datasource management (Predict, Muti-type)
  • Pipeline management (pre, post job, pipeline)

0x04 Basic Connectors

Connectors are responsible for connecting different data sources in the sparrow project, and the project should implement some basic scene connectors.

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.