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

Call Azure OpenAI Studio as model endpoint #2326

Closed
nacharya1 opened this issue Aug 4, 2023 · 0 comments · Fixed by #2498
Closed

Call Azure OpenAI Studio as model endpoint #2326

nacharya1 opened this issue Aug 4, 2023 · 0 comments · Fixed by #2498
Assignees
Labels
sk team issue A tag to denote issues that where created by the Semantic Kernel team (i.e., not the community)
Milestone

Comments

@nacharya1
Copy link
Contributor

Call Azure OpenAI Studio completion endpoint to allow customers to upload docs and talk to them through the chat completition end points of Azure OpenAI Studio.

@shawncal shawncal added the triage label Aug 4, 2023
@nacharya1 nacharya1 added this to the R3 : Cycle 2 milestone Aug 4, 2023
@evchaki evchaki added sk team issue A tag to denote issues that where created by the Semantic Kernel team (i.e., not the community) and removed triage labels Aug 7, 2023
github-merge-queue bot pushed a commit that referenced this issue Aug 22, 2023
### Motivation and Context

<!-- Thank you for your contribution to the semantic-kernel repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
  2. What problem does it solve?
  3. What scenario does it contribute to?
  4. If it fixes an open issue, please link to the issue here.
-->

Resolves #2326

Implementation of Azure OpenAI Chat Completion with data feature:

https://learn.microsoft.com/en-us/azure/ai-services/openai/use-your-data-quickstart

### Description

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->
1. Implemented `AzureChatCompletionWithData` class, that uses
`HttpClient` for API requests.
2. Added necessary internal classes for request/response
serialization/deserialization.
3. Added unit tests.
4. Added usage example.

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [x] The code builds clean without any errors or warnings
- [x] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [x] All unit tests pass, and I have added new tests where possible
- [x] I didn't break anyone 😄

---------

Co-authored-by: Roger Barreto <19890735+RogerBarreto@users.noreply.github.com>
SOE-YoungS pushed a commit to SOE-YoungS/semantic-kernel that referenced this issue Nov 1, 2023
### Motivation and Context

<!-- Thank you for your contribution to the semantic-kernel repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
  2. What problem does it solve?
  3. What scenario does it contribute to?
  4. If it fixes an open issue, please link to the issue here.
-->

Resolves microsoft#2326

Implementation of Azure OpenAI Chat Completion with data feature:

https://learn.microsoft.com/en-us/azure/ai-services/openai/use-your-data-quickstart

### Description

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->
1. Implemented `AzureChatCompletionWithData` class, that uses
`HttpClient` for API requests.
2. Added necessary internal classes for request/response
serialization/deserialization.
3. Added unit tests.
4. Added usage example.

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [x] The code builds clean without any errors or warnings
- [x] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [x] All unit tests pass, and I have added new tests where possible
- [x] I didn't break anyone 😄

---------

Co-authored-by: Roger Barreto <19890735+RogerBarreto@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sk team issue A tag to denote issues that where created by the Semantic Kernel team (i.e., not the community)
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants