gpt-4o-mini / README.md
Quardo's picture
Updated space. #3
a28bf8c
---
title: GPT-4O-mini
emoji: πŸ‘
colorFrom: green
colorTo: purple
sdk: gradio
sdk_version: 4.44.0
app_file: app.py
pinned: false
app_port: 7860
license: wtfpl
short_description: A OpenAI API proxy.
---
# A OpenAI API proxy.
Welcome to GPT-4O-mini! This space acts as a proxy to the OpenAI API, letting you interact with models to generate responses, images, and more. Here's a quick rundown:
### Key Parts:
- **app.py**: Handles API requests and responses.
- **Gradio Interface**: Easy-to-use interface for text and image input.
- **FastAPI**: Fast web framework for building APIs.
### Features:
- **Model Selection**: Pick from GPT-4, GPT-4-turbo, and GPT-4O-mini.
- **Image Generation**: Create images with DALL-E-3.
- **Math Calculations**: Do math with the fakeTool.
- **Moderation**: Automated content checks.
- **User Consent**: Agree to terms before use.
### How to Use:
1. **Select a Model**: Pick a model.
2. **Input Your Message**: Type your prompt.
3. **Generate Responses**: Click submit.
4. **Image Generation**: Use fakeTool with a JSON prompt.
5. **Math Calculations**: Use fakeTool with a JSON prompt.
### Example Prompts:
- **Image Generation**:
```json
{"tool": "imagine", "isCall": true, "prompt": "A golden retriever on a modern couch"}
```
- **Math Calculation**:
```json
{"tool": "calc", "isCall": true, "prompt": "math.pi * 5"}
```
### More Info:
- **API Documentation**: [here](https://chat.cow.rip/api/v1/docs).
- **Latest Update**: Added math faketool.
Enjoy exploring GPT-4O-mini!