/g4f-api

Exporting OpenAI’s API for gpt4free

Primary LanguagePython

G4F-API

Exporting OpenAI’s API for gpt4free

Usage

  • git clone https://github.com/tgscan-dev/g4f-api
  • cd g4f-api
  • poetry install
  • poetry run python3 main.py
  • set openai.api_base to http://localhost:7001 in your code, e.g.:
openai.api_base = "http://localhost:7001"

Contributions

Contributions are welcome!