-
Notifications
You must be signed in to change notification settings - Fork 407
docs: add README guidance for experimental APIs #1123
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -41,6 +41,25 @@ It is generated from our [OpenAPI specification](https://github.com/openai/opena | |||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| To call the OpenAI REST API, you will need an API key. To obtain one, first [create a new OpenAI account](https://platform.openai.com/signup) or [log in](https://platform.openai.com/login). Next, navigate to the [API key page](https://platform.openai.com/account/api-keys) and select "Create new secret key", optionally naming the key. Make sure to save your API key somewhere safe and do not share it with anyone. | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| ### Experimental APIs | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| Some APIs in this library are marked with `[Experimental]` while the corresponding service surface is still evolving. When you use one of these types or members, the compiler emits a warning code so you can opt in deliberately. | ||||||||||||||||||||||||||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
If you'd be so kind, can we revise a bit to something like: What's Experimental used for?
Once a client API reaches a stable state (no longer tagged experimental) then it is covered by a strong backwards compatibility guarantee. We will not make binary breaking changes and will only make disruptive behavioral changes when there is a critical need, such as patching a security vulnerability. What Experimental isn't
Additional context |
||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| | Warning code | Examples of affected API areas | | ||||||||||||||||||||||||||||||
| | --- | --- | | ||||||||||||||||||||||||||||||
| | `OPENAI001` | Assistants, vector stores, batches, evals, realtime client entry points, and other preview client surface area | | ||||||||||||||||||||||||||||||
| | `OPENAI002` | Realtime session types and session options | | ||||||||||||||||||||||||||||||
|
jsquire marked this conversation as resolved.
Comment on lines
+50
to
+51
|
||||||||||||||||||||||||||||||
| | `OPENAI001` | Assistants, vector stores, batches, evals, realtime client entry points, and other preview client surface area | | |
| | `OPENAI002` | Realtime session types and session options | | |
| | `OPENAI001` | Assistants, vector stores, batches, evals, and other preview client surface area | | |
| | `OPENAI002` | Realtime client entry points, realtime session types, and session options | |
Copilot
AI
Apr 25, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This section enumerates experimental warning codes, but the public API also uses other [Experimental] diagnostic IDs like SCME0002 (e.g., settings/DI entry points in src/Custom/*ClientSettings.cs). Either include these in the table or clarify that the table is specifically for OpenAI-defined OPENAI### warnings so users aren’t confused when they encounter SCME0002.
| | Warning code | Examples of affected API areas | | |
| | --- | --- | | |
| | `OPENAI001` | Assistants, vector stores, batches, evals, realtime client entry points, and other preview client surface area | | |
| | `OPENAI002` | Realtime session types and session options | | |
| If your project treats warnings as errors, experimental APIs can fail the build until you suppress the relevant warning in the narrowest possible scope: | |
| The table below lists the OpenAI-defined experimental warning codes (`OPENAI###`) used by this library. Some public APIs may also carry other `[Experimental]` diagnostic IDs from shared infrastructure or supporting packages, such as `SCME0002`. | |
| | Warning code | Examples of affected API areas | | |
| | --- | --- | | |
| | `OPENAI001` | Assistants, vector stores, batches, evals, realtime client entry points, and other preview client surface area | | |
| | `OPENAI002` | Realtime session types and session options | | |
| If your project treats warnings as errors, experimental APIs can fail the build until you suppress the relevant warning code for the API you are using in the narrowest possible scope: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The README Table of Contents includes “Prerequisites” and then “Install the NuGet package”, but this new “Experimental APIs” subsection isn’t listed. Consider adding it under “Getting started” in the TOC so the new guidance is discoverable.