Skip to content

TS SDK Types Reference "ubuntu", but API only accepts "linux" #1462

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

Open
1 task done
alexpareto opened this issue Apr 10, 2025 · 0 comments
Open
1 task done

TS SDK Types Reference "ubuntu", but API only accepts "linux" #1462

alexpareto opened this issue Apr 10, 2025 · 0 comments
Labels
bug Something isn't working openapi

Comments

@alexpareto
Copy link

alexpareto commented Apr 10, 2025

Confirm this is a Node library issue and not an underlying OpenAI API issue

  • This is an issue with the Node library

Describe the bug

Bug is here:

environment: 'mac' | 'windows' | 'ubuntu' | 'browser';

Believe this should be "linux" -> when trying to call the API with "ubuntu" it will throw an error.

To Reproduce

  1. Put ubuntu as the environment with computer-use-preview as the model
  2. Attempt to call the API through the SDK
  3. Observe that the API throws an error that ubuntu is not a supported environment type

Code snippets

{
   type: "computer-preview",
   display_width: width,
   display_height: height,
   // will throw a typescript error, but needed to work in api
   environment: "linux",
}

OS

MacOS

Node version

Node v20

Library version

v4.87

@alexpareto alexpareto added the bug Something isn't working label Apr 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working openapi
Projects
None yet
Development

No branches or pull requests

2 participants