-
Notifications
You must be signed in to change notification settings - Fork 72
[TCGC] Regression of perf optimization #4040
Copy link
Copy link
Open
Labels
lib:tcgcIssues for @azure-tools/typespec-client-generator-core libraryIssues for @azure-tools/typespec-client-generator-core library
Description
In this PR: TCGC changed the way of finding the orphan model. However, this PR did not change the getGeneratedName logic which also contain the logic of find the orphan model. This cause regressions:
- Report error of
@azure-tools/typespec-client-generator-core/duplicate-client-name Client name: "" is duplicated in language scope
union Verbosity {
"low" | "medium" | "high",
null,
}
union ReasoningEffort {
"none" | "minimal" | "low" | "medium" | "high" | "xhigh",
null,
}
@@usage(ReasoningEffort, Usage.input);
@@usage(Verbosity, Usage.input);
- Naming change from
EouDetectiontoEouDetection1
@service
@versioned(Versions)
namespace VoiceLive;
enum Versions {
v1,
}
@discriminator("model")
@usage(Usage.input)
model EouDetection {
`model`:
| "semantic_detection_v1"
| "semantic_detection_v1_en"
| "semantic_detection_v1_multilingual"
| string;
}
@usage(Usage.input)
model AzureSemanticDetection extends EouDetection {
`model`: "semantic_detection_v1";
@minValue(0)
timeout_ms?: int32;
}
Reactions are currently unavailable
Metadata
Metadata
Labels
lib:tcgcIssues for @azure-tools/typespec-client-generator-core libraryIssues for @azure-tools/typespec-client-generator-core library