openai-dotnet
Copilot instructions2.7k starsChanged 10 months agoMITView on GitHub
When making changes to TypeSpec files (.tsp files), you must regenerate the code by running the following script: This ensures that any modifications to the TypeSpec definitions are properly reflected in the generated code. When making Changes to TypeSpec files (.tsp files), Do not use type unions and instead use discriminators to ensure that we don't use binary data types when the generation occurs.
Trending
Quiet since September.about the whole repository
Who's talking about openai/openai-dotnet
- OkGoDoIt/OpenAI-API-dotnet“Big announcement: official support from Microsoft!”GitHub · May 10, 2024 · 5 reactions
- PowerShell/AIShell“Support displaying the Chain-of-Thought tokens for DeepSeek R1”GitHub · Apr 18, 2025 · 4 reactions
- OpenRouterTeam/openrouter-examples“OpenRouter compatible with SemanticKernel”GitHub · Jan 7, 2025 · 4 reactions
- A Hacker News story“OpenAI now has an official .NET library”Hacker News · Jun 7, 2024 · 3 points
- modelcontextprotocol/csharp-sdk“Content types that represent binary data are exposing UTF16 encoded strings”GitHub · Dec 5, 2025 · 2 reactions
The biggest 5 of 19 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 19
Talked about on GitHub and Hacker News (19 times).
On GitHub · 18
- May 10, 2024Big announcement: official support from Microsoft! — OkGoDoIt/OpenAI-API-dotnet5 reactions · 12 comments
- Apr 18, 2025Support displaying the Chain-of-Thought tokens for DeepSeek R1 — PowerShell/AIShell4 reactions
- Jan 7, 2025OpenRouter compatible with SemanticKernel — OpenRouterTeam/openrouter-examples4 reactions · 5 comments
- Dec 5, 2025Content types that represent binary data are exposing UTF16 encoded strings — modelcontextprotocol/csharp-sdk2 reactions · 3 comments
- Sep 25, 2025[BUG] Latest Azure.AI.OpenAI is incompatible with latest OpenAI — Azure/azure-sdk-for-net2 reactions · 6 comments
13 more on GitHub
- Sep 23, 2025[BUG] AzureFileClient.UploadFileAsync: Method not found: 'Void OpenAI.Files.OpenAIFile..ctor — Azure/azure-sdk-for-net2 reactions · 1 comment
- Aug 24, 2025feat: appsettings modeling OpenAI gpt — aliencube/open-chat-playground2 reactions · 8 comments
- Sep 2, 2026[C#] Generated JsonPatch propagation throws for nullable nested dynamic model properties — microsoft/typespec1 reaction
- Sep 2, 2026[http-client-csharp] ApiCompat can add null guards to nullable reference properties — microsoft/typespec1 reaction
- Jun 17, 2026[Responses] Add ResponsesClientOptions in OpenAI.Responses — review-bench/openai_openai-dotnet1 reaction · 1 comment
- Jun 16, 2026[Azure.AI.Projects] Responses input transform strips reasoning item 'id', breaking stateless encrypted-reasoning replay (HTTP 400 invalid_payload) — Azure/azure-sdk-for-net1 reaction · 4 comments
- May 22, 2026.NET: [Feature]: .NET Support for oauth_consent_request via AGUI — microsoft/agent-framework1 reaction · 3 comments
- Dec 23, 2025.NET AI ResponseItem Conversion Repro Example — dotnet/extensions1 reaction · 1 comment
- Nov 7, 2025Add [JsonIgnore] to JsonPatch property to avoid limitation in System.Text.Json — microsoft/typespec1 reaction
- Aug 5, 2025[BUG] 404 when using the latest Azure.OpenAI (2.2.0-beta5) + Latest OpenAI (2.3.0) — Azure/azure-sdk-for-net1 reaction · 2 comments
- May 4, 2025.Net: Bug: OpenAI Assistant throws Invalid URI: The Uri string is too long. — microsoft/semantic-kernel1 reaction · 3 comments
- Oct 29, 2024[Azure.AI.OpenAI] Add net8.0 target / remove RequiredTargetFrameworks workaround — Azure/azure-sdk-for-net1 reaction · 2 comments
- Jun 10, 2024[BUG] OpenAI Legacy Completion endpoint not exposed — Azure/azure-sdk-for-net1 reaction · 6 comments
On Hacker News · 1
- Jun 7, 2024OpenAI now has an official .NET library3 points
In this repository2 other files it gives its agents.
- ingesting-specSkill
- running-testsSkill
The file
We split this copilot-instructions.md into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 5
When making changes to TypeSpec files (.tsp files), you must regenerate the code by running the following script:
- Very specific: line 14
When making Changes to TypeSpec files (.tsp files), Do not use type unions and instead use discriminators to ensure that we don't use …
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Copilot Instructions
TypeSpec Code Generation
When making changes to TypeSpec files (.tsp files), you must regenerate the code by running the following script:
./scripts/Invoke-CodeGen.ps1This ensures that any modifications to the TypeSpec definitions are properly reflected in the generated code.
When making Changes to TypeSpec files (.tsp files), Do not use type unions and instead use discriminators to ensure that we don't use binary data types when the generation occurs.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

