Better modularization of request/response logic #1971
Labels
CodeGen
Issues that relate to code generation
HRLC
in progress
Mgmt
This issue is related to a management-plane library.
p0
priority 0
Milestone
The modular code generator generates the following function to handle processing the response:
autorest.typescript/packages/typespec-test/test/openai_modular/generated/typespec-ts/src/api/operations.ts
Line 53 in b941319
autorest.typescript/packages/typespec-test/test/openai_modular/generated/typespec-ts/src/api/operations.ts
Line 56 in b941319
autorest.typescript/packages/typespec-test/test/openai_modular/generated/typespec-ts/src/api/operations.ts
Line 60 in b941319
The two parts can be refactored into two separate functions. I need the function that just creates the output object to call it to deserialize server-sent events. That will save me from doing it manually, see https://github.com/Azure/azure-sdk-for-js/blob/cbbcc187abee610b7b11c1be7858a3bbee1d6fe2/sdk/openai/openai/src/api/operations.ts#L572 for an example.
The text was updated successfully, but these errors were encountered: