Skip to content

Commit cf2e157

Browse files
authored
[OpenAI] Fix sub-path export for models (#28035)
### Packages impacted by this PR @azure/openai ### Issues associated with this PR Fixes #28034 ### Describe the problem that is addressed by this PR Sub-path export for models was broken after the changes for the 2023-12-01-preview API. ### What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen? N/A ### Are there test cases added in this PR? _(If not, why?)_ N/A ### Provide a list of related PRs _(if any)_ N/A ### Command used to generate this PR:**_(Applicable only to SDK release request PRs)_ ### Checklists - [x] Added impacted package name to the issue description - [ ] Does this PR needs any fixes in the SDK Generator?** _(If so, create an Issue in the [Autorest/typescript](https://github.com/Azure/autorest.typescript) repository and link it here)_ - [ ] Added a changelog (if necessary)
1 parent 864c425 commit cf2e157

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdk/openai/openai/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
"import": "./dist-esm/src/api/index.js"
2222
},
2323
"./models": {
24-
"types": "./types/src/api/models.d.ts",
25-
"import": "./dist-esm/src/api/models.js"
24+
"types": "./types/src/models/index.d.ts",
25+
"import": "./dist-esm/src/models/index.js"
2626
},
2727
"./rest": {
2828
"types": "./types/src/rest/index.d.ts",

0 commit comments

Comments
 (0)