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

.Net Added support for gemini-vision #4957

Merged

Conversation

Krzysztof318
Copy link
Contributor

@Krzysztof318 Krzysztof318 commented Feb 9, 2024

Description

State of connector progress #4680

This PR introduces limited support for ImageContent. At present, the support extends to only Uri files and is only available in VertexAI. The associated unit tests have been updated to reflect these changes.

@RogerBarreto

Contribution Checklist

The Gemini request creation process has been refactored to include support for ImageContent. At present, the support extends to Uri files and is only available in VertexAI. The associated unit tests have been updated to reflect these changes.
@Krzysztof318 Krzysztof318 requested a review from a team as a code owner February 9, 2024 20:53
@shawncal shawncal added .NET Issue or Pull requests regarding .NET code kernel Issues or pull requests impacting the core kernel labels Feb 9, 2024
@RogerBarreto RogerBarreto merged commit 2cb5ae1 into microsoft:feature-connectors-gemini Feb 12, 2024
13 checks passed
@Krzysztof318 Krzysztof318 deleted the gemini/vision branch February 12, 2024 16:07
Krzysztof318 added a commit to Krzysztof318/semantic-kernel that referenced this pull request Feb 15, 2024
### Description

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

State of connector progress
microsoft#4680

This PR introduces limited support for ImageContent. At present, the
support extends to only Uri files and is only available in VertexAI. The
associated unit tests have been updated to reflect these changes.

@RogerBarreto 

### 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 😄
Krzysztof318 added a commit to Krzysztof318/semantic-kernel that referenced this pull request Feb 20, 2024
### Description

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

State of connector progress
microsoft#4680

This PR introduces limited support for ImageContent. At present, the
support extends to only Uri files and is only available in VertexAI. The
associated unit tests have been updated to reflect these changes.

@RogerBarreto 

### 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 😄
@apipino
Copy link

apipino commented Nov 5, 2024

has no option ImageContent(uri, mimeType) ???

@Krzysztof318
Copy link
Contributor Author

@apipino Mime type is specified only for binary daty passes via base64. I didn't tested gemini models with url images because that wasn't possible when I was creating the connector.

Please create new issue for that and mark me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kernel Issues or pull requests impacting the core kernel .NET Issue or Pull requests regarding .NET code
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants