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

Java: Align Example59_OpenAIFunctionCalling with .NET #5914

Merged
merged 2 commits into from
Apr 19, 2024

Conversation

dsgrieve
Copy link
Member

Motivation and Context

Make Example59_OpenAIFunctionCalling mirror .NET as much as possible. Want parity with .NET and Python for MSFT Build in May, 2024.

Description

Changed the example code to match .NET.
Fixed some issues in OpenAIChatCompletion to make it work with manual function calling.

Contribution Checklist

@dsgrieve dsgrieve requested a review from a team as a code owner April 17, 2024 19:06
@dsgrieve dsgrieve requested review from milderhc and johnoliver and removed request for a team April 17, 2024 19:06
@markwallace-microsoft markwallace-microsoft added the java Issue or PR regarding Java code label Apr 17, 2024
@johnoliver johnoliver merged commit 6f0561e into microsoft:java-v1 Apr 19, 2024
2 checks passed
johnoliver pushed a commit to johnoliver/semantic-kernel that referenced this pull request Jun 5, 2024
### Motivation and Context
Make Example59_OpenAIFunctionCalling mirror .NET as much as possible.
Want parity with .NET and Python for MSFT Build in May, 2024.
<!-- 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.
-->

### Description
Changed the example code to match .NET. 
Fixed some issues in OpenAIChatCompletion to make it work with manual
function calling.

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

### Contribution Checklist

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

- [ ] The code builds clean without any errors or warnings
- [ ] 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
- [ ] All unit tests pass, and I have added new tests where possible
- [ ] I didn't break anyone 😄
johnoliver pushed a commit to johnoliver/semantic-kernel that referenced this pull request Jun 5, 2024
### Motivation and Context
Make Example59_OpenAIFunctionCalling mirror .NET as much as possible.
Want parity with .NET and Python for MSFT Build in May, 2024.
<!-- 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.
-->

### Description
Changed the example code to match .NET. 
Fixed some issues in OpenAIChatCompletion to make it work with manual
function calling.

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

### Contribution Checklist

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

- [ ] The code builds clean without any errors or warnings
- [ ] 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
- [ ] All unit tests pass, and I have added new tests where possible
- [ ] I didn't break anyone 😄
LudoCorporateShark pushed a commit to LudoCorporateShark/semantic-kernel that referenced this pull request Aug 25, 2024
### Motivation and Context
Make Example59_OpenAIFunctionCalling mirror .NET as much as possible.
Want parity with .NET and Python for MSFT Build in May, 2024.
<!-- 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.
-->

### Description
Changed the example code to match .NET. 
Fixed some issues in OpenAIChatCompletion to make it work with manual
function calling.

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

### Contribution Checklist

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

- [ ] The code builds clean without any errors or warnings
- [ ] 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
- [ ] All unit tests pass, and I have added new tests where possible
- [ ] I didn't break anyone 😄
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
java Issue or PR regarding Java code
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants