Skip to content
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

@visibility decorator to deploymentId #22417

Conversation

jpalvarezl
Copy link
Member

  • Added @visibility("read") decorator to deploymentId key
  • Updated dependencies in the package.json file

@jpalvarezl jpalvarezl requested a review from lmazuel February 1, 2023 20:38
@jpalvarezl jpalvarezl requested a review from yangyuan as a code owner February 1, 2023 20:38
@openapi-workflow-bot
Copy link

Hi, @jpalvarezl Thanks for your PR. I am workflow bot for review process. Here are some small tips.

  • Please ensure to do self-check against checklists in first PR comment.
  • PR assignee is the person auto-assigned and responsible for your current PR reviewing and merging.
  • For specs comparison cross API versions, Use API Specs Comparison Report Generator
  • If there is CI failure(s), to fix CI error(s) is mandatory for PR merging; or you need to provide justification in PR comment for explanation. How to fix?

  • Any feedback about review process or workflow bot, pls contact swagger and tools team. [email protected]

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Feb 1, 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.
    ️️✔️LintDiff succeeded [Detail] [Expand]
    Validation passes for LintDiff.
    ️️✔️Avocado succeeded [Detail] [Expand]
    Validation passes for Avocado.
    ️️✔️ModelValidation succeeded [Detail] [Expand]
    Validation passes for ModelValidation.
    ️️✔️SemanticValidation succeeded [Detail] [Expand]
    Validation passes for SemanticValidation.
    ️️✔️PrettierCheck succeeded [Detail] [Expand]
    Validation passes for PrettierCheck.
    ️❌SpellCheck: 149 Errors, 0 Warnings failed [Detail]

    Only 30 items are listed, please refer to log for more details.

    Rule Message
    HowToFix Unknown word (apiview), please fix the error or add words to ./custom-words.txt
    path: specification/cognitiveservices/OpenAI.Inference/package-lock.json#L10:28
    HowToFix Unknown word (apiview), please fix the error or add words to ./custom-words.txt
    path: specification/cognitiveservices/OpenAI.Inference/package-lock.json#L27:37
    HowToFix Unknown word (globby), please fix the error or add words to ./custom-words.txt
    path: specification/cognitiveservices/OpenAI.Inference/package-lock.json#L138:10
    HowToFix Unknown word (picocolors), please fix the error or add words to ./custom-words.txt
    path: specification/cognitiveservices/OpenAI.Inference/package-lock.json#L144:10
    HowToFix Unknown word (rushstack), please fix the error or add words to ./custom-words.txt
    path: specification/cognitiveservices/OpenAI.Inference/package-lock.json#L164:11
    HowToFix Unknown word (espree), please fix the error or add words to ./custom-words.txt
    path: specification/cognitiveservices/OpenAI.Inference/package-lock.json#L260:10
    HowToFix Unknown word (humanwhocodes), please fix the error or add words to ./custom-words.txt
    path: specification/cognitiveservices/OpenAI.Inference/package-lock.json#L295:20
    HowToFix Unknown word (humanwhocodes), please fix the error or add words to ./custom-words.txt
    path: specification/cognitiveservices/OpenAI.Inference/package-lock.json#L300:11
    HowToFix Unknown word (humanwhocodes), please fix the error or add words to ./custom-words.txt
    path: specification/cognitiveservices/OpenAI.Inference/package-lock.json#L308:20
    HowToFix Unknown word (humanwhocodes), please fix the error or add words to ./custom-words.txt
    path: specification/cognitiveservices/OpenAI.Inference/package-lock.json#L320:20
    HowToFix Unknown word (nodelib), please fix the error or add words to ./custom-words.txt
    path: specification/cognitiveservices/OpenAI.Inference/package-lock.json#L325:20
    HowToFix Unknown word (scandir), please fix the error or add words to ./custom-words.txt
    path: specification/cognitiveservices/OpenAI.Inference/package-lock.json#L325:31
    HowToFix Unknown word (nodelib), please fix the error or add words to ./custom-words.txt
    path: specification/cognitiveservices/OpenAI.Inference/package-lock.json#L330:11
    HowToFix Unknown word (nodelib), please fix the error or add words to ./custom-words.txt
    path: specification/cognitiveservices/OpenAI.Inference/package-lock.json#L337:20
    HowToFix Unknown word (nodelib), please fix the error or add words to ./custom-words.txt
    path: specification/cognitiveservices/OpenAI.Inference/package-lock.json#L345:20
    HowToFix Unknown word (scandir), please fix the error or add words to ./custom-words.txt
    path: specification/cognitiveservices/OpenAI.Inference/package-lock.json#L350:22
    HowToFix Unknown word (fastq), please fix the error or add words to ./custom-words.txt
    path: specification/cognitiveservices/OpenAI.Inference/package-lock.json#L351:10
    HowToFix Unknown word (rushstack), please fix the error or add words to ./custom-words.txt
    path: specification/cognitiveservices/OpenAI.Inference/package-lock.json#L357:20
    HowToFix Unknown word (regexpp), please fix the error or add words to ./custom-words.txt
    path: specification/cognitiveservices/OpenAI.Inference/package-lock.json#L388:10
    HowToFix Unknown word (opencollective), please fix the error or add words to ./custom-words.txt
    path: specification/cognitiveservices/OpenAI.Inference/package-lock.json#L396:18
    HowToFix Unknown word (estree), please fix the error or add words to ./custom-words.txt
    path: specification/cognitiveservices/OpenAI.Inference/package-lock.json#L418:40
    HowToFix Unknown word (opencollective), please fix the error or add words to ./custom-words.txt
    path: specification/cognitiveservices/OpenAI.Inference/package-lock.json#L427:18
    HowToFix Unknown word (estree), please fix the error or add words to ./custom-words.txt
    path: specification/cognitiveservices/OpenAI.Inference/package-lock.json#L441:40
    HowToFix Unknown word (opencollective), please fix the error or add words to ./custom-words.txt
    path: specification/cognitiveservices/OpenAI.Inference/package-lock.json#L448:18
    HowToFix Unknown word (opencollective), please fix the error or add words to ./custom-words.txt
    path: specification/cognitiveservices/OpenAI.Inference/package-lock.json#L472:18
    HowToFix Unknown word (estree), please fix the error or add words to ./custom-words.txt
    path: specification/cognitiveservices/OpenAI.Inference/package-lock.json#L481:40
    HowToFix Unknown word (estree), please fix the error or add words to ./custom-words.txt
    path: specification/cognitiveservices/OpenAI.Inference/package-lock.json#L511:40
    HowToFix Unknown word (globby), please fix the error or add words to ./custom-words.txt
    path: specification/cognitiveservices/OpenAI.Inference/package-lock.json#L547:10
    HowToFix Unknown word (globby), please fix the error or add words to ./custom-words.txt
    path: specification/cognitiveservices/OpenAI.Inference/package-lock.json#L565:69
    HowToFix Unknown word (globby), please fix the error or add words to ./custom-words.txt
    path: specification/cognitiveservices/OpenAI.Inference/package-lock.json#L651:10
    ️❌CadlValidation: 5 Errors, 93 Warnings failed [Detail]

    Only 30 items are listed, please refer to log for more details.

    Rule Message
    MissingExamplesDirectory "details":"The 'examples' directory is missing in the cadl folder specification/cognitiveservices/OpenAI.Authoring,
    please ensure the 'examples' is added in the PR."
    InConsistentSwagger "details":"The generated swagger file 2022-06-01-preview/openapi.json from cadl specification/cognitiveservices/OpenAI.Authoring is not the same as the '/mnt/vss/_work/1/azure-rest-api-specs/specification/cognitiveservices/data-plane/AzureOpenAI/authoring/preview/2022-06-01-preview/azureopenai.json' in PR,
    please make sure the swagger is consistent with the generated swagger. You can find the difference in the pipeline log."
    MissingExamplesDirectory "details":"The 'examples' directory is missing in the cadl folder specification/cognitiveservices/OpenAI.Inference,
    please ensure the 'examples' is added in the PR."
    InConsistentSwagger "details":"The generated swagger file 2022-06-01-preview/openapi.json from cadl specification/cognitiveservices/OpenAI.Inference is not the same as the '/mnt/vss/_work/1/azure-rest-api-specs/specification/cognitiveservices/data-plane/AzureOpenAI/authoring/preview/2022-06-01-preview/azureopenai.json' in PR,
    please make sure the swagger is consistent with the generated swagger. You can find the difference in the pipeline log."
    SwaggerNotExistInPR "details":"The generated swagger file specification/cognitiveservices/OpenAI.Inference/@azure-tools/cadl-autorest/2022-12-01/openapi.json from cadl specification/cognitiveservices/OpenAI.Inference is not in the PR,
    please make sure it presents into the PR."
    ⚠️ @azure-tools/cadl-azure-core/casing-style The names of Property types must use camelCase
    Location: cognitiveservices/OpenAI.Authoring/models/model.models.cadl#L58
    ⚠️ @azure-tools/cadl-azure-core/casing-style The names of Property types must use camelCase
    Location: cognitiveservices/OpenAI.Authoring/models/model.models.cadl#L74
    ⚠️ @azure-tools/cadl-azure-core/casing-style The names of Property types must use camelCase
    Location: cognitiveservices/OpenAI.Authoring/models/model.models.cadl#L88
    ⚠️ @azure-tools/cadl-azure-core/casing-style The names of Property types must use camelCase
    Location: cognitiveservices/OpenAI.Authoring/models/finetune.models.cadl#L21
    ⚠️ @azure-tools/cadl-azure-core/casing-style The names of Property types must use camelCase
    Location: cognitiveservices/OpenAI.Authoring/models/finetune.models.cadl#L25
    ⚠️ @azure-tools/cadl-azure-core/casing-style The names of Property types must use camelCase
    Location: cognitiveservices/OpenAI.Authoring/models/finetune.models.cadl#L37
    ⚠️ @azure-tools/cadl-azure-core/casing-style The names of Property types must use camelCase
    Location: cognitiveservices/OpenAI.Authoring/models/finetune.models.cadl#L46
    ⚠️ @azure-tools/cadl-azure-core/casing-style The names of Property types must use camelCase
    Location: cognitiveservices/OpenAI.Authoring/models/file.models.cadl#L23
    ⚠️ @azure-tools/cadl-azure-core/casing-style The names of Property types must use camelCase
    Location: cognitiveservices/OpenAI.Authoring/models/file.models.cadl#L27
    ⚠️ @azure-tools/cadl-azure-core/casing-style The names of Property types must use camelCase
    Location: cognitiveservices/OpenAI.Authoring/models/finetune.models.cadl#L49
    ⚠️ @azure-tools/cadl-azure-core/casing-style The names of Property types must use camelCase
    Location: cognitiveservices/OpenAI.Authoring/models/finetune.models.cadl#L52
    ⚠️ @azure-tools/cadl-azure-core/casing-style The names of Property types must use camelCase
    Location: cognitiveservices/OpenAI.Authoring/models/finetune.models.cadl#L91
    ⚠️ @azure-tools/cadl-azure-core/casing-style The names of Property types must use camelCase
    Location: cognitiveservices/OpenAI.Authoring/models/finetune.models.cadl#L67
    ⚠️ @azure-tools/cadl-azure-core/casing-style The names of Property types must use camelCase
    Location: cognitiveservices/OpenAI.Authoring/models/finetune.models.cadl#L74
    ⚠️ @azure-tools/cadl-azure-core/casing-style The names of Property types must use camelCase
    Location: cognitiveservices/OpenAI.Authoring/models/finetune.models.cadl#L109
    ⚠️ @azure-tools/cadl-azure-core/casing-style The names of Property types must use camelCase
    Location: cognitiveservices/OpenAI.Authoring/models/finetune.models.cadl#L120
    ⚠️ @azure-tools/cadl-azure-core/casing-style The names of Property types must use camelCase
    Location: cognitiveservices/OpenAI.Authoring/models/finetune.models.cadl#L131
    ⚠️ @azure-tools/cadl-azure-core/casing-style The names of Property types must use camelCase
    Location: cognitiveservices/OpenAI.Authoring/models/finetune.models.cadl#L137
    ⚠️ @azure-tools/cadl-azure-core/casing-style The names of Property types must use camelCase
    Location: cognitiveservices/OpenAI.Authoring/models/finetune.models.cadl#L149
    ⚠️ @azure-tools/cadl-azure-core/casing-style The names of Property types must use camelCase
    Location: cognitiveservices/OpenAI.Authoring/models/finetune.models.cadl#L163
    ⚠️ @azure-tools/cadl-azure-core/casing-style The names of Property types must use camelCase
    Location: cognitiveservices/OpenAI.Authoring/models/finetune.models.cadl#L170
    ⚠️ @azure-tools/cadl-azure-core/casing-style The names of Property types must use camelCase
    Location: cognitiveservices/OpenAI.Authoring/models/finetune.models.cadl#L177
    ⚠️ @azure-tools/cadl-azure-core/casing-style The names of Property types must use camelCase
    Location: cognitiveservices/OpenAI.Authoring/models/model.models.cadl#L21
    ⚠️ @azure-tools/cadl-azure-core/casing-style The names of Property types must use camelCase
    Location: cognitiveservices/OpenAI.Authoring/models/model.models.cadl#L25
    ⚠️ @azure-tools/cadl-azure-core/casing-style The names of Property types must use camelCase
    Location: cognitiveservices/OpenAI.Authoring/models/model.models.cadl#L38
    ️️✔️PR Summary succeeded [Detail] [Expand]
    Validation passes for Summary.
    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Feb 1, 2023

    Swagger Generation Artifacts

    ️❌ApiDocPreview: 1 Errors, 0 Warnings failed [Detail]
    Rule Message
    RestBuild error "logUrl":"https://apidrop.visualstudio.com/Content%20CI/_build/results?buildId=344187&view=logs&j=fd490c07-0b22-5182-fac9-6d67fe1e939b",
    "detail":"Run.ps1 failed with exit code 1 "
    ️️✔️SDK Breaking Change Tracking succeeded [Detail] [Expand]

    Breaking Changes Tracking

    ️❌ azure-sdk-for-net-track2 failed [Detail]
    • Code Generator Failed [Logs] Generate from d0197021da694deaa5f7710e67d7d427b77f1f6c. 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;1mException: �[0m/mnt/vss/_work/1/s/azure-sdk-for-net/eng/scripts/Invoke-GenerateAndBuildV2.ps1:133
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1mLine |
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m 133 | �[0m             �[36;1mthrow "Not provide service name or namespace."�[0m
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m     | �[31;1m             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1m�[36;1m     | �[31;1mNot provide service name or namespace.
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[0m
      error	Script return with result [failed] code [1] signal [null] cwd [azure-sdk-for-net]: pwsh ./eng/scripts/Invoke-GenerateAndBuildV2.ps1
      warn	Skip package processing as generation is failed
    Posted by Swagger Pipeline | How to fix these errors?

    @ghost ghost added the Cognitive Services label Feb 1, 2023
    @openapi-pipeline-app
    Copy link

    Swagger pipeline started successfully. If there is ApiView generated, it will be updated in this comment.

    @jpalvarezl jpalvarezl changed the title updated deps and added visibility decorator to deploymentId @visibility decorator to deploymentId Feb 1, 2023
    @AzureRestAPISpecReview AzureRestAPISpecReview added the Cadl Authored with Cadl label Feb 1, 2023
    @lmazuel lmazuel merged commit 444a1a4 into feature/cognitiveservices/openai-cadl Feb 1, 2023
    @lmazuel lmazuel deleted the feature/cognitiveservices/aoai_inference_deps branch February 1, 2023 21:02
    lmazuel added a commit that referenced this pull request Feb 3, 2023
    * Initial commit.
    
    * Commit OpenAI inference cadl files.
    
    * use non-deprecated service decorator
    
    * Fixes to main
    
    * Reverted changes
    
    * use latest cadl to sync with vs code properly
    
    * cadl compilation works for authoring (but it is correct?)
    
    * Cleaned up routes and model for Inference REST CADL spec
    
    * Added cadl-output to .gitignore file and removed error response
    
    * Implemented polymorphic return for endpoint
    
    * enable Files_Import as non-standard operation, use standard operation names
    
    * Authoring CADL now emits openAPI schema almost identical to current Authoring schema
    
    * Empty model used for polymorphic expectation in embedding endpoint
    
    * Renamed models to match convention
    
    * Renamed completions related models
    
    * Adjusted comment for embeddings body types
    
    * Split up models.cadl into completions and embeddings files
    
    * Renamed models
    
    * Refactored model names
    
    * Removed redundants bits of model names
    
    * added headers
    
    * Added header to correct model
    
    * break up monolithic routes and model cadl files
    
    * add namespace to all models
    
    * Removed gitIgnore file and changed files to not have domain related namespaces
    
    * Finished embeddings endpoint and verified against source json
    
    * Verified round trip for swagger
    
    * Almost done with security types
    
    * Configured correctly OAth2
    
    * Add Auth and OAuth2 to service (thanks Jose!)
    
    * Add auth and OAuth to openapi json
    
    * Review comments
    
    * Review comments
    
    * camel casing
    
    * add versionedDependency
    
    * better versioning
    
    * Added the apiview emitter to OpenAI.Inference endpoints
    
    * PR feedback for Inference endpoints
    
    * Feature/cognitiveservices/openai cadl (#21574)
    
    * Added openai specific list API op template.
    
    * Simplified OAI authoring cadl
    
    * update package versions, correct camelCase warning in common
    
    * remove commented out models, changed AcceptedResponse to CreatedResponse
    
    * Reverted completion to use snake_casing and removed the Response and Request namespaces
    
    * reverted to snake_casing and removed Request namespace for embeddings
    
    * Added missing namespace declaration in embeddings
    
    * Updated dependencies and enabled csharp emitter for Inference
    
    * use string literals for now as enum value types (TypeDiscriminatorKnownValues) not supported in csharp emitter
    
    * Add TODO to TypeDiscriminatorKnownValues def
    
    * More specific route operation names, use snake casing for all model fields
    
    * Added more options to csharp emitter
    
    * Simplify OpenAI inferrence models and use core (#21609)
    
    * Simplify OpenAI inferrence models and use core
    
    * Simplified and corrected Cadl type usage for OpenAI.Inference
    
    * Fix camel case issues.
    
    Co-authored-by: tjprescott <[email protected]>
    
    * Upgrade Cadl file to 0.38 for OpenAI.Authoring service  (#22104)
    
    * Upgrade Cadl file to 0.38
    
    * Upgrade the package.json file and relevant cadl decorator
    
    * Embedding in Azure do not support integer (#22091)
    
    * Fix auth in OpenAI CADL (#22191)
    
    * Change aliases to models, renamed model Embedding to EmbeddingItem to avoid conflicts, and Completion types
    
    * Changed prompt into string[][]
    
    * update package name (#22312)
    
    * Archboard feedback (#22315)
    
    * Archboard feedback
    
    * Disable stream for now
    
    * Rename to options
    
    * Fix operation name (#22319)
    
    * Feature/openai add missing usage (#22337)
    
    * add new API version and usage field on completions and embeddings
    
    * typo
    
    * Added docs for Usage classes in completions and embeddings
    
    * Added versioning mark for new usage model
    
    * Added disambiguation for names and removed unnecessary versioning decorator
    
    * Removed unused version bump
    
    * Removed unused version from enum
    
    * Removed wrong annotation
    
    ---------
    
    Co-authored-by: Jose Alvarez <[email protected]>
    
    * Update main.cadl (#22362)
    
    * Embeddings model and field documentation and fix to models (#22368)
    
    * Moved usage to the response object of embeddings and added some basic documentation to models and fields
    
    * Fixed typo
    
    * Update specification/cognitiveservices/OpenAI.Inference/models/embeddings.create.cadl
    
    ---------
    
    Co-authored-by: Laurent Mazuel <[email protected]>
    
    * Removing Model from model name and removing unnecessary aliases (#22390)
    
    * updated deps and added visibility decorator to deploymentId (#22417)
    
    * Made CompletionsOptions.model optional again
    
    * Removing ...Models namespace in the C# classes (#22449)
    
    * AOAI: fix CompletionsUsage model (#22439)
    
    ---------
    
    Co-authored-by: tjprescott <[email protected]>
    Co-authored-by: Glenn Harper <[email protected]>
    Co-authored-by: Jose Alvarez <[email protected]>
    Co-authored-by: Glenn Harper <[email protected]>
    Co-authored-by: Johan Stenberg (MSFT) <[email protected]>
    Co-authored-by: Mary Gao <[email protected]>
    Co-authored-by: m-nash <[email protected]>
    Co-authored-by: Jose Alvarez <[email protected]>
    Co-authored-by: Travis Wilson <[email protected]>
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    Cadl Authored with Cadl Cognitive Services
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    3 participants