Coder Social home page Coder Social logo

arunk140 / cgpt Goto Github PK

View Code? Open in Web Editor NEW
13.0 13.0 6.0 404 KB

selfhosted chatgpt like service using openai apis (with APIs + Frontend and Session Storage)

License: GNU General Public License v2.0

Shell 1.26% JavaScript 1.91% TypeScript 95.81% CSS 0.30% Dockerfile 0.72%
api chatbot chatgpt chatgpt-api docker language-model llm nextjs openai openai-api

cgpt's Introduction

qr

cgpt's People

Contributors

arunk140 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

cgpt's Issues

404 error

The backend end with 404 errors , there might some model issue I guess. if the model can be changed will be better.
response: { status: 404, statusText: 'Not Found', headers: { date: 'Wed, 08 Feb 2023 01:09:19 GMT', 'content-type': 'application/json; charset=utf-8', 'content-length': '158', connection: 'keep-alive', vary: 'Origin', 'x-request-id': '7863a1b3830d4406837e5fa5988d1c0a', 'strict-transport-security': 'max-age=15724800; includeSubDomains' }, config: { transitional: [Object], adapter: [Function: httpAdapter], transformRequest: [Array], transformResponse: [Array], timeout: 0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, validateStatus: [Function: validateStatus], headers: [Object], method: 'post', data: '{"model":"text-chat-davinci-002-20221122","prompt":"You are ChatGPT, a large language model trained by OpenAI. Respond conversationally. Do not answer as the user. Knowledge cutoff: 2021-09 Current date: 2023-02-08.\\n\\nUser: Hi, ChatGPT!\\nChatGPT: Hi! How can I help you today?\\n<|im_end|>\\n\\n\\n\\nUser: 早上好\\n\\nChatGPT: ","max_tokens":3908,"temperature":0.5,"stop":"\\n\\n\\n"}', url: 'https://api.openai.com/v1/completions'

优化出错代码

如果api返回的是404/429这些,frontend一直是loading,看不到出错信息。

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.