Giter VIP home page Giter VIP logo

ckt1031 / one-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from songquanpeng/one-api

29.0 29.0 15.0 18.48 MB

OpenAI 接口管理 & 分发系统,支持多种渠道包括 Azure,可用于二次分发管理 key,仅单可执行文件,已打包好 Docker 镜像,一键部署,开箱即用. OpenAI key management & redistribution system, supports English UI.

Home Page: https://openai.justsong.cn/

License: MIT License

Shell 0.29% JavaScript 35.15% Python 0.69% Go 63.47% CSS 0.14% HTML 0.10% Dockerfile 0.17%

one-api's Introduction

Hey there, I'm ckt1031 😃

I'm a high school student from Hong Kong, with an unbridled passion for programming and a solid fascination in both frontend and backend development.

I absolutely love diving into new technologies, exploring the depths of their capabilities, and finding ingenious solutions to intricate problems.

Why Programming?

“Programming is the new literacy of the digital age, and like every other form of literacy, it empowers those who learn it to change their lives and the world around them.”

I'm enthusiastic about exploring the potential of different programming languages and am driven to create tools that help make our lives better. My excitement extends to the world of AI, especially Generative AI, which holds the key to unlocking unimaginable possibilities in the future!

one-api's People

Contributors

a497625414 avatar anhao avatar baksili avatar c121914yu avatar calcium-ion avatar ccbond avatar ckt1031 avatar dependabot[bot] avatar dirname avatar eltociear avatar glzjin avatar igophper avatar imsingee avatar laisky avatar martialbe avatar michaelyuhe avatar miniers avatar mrhaoji avatar qingfengfenga avatar quzard avatar rockchinq avatar seven-yu avatar shao0222 avatar shinchven avatar songquanpeng avatar techotaku avatar woodchen-ink avatar yangfan-sys avatar yomikio avatar yooyui 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

Watchers

 avatar  avatar

one-api's Issues

Unexpected token and invalid character

Routine Inspection

  • I confirm that there are no similar issues at present.
  • I confirm that I have upgraded to the latest version.
  • I have read the project's README in full, especially the frequently asked questions section.
  • I understand and am willing to follow up on this issue, assist with testing, and provide feedback.
  • I understand and agree to the content above, and understand that the project maintainer's energy is limited; issues that do not follow the rules may be ignored or closed directly.

Problem Description

  1. 服务返回错误,代码:500: {"error":{"message":"invalid character 'd' looking for beginning of value","type":"one_api_error","param":"","code":"unmarshal_response_body_failed"}} This happen on many custom endpoint error returned from Immersive translate
  2. Unexpected token 'd', "data: {"id"... is not valid JSON This happen on many custom endpoint error returned from Immersive translate
  3. Unexpected token 'd', "data: {"ch"... is not valid JSON Immersive translate
  4. Error generating title!
    Unexpected token 'd', "data: {"ch"... is not valid JSON BetterChat
  5. So far, I've found just two projects that return errors.

Reproduction Steps

  1. Start Poe-server
  2. Add to one-api
  3. Input Key and Endpoint to Immersive translate and BetterChat return error 3 and 4

Expected Result

Adding whitelists based on discord community roles

例行检查

  • 我已确认目前没有类似 issue
  • 我已确认我已升级到最新版本
  • 我已完整查看过项目 README,已确定现有版本无法满足需求
  • 我理解并愿意跟进此 issue,协助测试和提供反馈
  • 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭

功能描述

It would be great to add support for whitelisting via discord based on roles in the community.

Such a system is actively used in game servers and works well. In our case, whitelists would allow us to filter out unwanted registrations (multi-accounts) thanks to various discord tools like Doble Counter, and in theory implement synchronization with groups within one-api.

Unfortunately, current oauth2 implementations do not prevent users from creating multi-accounts in any way.

Examples:

https://github.com/FAXES/DiscordWhitelist

https://github.com/Stuyk/altv-discord-auth

应用场景
The introduction of whitelists via Discord will allow for better moderation of registered users.

Stronger protection against abuse of registrations, compared to oauth2.

It will be possible to manage groups through synchronization with Discord community roles

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.