Skip to content

export runner options type#1968

Open
sarptandoven wants to merge 1 commit into
openai:mainfrom
sarptandoven:fix/export-runner-options
Open

export runner options type#1968
sarptandoven wants to merge 1 commit into
openai:mainfrom
sarptandoven:fix/export-runner-options

Conversation

@sarptandoven

Copy link
Copy Markdown

summary

  • export RunnerOptions from the public package and chat completions resource surfaces
  • expose the type on the OpenAI namespace for parity with other chat completion types
  • add a type regression covering root and resource imports

change

  • openai now supports import type { RunnerOptions } from "openai"
  • openai/resources/chat/completions now supports import type { RunnerOptions } ...
  • OpenAI.RunnerOptions is available in the root namespace

why
runTools already accepts RunnerOptions internally, but users could not name the options type from public exports when configuring maxChatCompletions.

fixes #593

tests

  • pnpm exec tsc --noEmit --pretty false
  • pnpm exec jest tests/runner-options-exports.test.ts --runInBand
  • pnpm lint

@sarptandoven sarptandoven requested a review from a team as a code owner July 6, 2026 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RunnerOptions is not exposed for runTools and runFunctions

1 participant