Skip to content

Add Prompts API support to Responses API #3321

@franciscojavierarceo

Description

@franciscojavierarceo

🚀 Describe the new functionality needed

Overall, the expected functionality should look like this:

from openai import OpenAI
client = OpenAI()

response = client.responses.create(
  prompt={
    "id": "pmpt_68b0c29740048196bd3a6e6ac3c4d0e20ed9a13f0d15bf5e",
    "version": "2",
    "variables": {
        "city": "San Francisco",
        "age": 30,
    }
  }
)

Where the prompt_id and variables are generated from the Prompts API.

💡 Why is this needed? What if we don't build it?

Otherwise we are not compatible with Responses API.

Other thoughts

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions