gpt-4o-mini / README.md
Quardo's picture
Updated space.
a3d9c23
|
raw
history blame
1.51 kB
metadata
title: O1-preview
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 O1-preview! 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, GPT-4O, and O1-preview.
  • 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:
    {"tool": "imagine", "isCall": true, "prompt": "A golden retriever on a modern couch"}
    
  • Math Calculation:
    {"tool": "calc", "isCall": true, "prompt": "math.pi * 5"}
    

More Info:

  • API Documentation: here.
  • Latest Update: Added math faketool.

Enjoy exploring O1-preview!