Skip to content

Commit

Permalink
CodeGen from PR 24652 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
[OpenAI.Inference] Adding content filter support (Azure#24652)

* first-pass adding annotation

* FilterResult definitions

* move Filter definitions to common

* cleaning up naming and imports

* adding version headers

* added descriptions to objects

* correct self_harm JSON projection

* Correct to "prompt_annotations"

* "prompt_annotations" for chat, too

* Update specification/cognitiveservices/OpenAI.Inference/models/completions.common.tsp

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

* Add per-choice content_filter_results to /completions

* tsp compile after merge

* recompile with 0.46.0 after today's update

---------

Co-authored-by: Travis Wilson <[email protected]>
Co-authored-by: Shawn Fang <[email protected]>
  • Loading branch information
3 people committed Jul 12, 2023
1 parent 5427282 commit dc8d833
Show file tree
Hide file tree
Showing 42 changed files with 1,700 additions and 27 deletions.
84 changes: 72 additions & 12 deletions sdk/openai/Azure.AI.OpenAI/src/Generated/AIOpenAIModelFactory.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 13 additions & 1 deletion sdk/openai/Azure.AI.OpenAI/src/Generated/ChatChoice.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit dc8d833

Please sign in to comment.