Skip to content
프로젝트

소개

역공학으로 분석한 Python 라이브러리 poe-api를 ChatGPT의 OpenAI API처럼 사용할 수 있게 해 주는 래퍼입니다. 자주 사용하는 OpenAI API 기반 앱을 이 프록시에 연결해 ChatGPT API를 무료로 이용할 수 있습니다!

시스템 및 인프라

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
-1
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

poe-openai-proxy

A wrapper that lets you use the reverse-engineered Python library poe-api as if it was the OpenAI API for ChatGPT. You can connect your favorite OpenAI API based apps to this proxy and enjoy the ChatGPT API for free!

Poe.com from Quora is a free web app that lets you chat with GPT models. poe-api is a Python library that reverse-engineered poe.com so you can use Python to call poe. This project is a wrapper around poe-api that makes it accessible through an HTTP API, which mimics the official OpenAI API for ChatGPT so it can work with other programs that use OpenAI API for their features.

简体中文

Installation

  1. Clone this repository to your local machine:
git clone https://github.com/juzeon/poe-openai-proxy.git
cd poe-openai-proxy/
  1. Install dependencies from requirements.txt:
pip install -r external/requirements.txt
  1. Create the configuration file in the root folder of the project. Instructions are written in the comments:
cp config.example.toml config.toml
vim config.toml
  1. Start the Python backend for poe-api:
python external/api.py # Running on port 5100
  1. Build and start the Go backend:
go build
chmod +x poe-openai-proxy
./poe-openai-proxy

Docker support

If you would like to use docker, just run docker-compose up -d after creating config.toml according to the instructions above.

Usage

See OpenAI Document for more details on how to use the ChatGPT API.

Just replace https://api.openai.com in your code with http://localhost:3700 and you're good to go.

Supported routes:

  • /models
  • /chat/completions
  • /v1/models
  • /v1/chat/completions

Supported parameters:

Parameter Note
model See [bot] section of config.example.toml. Model names are mapped to bot nicknames.
messages You can use this as in the official API, except for name.
stream You can use this as in the official API.

Other parameters will be ignored.

Credit

https://github.com/ading2210/poe-api

Powered by DartNode

관련 프로젝트 살펴보기

불러오는 중…