Spaces:
Running
Running
File size: 1,508 Bytes
bcfa1bb df28b53 bcfa1bb 9451027 bcfa1bb bed08e5 df28b53 9451027 bcfa1bb 9451027 4d70c71 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
---
title: GPT-4O-mini
emoji: 👁
colorFrom: green
colorTo: purple
sdk: gradio
sdk_version: 4.41.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](/api/v1/docs).
- **Latest Update**: Added math faketool.
Enjoy exploring GPT-4O-mini! |