-
Notifications
You must be signed in to change notification settings - Fork 5.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding 'model' property to ChatCompletions. #28554
Adding 'model' property to ChatCompletions. #28554
Conversation
…own docs, in OpenAI docs but is missing from our TSP for some reason.
Next Steps to Merge✅ All automated merging requirements have been met! To get your PR merged, see https://aka.ms/azsdk/specreview/merge. |
Swagger Validation Report
|
Compared specs (v0.10.7) | new version | base version |
---|---|---|
generated.json | 2023-06-01-preview(1236daa) | 2023-06-01-preview(main) |
generated.json | 2023-07-01-preview(1236daa) | 2023-07-01-preview(main) |
generated.json | 2024-02-15-preview(1236daa) | 2024-02-15-preview(main) |
generated.json | 2024-03-01-preview(1236daa) | 2024-03-01-preview(main) |
generated.json | 2023-05-15(1236daa) | 2023-05-15(main) |
️️✔️
Breaking Change(Cross-Version) succeeded [Detail] [Expand]
There are no breaking changes.
️️✔️
CredScan succeeded [Detail] [Expand]
There is no credential detected.
️⚠️
LintDiff: 0 Warnings warning [Detail]
Compared specs (v2.2.0) | new version | base version |
---|---|---|
release_2023_05_15_autogen | release_2023_05_15_autogen(1236daa) | release_2023_05_15_autogen(main) |
release_2023_06_01_preview_autogen | release_2023_06_01_preview_autogen(1236daa) | release_2023_06_01_preview_autogen(main) |
release_2023_07_01_preview_autogen | release_2023_07_01_preview_autogen(1236daa) | release_2023_07_01_preview_autogen(main) |
release_2024_02_15_preview_autogen | release_2024_02_15_preview_autogen(1236daa) | release_2024_02_15_preview_autogen(main) |
The following errors/warnings exist before current PR submission:
Only 30 items are listed, please refer to log for more details.
Rule | Message |
---|---|
IntegerTypeMustHaveFormat |
The integer type does not have a format, please add it. Location: inference/preview/2023-06-01-preview/generated.json#L423 |
IntegerTypeMustHaveFormat |
The integer type does not have a format, please add it. Location: inference/preview/2023-06-01-preview/generated.json#L494 |
IntegerTypeMustHaveFormat |
The integer type does not have a format, please add it. Location: inference/preview/2023-06-01-preview/generated.json#L793 |
DefaultInEnum |
Default value should appear in the enum constraint for a schema Location: inference/preview/2023-06-01-preview/generated.json#L1289 |
IntegerTypeMustHaveFormat |
The integer type does not have a format, please add it. Location: inference/preview/2023-06-01-preview/generated.json#L1353 |
IntegerTypeMustHaveFormat |
The integer type does not have a format, please add it. Location: inference/preview/2023-07-01-preview/generated.json#L423 |
IntegerTypeMustHaveFormat |
The integer type does not have a format, please add it. Location: inference/preview/2023-07-01-preview/generated.json#L494 |
IntegerTypeMustHaveFormat |
The integer type does not have a format, please add it. Location: inference/preview/2023-07-01-preview/generated.json#L846 |
DefaultInEnum |
Default value should appear in the enum constraint for a schema Location: inference/preview/2023-07-01-preview/generated.json#L1386 |
IntegerTypeMustHaveFormat |
The integer type does not have a format, please add it. Location: inference/preview/2023-07-01-preview/generated.json#L1450 |
IntegerTypeMustHaveFormat |
The integer type does not have a format, please add it. Location: inference/preview/2024-02-15-preview/generated.json#L1785 |
IntegerTypeMustHaveFormat |
The integer type does not have a format, please add it. Location: inference/preview/2024-02-15-preview/generated.json#L2428 |
IntegerTypeMustHaveFormat |
The integer type does not have a format, please add it. Location: inference/preview/2024-02-15-preview/generated.json#L3430 |
IntegerTypeMustHaveFormat |
The integer type does not have a format, please add it. Location: inference/stable/2023-05-15/generated.json#L315 |
IntegerTypeMustHaveFormat |
The integer type does not have a format, please add it. Location: inference/stable/2023-05-15/generated.json#L600 |
Security definition should have a description. Location: inference/preview/2023-06-01-preview/generated.json#L46 |
|
Security definition should have a description. Location: inference/preview/2023-06-01-preview/generated.json#L51 |
|
OperationId should be of the form 'Noun_Verb' Location: inference/preview/2023-06-01-preview/generated.json#L64 |
|
Path parameter should specify a maximum length (maxLength) and characters allowed (pattern). Location: inference/preview/2023-06-01-preview/generated.json#L70 |
|
OperationId should be of the form 'Noun_Verb' Location: inference/preview/2023-06-01-preview/generated.json#L115 |
|
Path parameter should specify a maximum length (maxLength) and characters allowed (pattern). Location: inference/preview/2023-06-01-preview/generated.json#L121 |
|
Operation might be pageable. Consider adding the x-ms-pageable extension. Location: inference/preview/2023-06-01-preview/generated.json#L165 |
|
OperationId should be of the form 'Noun_Verb' Location: inference/preview/2023-06-01-preview/generated.json#L166 |
|
Path parameter should specify a maximum length (maxLength) and characters allowed (pattern). Location: inference/preview/2023-06-01-preview/generated.json#L172 |
|
A LRO Post operation with return schema must have 'x-ms-long-running-operation-options' extension enabled. Location: inference/preview/2023-06-01-preview/generated.json#L215 |
|
OperationId should be of the form 'Noun_Verb' Location: inference/preview/2023-06-01-preview/generated.json#L217 |
|
OperationId should be of the form 'Noun_Verb' Location: inference/preview/2023-06-01-preview/generated.json#L269 |
|
Path parameter should specify a maximum length (maxLength) and characters allowed (pattern). Location: inference/preview/2023-06-01-preview/generated.json#L275 |
|
Booleans properties are not descriptive in all cases and can make them to use, evaluate whether is makes sense to keep the property as boolean or turn it into an enum. Location: inference/preview/2023-06-01-preview/generated.json#L598 |
|
Property should have a defined type. Location: inference/preview/2023-06-01-preview/generated.json#L676 |
️️✔️
Avocado succeeded [Detail] [Expand]
Validation passes for Avocado.
️️✔️
SwaggerAPIView succeeded [Detail] [Expand]
️❌
TypeSpecAPIView: 0 Errors, 0 Warnings failed [Detail]
️️✔️
ModelValidation succeeded [Detail] [Expand]
Validation passes for ModelValidation.
️️✔️
SemanticValidation succeeded [Detail] [Expand]
Validation passes for SemanticValidation.
️️✔️
PoliCheck succeeded [Detail] [Expand]
Validation passed for PoliCheck.
️️✔️
SpellCheck succeeded [Detail] [Expand]
Validation passes for SpellCheck.
️️✔️
Lint(RPaaS) succeeded [Detail] [Expand]
Validation passes for Lint(RPaaS).
️️✔️
PR Summary succeeded [Detail] [Expand]
Validation passes for Summary.
️️✔️
Automated merging requirements met succeeded [Detail] [Expand]
Swagger Generation Artifacts
|
Generated ApiView
|
specification/cognitiveservices/OpenAI.Inference/models/completions/chat_completions.tsp
Outdated
Show resolved
Hide resolved
…g spaces that shouldn't be there) - Checking in the generated.json files.
@richardpark-msft is the service team aware of and in agreement with these changes? |
I'd worked with @trrwilson and @johanste on this. Apparently this was an SDK omission and, now that we have a good use case for it, we're just bringing it back. |
* Adding 'model' property. It's present in our example response in our own docs, in OpenAI docs but is missing from our TSP for some reason.
ChatCompletions
(the response from GetChatCompletions) is missing themodel
property that's in OpenAI's docs and in our example output in our docs.This adds it back in, with the C# project to rename it to DeploymentName.