openai/openai-dotnet
Publicmirrored from https://github.com/openai/openai-dotnetAvailable
.github/copilot-instructions.md
14lines · modecode
| 1 | # Copilot Instructions |
| 2 | |
| 3 | ## TypeSpec Code Generation |
| 4 | |
| 5 | When making changes to TypeSpec files (`.tsp` files), you must regenerate the code by running the following script: |
| 6 | |
| 7 | ```powershell |
| 8 | ./scripts/Invoke-CodeGen.ps1 |
| 9 | ``` |
| 10 | |
| 11 | This ensures that any modifications to the TypeSpec definitions are properly reflected in the generated code. |
| 12 | |
| 13 | |
| 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 binary data types when the generation occurs. |
| 15 | |