openai/openai-dotnet
Publicmirrored from https://github.com/openai/openai-dotnetAvailable
codegen/emitter/src/emitter.ts
12lines · modecode
| 1 | import { EmitContext } from "@typespec/compiler"; |
| 2 | |
| 3 | import { |
| 4 | $onEmit as $OnMGCEmit, |
| 5 | CSharpEmitterOptions |
| 6 | } from "@typespec/http-client-csharp"; |
| 7 | |
| 8 | export async function $onEmit(context: EmitContext<CSharpEmitterOptions>) { |
| 9 | context.options["generator-name"] = "OpenAILibraryGenerator"; |
| 10 | context.options["emitter-extension-path"] = import.meta.url; |
| 11 | await $OnMGCEmit(context); |
| 12 | } |