Skip to content

Update openai spec to use access and usage #25856

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

Merged
merged 5 commits into from
Nov 10, 2023
Merged

Conversation

pshao25
Copy link
Member

@pshao25 pshao25 commented Sep 19, 2023

Choose a PR Template

Switch to "Preview" on this description then select one of the choices below.

Click here to open a PR for a Data Plane API.

Click here to open a PR for a Control Plane (ARM) API.

@openapi-pipeline-app
Copy link

openapi-pipeline-app bot commented Sep 19, 2023

Next Steps to Merge

✔️ All automated merging requirements have been met! Refer to step 4 in the PR workflow diagram (even if your PR is for data plane, not ARM).

@openapi-pipeline-app
Copy link

openapi-pipeline-app bot commented Sep 19, 2023

Swagger Validation Report

️️✔️BreakingChange succeeded [Detail] [Expand]
There are no breaking changes.
️️✔️Breaking Change(Cross-Version) succeeded [Detail] [Expand]
There are no breaking changes.
️️✔️CredScan succeeded [Detail] [Expand]
There is no credential detected.
️️✔️LintDiff succeeded [Detail] [Expand]
Validation passes for LintDiff.
️️✔️Avocado succeeded [Detail] [Expand]
Validation passes for Avocado.
️️✔️SwaggerAPIView succeeded [Detail] [Expand]
️️✔️TypeSpecAPIView succeeded [Detail] [Expand]
️️✔️ModelValidation succeeded [Detail] [Expand]
Validation passes for ModelValidation.
️️✔️SemanticValidation succeeded [Detail] [Expand]
Validation passes for SemanticValidation.
️️✔️PoliCheck succeeded [Detail] [Expand]
Validation passed for PoliCheck.
️️✔️PrettierCheck succeeded [Detail] [Expand]
Validation passes for PrettierCheck.
️️✔️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]
Posted by Swagger Pipeline | How to fix these errors?

@openapi-pipeline-app
Copy link

openapi-pipeline-app bot commented Sep 19, 2023

Swagger Generation Artifacts

️️✔️ApiDocPreview succeeded [Detail] [Expand]
️️✔️SDK Breaking Change Tracking succeeded [Detail] [Expand]

Breaking Changes Tracking

