An open API service indexing awesome lists of open source software.

https://github.com/nthe/minimal-openai-api-fastapi

Minimal implementation of OpenAI API in FastAPI framework.
https://github.com/nthe/minimal-openai-api-fastapi

Last synced: 11 months ago
JSON representation

Minimal implementation of OpenAI API in FastAPI framework.

Awesome Lists containing this project

README

          

**Minimal OpenAI API in FastAPI**

Endpoints:
- chat completions
- files (in-memory store)
- models

Usage:
```sh
uvicorn src.api.server:app --host {host} --port {port}
```

See `src/api/state.py` for setup of dependencies and global (shared) state.