Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A wrapper that lets you use the reverse-engineered Python library poe-api library 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!

License

NotificationsYou must be signed in to change notification settings

juzeon/poe-openai-proxy

Repository files navigation

A wrapper that lets you use the reverse-engineered Python librarypoe-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-engineeredpoe.com so you can use Python to callpoe. This project is a wrapper aroundpoe-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.gitcd 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.tomlvim config.toml
  1. Start the Python backend forpoe-api:
python external/api.py# Running on port 5100
  1. Build and start the Go backend:
go buildchmod +x poe-openai-proxy./poe-openai-proxy

Docker support

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

Usage

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

Just replacehttps://api.openai.com in your code withhttp://localhost:3700 and you're good to go.

Supported routes:

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

Supported parameters:

ParameterNote
modelSee[bot] section ofconfig.example.toml. Model names are mapped to bot nicknames.
messagesYou can use this as in the official API, except forname.
streamYou can use this as in the official API.

Other parameters will be ignored.

Credit

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

Powered by DartNode

About

A wrapper that lets you use the reverse-engineered Python library poe-api library 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!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors6


[8]ページ先頭

©2009-2026 Movatter.jp