How do I set the OpenAI endpoint?

You can use either the classic OpenAI Chat Completions or Responses endpoints.

To select your preferred endpoint when creating the provider, follow these steps:

  1. Go to the Settings section.
  2. Click on Providers.
  3. Select OpenAI from the list of providers.
  4. Choose the endpoint you want to use.

Once you select an endpoint, all prompts using this provider will use that same endpoint.

When using Responses, you can access OpenAI’s built-in tools such as web search.

---
provider: my-openai-provider
model: gpt-4.1
temperature: 0.1
tools:
  - openai:
      - type: web_search_preview
        search_context_size: low
---