Commit 270d3cd
OpenAI Preview (#22364)
* 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 <trpresco@microsoft.com>
* 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 <josealvar@microsoft.com>
* 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 <laurent.mazuel@gmail.com>
* 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 <trpresco@microsoft.com>
Co-authored-by: Glenn Harper <glharper@microsoft.com>
Co-authored-by: Jose Alvarez <josealvar@microsoft.com>
Co-authored-by: Glenn Harper <64209257+glharper@users.noreply.github.com>
Co-authored-by: Johan Stenberg (MSFT) <johan.stenberg@microsoft.com>
Co-authored-by: Mary Gao <yanmeigao1210@gmail.com>
Co-authored-by: m-nash <64171366+m-nash@users.noreply.github.com>
Co-authored-by: Jose Alvarez <jpalvarezl@users.noreply.github.com>
Co-authored-by: Travis Wilson <35748617+trrwilson@users.noreply.github.com>1 parent 8c9a6bd commit 270d3cd
File tree
26 files changed
+12370
-0
lines changed- specification/cognitiveservices
- OpenAI.Authoring
- cadl-output
- 2022-06-01-preview
- models
- OpenAI.Inference
- models
26 files changed
+12370
-0
lines changedLines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
0 commit comments