Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support OpenAI Vector Store with the new Response API #5188

Open
marcolivierbouch opened this issue Mar 13, 2025 · 0 comments
Open

Support OpenAI Vector Store with the new Response API #5188

marcolivierbouch opened this issue Mar 13, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@marcolivierbouch
Copy link

Feature Description

We need a solution to support file search when using the new response api with the AI SDK.

const productDocs = await openai.vectorStores.create({
    name: "Product Documentation",
    file_ids: [file1.id, file2.id, file3.id],
});

const response = await openai.responses.create({
    model: "gpt-4o-mini",
    tools: [{
        type: "file_search",
        vector_store_ids: [productDocs.id],
    }],
    input: "What is deep research by OpenAI?",
});

console.log(response.output_text);

News link: https://openai.com/index/new-tools-for-building-agents/

Use Cases

No response

Additional context

No response

@marcolivierbouch marcolivierbouch added the enhancement New feature or request label Mar 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant