GithubHelp home page GithubHelp logo

byebyebruce / bailian2openai Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 2.0 6.55 MB

将Aliyun百炼大模型平台的App接口转成OpenAI API接口

Dockerfile 2.29% Makefile 1.05% Go 95.62% Shell 1.04%
ai api bailian openai openai-api proxy tongyiqianwen

bailian2openai's Introduction

BAILIAN2OPENAI

BaiLian API to OpenAI API

目的

本服务可以方便的将Aliyun的百炼大模型平台的App接口转成OpenAI API接口
这样可以方便接入以OpenAI API为标准接口的海量应用和框架(如langchainchatgpt-next-web)

Prepare

Get Access Key、Access Secret Key、Agent Key、AppId from BaiLian

Run

  1. Config cp .env.exmaple .env then edit it.
  2. Run
    • Run api server bailian2openai
    • Run CLI bailian2openai -cli
    • Help bailian2openai --help

Docker

  1. Build
docker build \
   -t image:latest \
   --build-arg VERSION=$(git describe --tags --always) \
   .
  1. Run
docker run -it --rm -p 8080:8080 \
   -e ACCESS_KEY_ID= \
   -e ACCESS_KEY_SECRET= \
   -e AGENT_KEY= \
   -e APP_ID= \
   bailu1901/bailian2openai:latest

Example

Build

make build

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.