PROMPT CANVAS CANVAS
# Role & Context
You are a Senior Audio AI Engineer and OpenAI API Expert. Your task is to refactor a legacy audio transcription pipeline that currently uses OpenAI's Whisper model, upgrading it to the new `gpt-transcribe` (for batch) or `gpt-live-transcribe` (for real-time streaming) endpoints.

# Input Data
- Target Model: {{target_model}}
- Current Implementation: {{current_implementation}}

## Step-by-Step Instructions
1. Analyze the `current_implementation` provided in Input Data to understand the existing audio format, chunking logic, and error handling.
2. Determine if the user's `target_model` is for batch processing (`gpt-transcribe`) or real-time streaming (`gpt-live-transcribe`).
3. Write a step-by-step migration plan, addressing API endpoint changes, parameter mapping (e.g., temperature, language), and SDK updates.
4. Provide the fully refactored, production-ready Python or Node.js code.

## Constraints
- Ensure the new code properly handles asynchronous streaming if the live model is selected.
- Include robust error handling for API rate limits and network timeouts.
- Explain any deprecated parameters that are no longer supported in the new models.

Role & Context

You are a Senior Audio AI Engineer and OpenAI API Expert. Your task is to refactor a legacy audio transcription pipeline that currently uses OpenAI's Whisper model, upgrading it to the new gpt-transcribe (for batch) or gpt-live-transcribe (for real-time streaming) endpoints.

Input Data

  • Target Model: {{target_model}}
  • Current Implementation: {{current_implementation}}

Step-by-Step Instructions

  1. Analyze the current_implementation provided in Input Data to understand the existing audio format, chunking logic, and error handling.
  2. Determine if the user's target_model is for batch processing (gpt-transcribe) or real-time streaming (gpt-live-transcribe).
  3. Write a step-by-step migration plan, addressing API endpoint changes, parameter mapping (e.g., temperature, language), and SDK updates.
  4. Provide the fully refactored, production-ready Python or Node.js code.

Constraints

  • Ensure the new code properly handles asynchronous streaming if the live model is selected.
  • Include robust error handling for API rate limits and network timeouts.
  • Explain any deprecated parameters that are no longer supported in the new models.

Migrating from Whisper to GPT-Transcribe

Coding 2026-08-08T00:00:00Z
đŸ‘ī¸ 0

Key Capabilities

  • Seamless Migration Architecture: Instantly generate code refactoring patterns to switch from legacy Whisper to the new GPT-Transcribe endpoints without service interruption.
  • Real-time Streaming Setup: Step-by-step guidance on implementing GPT-Live-Transcribe for low-latency, WebSocket-based live audio transcription.
  • Error Handling & Best Practices: Built-in edge case management and fallback mechanisms designed specifically for the new transcription models.

Underlying Mechanism

This prompt acts as a specialized AI engineer, utilizing a Markdown-structured Chain of Thought (CoT) to guide the LLM. By injecting context about your current Whisper implementation, it constraints the output to strictly follow OpenAI's updated API schemas and asynchronous streaming patterns, preventing hallucinations associated with older SDK versions.

Ideal Use Cases

  • Refactoring existing audio-to-text applications to reduce latency.
  • Building real-time meeting transcription tools or voice-bots.
  • Modernizing backend pipelines handling batch audio processing.

When NOT to Use (Anti-Patterns)

  • If you are building simple text-to-text applications where audio APIs are irrelevant.
  • When utilizing non-OpenAI transcription services (e.g., Google Speech-to-Text).

Pro Tip

Provide snippets of your current Whisper API calls in the {{current_implementation}} variable. This allows the AI to provide exact line-by-line diffs rather than generic boilerplate code.

Source Reference: Migrate from Whisper to GPT-Transcribe and GPT-Live-Transcribe

📋 How to Use This Prompt

1

Copy or Save to Vault

Click Copy Prompt for quick access, or hit the ⭐ star button to save to your Vault to edit templates, customize values, and auto-fill variables.

2

Fill in Variables

Replace double-bracket placeholders {{variable}} with your own values, context, or specific inputs.

3

Run in AI Model

Paste directly into ChatGPT, Claude, DeepSeek, or Gemini for structured, high-accuracy outputs.