Skip to content

Commit

Permalink
[OpenAI] Fix sub-path export for models (Azure#28035)
Browse files Browse the repository at this point in the history
### Packages impacted by this PR
@azure/openai

### Issues associated with this PR
Fixes Azure#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)
  • Loading branch information
deyaaeldeen authored Dec 11, 2023
1 parent 864c425 commit cf2e157
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdk/openai/openai/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
"import": "./dist-esm/src/api/index.js"
},
"./models": {
"types": "./types/src/api/models.d.ts",
"import": "./dist-esm/src/api/models.js"
"types": "./types/src/models/index.d.ts",
"import": "./dist-esm/src/models/index.js"
},
"./rest": {
"types": "./types/src/rest/index.d.ts",
Expand Down

0 comments on commit cf2e157

Please sign in to comment.