️❌ azure-sdk-for-net-track2 failed [Detail]
  • Failed [Logs]Release - Generate from 42e2c0b. SDK Automation 14.0.0
    command	pwsh ./eng/scripts/Automation-Sdk-Init.ps1 ../azure-sdk-for-net_tmp/initInput.json ../azure-sdk-for-net_tmp/initOutput.json
    command	pwsh ./eng/scripts/Invoke-GenerateAndBuildV2.ps1 ../azure-sdk-for-net_tmp/generateInput.json ../azure-sdk-for-net_tmp/generateOutput.json
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1mGeneratePackage: �[0m/mnt/vss/_work/1/s/azure-sdk-for-net/eng/scripts/Invoke-GenerateAndBuildV2.ps1:131
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1mLine |
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m 131 | �[0m               �[36;1mGeneratePackage `�[0m
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m     | �[31;1m               ~~~~~~~~~~~~~~~~~
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1m�[36;1m     | �[31;1mFailed to build sdk. exit code: False
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[0m
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1mGeneratePackage: �[0m/mnt/vss/_work/1/s/azure-sdk-for-net/eng/scripts/Invoke-GenerateAndBuildV2.ps1:131
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1mLine |
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m 131 | �[0m               �[36;1mGeneratePackage `�[0m
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m     | �[31;1m               ~~~~~~~~~~~~~~~~~
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1m�[36;1m     | �[31;1mFailed to packe sdk. exit code: False
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[0m
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1mGet-ChildItem: �[0m/mnt/vss/_work/1/s/azure-sdk-for-net/eng/scripts/automation/GenerateAndBuildLib.ps1:807
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1mLine |
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m 807 | �[0m … rtifacts += �[36;1mGet-ChildItem $artifactsPath -Filter *.nupkg -exclude *.s�[0m …
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m     | �[31;1m               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1m�[36;1m     | �[31;1mCannot find path
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m     | �[31;1m'/mnt/vss/_work/1/s/azure-sdk-for-net/artifacts/packages/Debug/' because
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m     | �[31;1mit does not exist.
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[0m
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1mGeneratePackage: �[0m/mnt/vss/_work/1/s/azure-sdk-for-net/eng/scripts/Invoke-GenerateAndBuildV2.ps1:131
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1mLine |
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m 131 | �[0m               �[36;1mGeneratePackage `�[0m
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m     | �[31;1m               ~~~~~~~~~~~~~~~~~
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1m�[36;1m     | �[31;1mFailed to generate sdk artifact
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[0m
  • Azure.AI.OpenAI [View full logs]  [Release SDK Changes]
    info	[Changelog]
️❌ azure-sdk-for-java failed [Detail]
  • Failed [Logs]Release - Generate from 42e2c0b. SDK Automation 14.0.0
    command	./eng/mgmt/automation/init.sh ../azure-sdk-for-java_tmp/initInput.json ../azure-sdk-for-java_tmp/initOutput.json
    cmderr	[init.sh] [notice] A new release of pip is available: 23.0.1 -> 23.3.1
    cmderr	[init.sh] [notice] To update, run: pip install --upgrade pip
    cmderr	[init.sh] [notice] A new release of pip is available: 23.0.1 -> 23.3.1
    cmderr	[init.sh] [notice] To update, run: pip install --upgrade pip
    command	./eng/mgmt/automation/generate.py ../azure-sdk-for-java_tmp/generateInput.json ../azure-sdk-for-java_tmp/generateOutput.json
    cmderr	[generate.py] WARN EBADENGINE Unsupported engine {
    cmderr	[generate.py] npm WARN EBADENGINE   package: '@typespec/[email protected]',
    cmderr	[generate.py] npm WARN EBADENGINE   required: { node: '>=18.0.0' },
    cmderr	[generate.py] npm WARN EBADENGINE   current: { node: 'v16.20.2', npm: '8.19.4' }
    cmderr	[generate.py] npm WARN EBADENGINE }
    cmderr	[generate.py] npm WARN EBADENGINE Unsupported engine {
    cmderr	[generate.py] npm WARN EBADENGINE   package: '@typespec/[email protected]',
    cmderr	[generate.py] npm WARN EBADENGINE   required: { node: '>=18.0.0' },
    cmderr	[generate.py] npm WARN EBADENGINE   current: { node: 'v16.20.2', npm: '8.19.4' }
    cmderr	[generate.py] npm WARN EBADENGINE }
    cmderr	[generate.py] npm WARN EBADENGINE Unsupported engine {
    cmderr	[generate.py] npm WARN EBADENGINE   package: '@typespec/[email protected]',
    cmderr	[generate.py] npm WARN EBADENGINE   required: { node: '>=18.0.0' },
    cmderr	[generate.py] npm WARN EBADENGINE   current: { node: 'v16.20.2', npm: '8.19.4' }
    cmderr	[generate.py] npm WARN EBADENGINE }
    cmderr	[generate.py] npm WARN EBADENGINE Unsupported engine {
    cmderr	[generate.py] npm WARN EBADENGINE   package: '@typespec/[email protected]',
    cmderr	[generate.py] npm WARN EBADENGINE   required: { node: '>=18.0.0' },
    cmderr	[generate.py] npm WARN EBADENGINE   current: { node: 'v16.20.2', npm: '8.19.4' }
    cmderr	[generate.py] npm WARN EBADENGINE }
    cmderr	[generate.py] npm WARN EBADENGINE Unsupported engine {
    cmderr	[generate.py] npm WARN EBADENGINE   package: '@typespec/[email protected]',
    cmderr	[generate.py] npm WARN EBADENGINE   required: { node: '>=18.0.0' },
    cmderr	[generate.py] npm WARN EBADENGINE   current: { node: 'v16.20.2', npm: '8.19.4' }
    cmderr	[generate.py] npm WARN EBADENGINE }
    cmderr	[generate.py] npm WARN EBADENGINE Unsupported engine {
    cmderr	[generate.py] npm WARN EBADENGINE   package: '@azure-tools/[email protected]',
    cmderr	[generate.py] npm WARN EBADENGINE   required: { node: '>=18.0.0' },
    cmderr	[generate.py] npm WARN EBADENGINE   current: { node: 'v16.20.2', npm: '8.19.4' }
    cmderr	[generate.py] npm WARN EBADENGINE }
    cmderr	[generate.py] npm WARN EBADENGINE Unsupported engine {
    cmderr	[generate.py] npm WARN EBADENGINE   package: '@azure-tools/[email protected]',
    cmderr	[generate.py] npm WARN EBADENGINE   required: { node: '>=18.0.0' },
    cmderr	[generate.py] npm WARN EBADENGINE   current: { node: 'v16.20.2', npm: '8.19.4' }
    cmderr	[generate.py] npm WARN EBADENGINE }
    cmderr	[generate.py] npm notice
    cmderr	[generate.py] npm notice New major version of npm available! 8.19.4 -> 10.2.3
    cmderr	[generate.py] npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.2.3>
    cmderr	[generate.py] npm notice Run `npm install -g [email protected]` to update!
    cmderr	[generate.py] npm notice
  • azure-ai-openai [View full logs]  [Release SDK Changes]
️️✔️ azure-sdk-for-js succeeded [Detail] [Expand]
  • ️✔️Succeeded [Logs]Release - Generate from 42e2c0b. SDK Automation 14.0.0
    command	sh .scripts/automation_init.sh ../azure-sdk-for-js_tmp/initInput.json ../azure-sdk-for-js_tmp/initOutput.json
    warn	File azure-sdk-for-js_tmp/initOutput.json not found to read
    command	sh .scripts/automation_generate.sh ../azure-sdk-for-js_tmp/generateInput.json ../azure-sdk-for-js_tmp/generateOutput.json
  • ️✔️@azure/openai [View full logs]  [Release SDK Changes]
    info	[Changelog]
    error	breakingChangeTracking is enabled, but version or changelogItem is not found in output.
Posted by Swagger Pipeline | How to fix these errors?

@openapi-pipeline-app
Copy link

openapi-pipeline-app bot commented Sep 19, 2023

Generated ApiView

Language Package Name ApiView Link
JavaScript @azure/openai There is no API change compared with the previous version

@weidongxu-microsoft
Copy link
Member

weidongxu-microsoft commented Sep 19, 2023

From typespec-java, we'd like to have this configure for Java (on access=public on models)
Azure/autorest.java#2300 (comment)

PS: when we have the audio.tsp, Java could also have

@@access(Azure.OpenAI.AudioTranscriptionOptions, Access.public, "java");
@@access(Azure.OpenAI.AudioTranslationOptions, Access.public, "java");

I can update Java after Pan's PR.

@jpalvarezl Let me know your opinion.

@jpalvarezl
Copy link
Member

jpalvarezl commented Sep 19, 2023

Thanks for this change! I will bring it up in the meeting tomorrow where we sync across emitted languages. We need to see what the implications for .NET, JavaScript and Go would be, should this change be merged.

Also, for more context, we are approaching a new release of the Azure OpenAI SDKs, so there is a chance this will have to wait until we are done with the release.

@weidongxu-microsoft
Copy link
Member

weidongxu-microsoft commented Oct 11, 2023

@jpalvarezl

Any update?

For Java, I'd really like to make above update to client.tsp: #25856 (comment)

The reason is that start from typespec-java 0.9.0+, it supports access=internal for Operation, which would cause duplicate classes under implementation.models. We'd like to move them to public models to have them synced with current Java SDK.

@@access(Azure.OpenAI.ImageSize, Access.public);

@@access(Azure.OpenAI.AzureCognitiveSearchIndexFieldMappingOptions, Access.public);
@@usage(Azure.OpenAI.AzureCognitiveSearchIndexFieldMappingOptions, Usage.input);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.NET can generate but failed if including
@@usage(Azure.OpenAI.AzureCognitiveSearchIndexFieldMappingOptions, Usage.input);

@joseharriaga

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To clarify, there appears to be two issues in C#:

  1. If I add this line:
    @@usage(Azure.OpenAI.AzureCognitiveSearchChatExtensionConfiguration, Usage.input);
    The code generation fails completely.

  2. If I remove the previous line and add this other line:
    @@usage(Azure.OpenAI.AzureCognitiveSearchIndexFieldMappingOptions, Usage.input);
    The code generation succeeds, but generates a Write serialization method for the AzureCognitiveSearchIndexFieldMappingOptions class. However, this class already has a custom Write method, so the compiler complains about having two different definitions and fails to build.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. This comes from you have customized the properties SearchKey as type property AzureKeyCredential. I'm curious why you want to store credential in a model?
  2. Yeah if they are the same you could remove the one in customization class. That is why I introduce this change - to remove the customization code.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. This model is an input, and the SearchKey property is used to pass the API key that is needed to connect to the target Azure Cognitive Search resource. Since users are already familiar with AzureKeyCredential as way of handling API keys, it made sense to us to make this property be an AzureKeyCredential itself. Let me double check with the .NET architects what they think about this approach.
  2. You're right that since the generated code is identical to the custom code, we can simply remove the custom code and it would work. That being said, would it be more appropriate if the emitter realized that there is already a customization and not emit the generated code unless the customization is removed first? This would prevent the emitter from producing code that the compiler cannot build.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Yeah, that is something could be discussed.
  2. I don't think it would be a good practice. Think about we have an update of the method body someday, then the final composed code would still have the old body in customization, which is not we are expecting.

@mssfang
Copy link
Member

mssfang commented Oct 11, 2023

Go has no changes after applying the changes. @richardpark-msft

@mssfang
Copy link
Member

mssfang commented Oct 12, 2023

Hi, @pshao25 can you rebase the PR to the latest version of spec.
@deyaaeldeen tried to regenerate with these changes in JS but the JS emitter crashed. It is related to "azureCognitiveSearch". Can you have a look at it as well?

Emitter "@azure-tools/typespec-ts" crashed! This is a bug.
Please file an issue at https://github.com/Azure/autorest.typescript/issues

 

Error: Not supported EnumMember
    at emitType (file:///home/codespace/window1/sdk/openai/openai/TempTypeSpecFiles/OpenAI.Inference/node_modules/@azure-tools/typespec-ts/dist/src/modular/buildCodeModel.js:992:19)
    at getType (file:///home/codespace/window1/sdk/openai/openai/TempTypeSpecFiles/OpenAI.Inference/node_modules/@azure-tools/typespec-ts/dist/src/modular/buildCodeModel.js:151:20)
    at emitProperty (file:///home/codespace/window1/sdk/openai/openai/TempTypeSpecFiles/OpenAI.Inference/node_modules/@azure-tools/typespec-ts/dist/src/modular/buildCodeModel.js:563:18)
    at processModelProperties (file:///home/codespace/window1/sdk/openai/openai/TempTypeSpecFiles/OpenAI.Inference/node_modules/@azure-tools/typespec-ts/dist/src/modular/buildCodeModel.js:123:27)
    at getType (file:///home/codespace/window1/sdk/openai/openai/TempTypeSpecFiles/OpenAI.Inference/node_modules/@azure-tools/typespec-ts/dist/src/modular/buildCodeModel.js:167:13)
    at emitCodeModel (file:///home/codespace/window1/sdk/openai/openai/TempTypeSpecFiles/OpenAI.Inference/node_modules/@azure-tools/typespec-ts/dist/src/modular/buildCodeModel.js:1244:9)
    at generateModularSources (file:///home/codespace/window1/sdk/openai/openai/TempTypeSpecFiles/OpenAI.Inference/node_modules/@azure-tools/typespec-ts/dist/src/index.js:97:32)
    at Object.$onEmit [as emitFunction] (file:///home/codespace/window1/sdk/openai/openai/TempTypeSpecFiles/OpenAI.Inference/node_modules/@azure-tools/typespec-ts/dist/src/index.js:39:11)
    at async runEmitter (file:///home/codespace/window1/sdk/openai/openai/TempTypeSpecFiles/OpenAI.Inference/node_modules/@typespec/compiler/dist/src/core/program.js:550:13)
    at async compile (file:///home/codespace/window1/sdk/openai/openai/TempTypeSpecFiles/OpenAI.Inference/node_modules/@typespec/compiler/dist/src/core/program.js:242:9)

@qiaozha
Copy link
Member

qiaozha commented Oct 23, 2023

@deyaaeldeen Does the "enum member not supported" issue still exist with the latest ts emitter ?

@pshao25
Copy link
Member Author

pshao25 commented Oct 24, 2023

@mssfang @joseharriaga Any further comments? After this change, all you need to do in azure-sdk-for-net is Azure/azure-sdk-for-net#39460

@jpalvarezl
Copy link
Member

jpalvarezl commented Oct 25, 2023

Sorry for dropping off like that. I had a couple of weeks re-assigned to a different work stream and then had my support shift.

I would really want this PR merged, but there is one thing I would like us to do before moving forward. Let's only migrate the usages of @@internal and @@include that are part of the main branch

This TSP definition is consumed by different language teams, so changing the visibility of models and operations should be a coordinated effort.

In summary, I am asking that we remove all changes below line 19, please. Then let's merge the PR.

Additional visibility changes should happen in separate PRs appropriately contextualised so we can communicate with all the stakeholders accordingly.

@pshao25 , @weidongxu-microsoft , @mssfang

@pshao25
Copy link
Member Author

pshao25 commented Oct 26, 2023

Sorry for dropping off like that. I had a couple of weeks re-assigned to a different work stream and then had my support shift.

I would really want this PR merged, but there is one thing I would like us to do before moving forward. Let's only migrate the usages of @@internal and @@include that are part of the main branch

This TSP definition is consumed by different language teams, so changing the visibility of models and operations should be a coordinated effort.

In summary, I am asking that we remove all changes below line 19, please. Then let's merge the PR.

Additional visibility changes should happen in separate PRs appropriately contextualised so we can communicate with all the stakeholders accordingly.

@pshao25 , @weidongxu-microsoft , @mssfang

I'm really only migrating the usages of @@internal and @@include, and only the models are touched, no operations.

Not sure why need to remove 19. I'm just changing @@include(Azure.OpenAI.ImageGenerations); in a supported way to @@access(Azure.OpenAI.ImageGenerations, Access.public);.

Or if you are saying 20 which not exists before, that is because ImageSize is used in ImageGenerationOptions and we expect users set and nested models explictly.

@jpalvarezl
Copy link
Member

jpalvarezl commented Oct 26, 2023

@pshao25 , sorry for the misunderstanding. The current state of main only contains the following:

import "@azure-tools/typespec-client-generator-core";
import "./main.tsp";

using Azure.ClientGenerator.Core;

// Azure-specific long-running operations should be treated as implementation details that are wrapped into
// appropriately merged public surface.
@@internal(Azure.OpenAI.beginAzureBatchImageGeneration);
@@internal(Azure.OpenAI.getAzureBatchImageGenerationOperationStatus);

// Azure-specific Chat Completions with extensions should be handled by clients as a conditional selection within the
// shared Chat Completions route, with the selection gated by the presence or non-presence of additional child
// configuration options on the request payload options model.
@@internal(Azure.OpenAI.getChatCompletionsWithAzureExtensions);

// Some models from routes with suppressed visibility are still desired for custom public surface.
@@include(Azure.OpenAI.ImageGenerationOptions);
@@include(Azure.OpenAI.ImageLocation);
@@include(Azure.OpenAI.ImageGenerations);

I am suggesting we only migrate what we have on main. Therefore I would like us to remove from this PR the following lines (from 20 and onwards):

@@access(Azure.OpenAI.ImageSize, Access.public);

@@access(Azure.OpenAI.AzureCognitiveSearchIndexFieldMappingOptions, Access.public);
@@usage(Azure.OpenAI.AzureCognitiveSearchIndexFieldMappingOptions, Usage.input);

@@access(Azure.OpenAI.AzureCognitiveSearchQueryType, Access.public);
@@usage(Azure.OpenAI.AzureCognitiveSearchQueryType, Usage.input);

@@access(Azure.OpenAI.AzureCognitiveSearchChatExtensionConfiguration, Access.public);
@@usage(Azure.OpenAI.AzureCognitiveSearchChatExtensionConfiguration, Usage.input);

So we can address the changes from line 20 and on, in a different PR in the future, where we explain why we need these additions.

@minhanh-phan
Copy link
Member

@qiaozha I can confirm this is still an issue with the TS emitter. The version used is 0.17.1.

@pshao25
Copy link
Member Author

pshao25 commented Oct 27, 2023

@jpalvarezl seems you misunderstand my intension. internal and include is going to be deprecated in a short time. access and usage are the substitutes which have the same functionality. So what I'm doing in the PR is just removing internal and include and adding access and usage with the same semantical meaning. That's it.

Nothing in generated SDK should change after this PR.

@jpalvarezl
Copy link
Member

jpalvarezl commented Oct 30, 2023

@pshao25 , thanks for clarifying! I undertand that you want to replace the old include/internal with access/usage. I am aware of the deprecation and I also want this change merged.

However, I am seeing this PR adding new entries for changing the visibility of:

  • ImageSize
  • AzureCognitiveSearchIndexFieldMappingOptions
  • AzureCognitiveSearchQueryType
  • AzureCognitiveSearchChatExtensionConfiguration

I would like to not add these new entries in the client.tsp in this PR, since like you said, we are only migrating the existing lines.

@jpalvarezl
Copy link
Member

jpalvarezl commented Oct 31, 2023

After our conversation offline, I understand why these new additions are added. Thank you @pshao25 for the clarification.

Edit: I will open up this discussion as well to other people generating from these files to get gauge better how these changes in visibility will impact us.

@qiaozha
Copy link
Member

qiaozha commented Nov 2, 2023

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@pshao25
Copy link
Member Author

pshao25 commented Nov 2, 2023

Synced with all language owners.

.net: will apply Azure/azure-sdk-for-net#39460 to fill the gap.
jave: will have a follow-up PR after this get merged.
python and js: no issues.

Copy link
Member

@qiaozha qiaozha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approve from JS side.

Copy link
Member

@mssfang mssfang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Java will need to have these changes merged and then good to go!

@mssfang
Copy link
Member

mssfang commented Nov 9, 2023

@pshao25 @joseharriaga
.NET also tested out again and on board with Java's changes. So we have JS, Java, .NET, and Go all good with this PR (Just don't forget to merge this change before merging).

@pshao25 Would you mind having another look and merging this PR if no other concerns are left?

@mssfang
Copy link
Member

mssfang commented Nov 9, 2023

Turn out Mike already merged the changes before this PR to adopt access and usage. #26636

We can close this PR if it is fine.

@pshao25
Copy link
Member Author

pshao25 commented Nov 10, 2023

Turn out Mike already merged the changes before this PR to adopt access and usage. #26636

We can close this PR if it is fine.

I don't believe that produces correct SDK. Let's use the change in this PR.

@pshao25 pshao25 merged commit 42e2c0b into main Nov 10, 2023
@pshao25 pshao25 deleted the feature/AccessAndUsage branch November 10, 2023 03:05
Copy link

Swagger pipeline restarted successfully, please wait for status update in this comment.

zman-ms pushed a commit that referenced this pull request Jan 10, 2024
* Update openai spec to use access and usage

* update

* Update specification/cognitiveservices/OpenAI.Inference/client.tsp

Co-authored-by: Shawn Fang <[email protected]>

---------

Co-authored-by: Shawn Fang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TypeSpec Authored with TypeSpec
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants