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.
- Host: GitHub
- URL: https://github.com/nthe/minimal-openai-api-fastapi
- Owner: nthe
- Created: 2024-08-02T15:15:26.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-04T20:58:24.000Z (almost 2 years ago)
- Last Synced: 2025-02-22T11:35:56.974Z (over 1 year ago)
- Language: Python
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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.