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

feat(gemini): implement Google Gemini connector #3549

Merged
merged 1 commit into from
Dec 5, 2024

Conversation

DenovVasil
Copy link
Contributor

@DenovVasil DenovVasil commented Oct 29, 2024

Description

Implement gemini connector

image

Related issue

closes
#3717

@DenovVasil DenovVasil requested a review from a team as a code owner October 29, 2024 08:14
@DenovVasil DenovVasil marked this pull request as draft October 29, 2024 08:15
@DenovVasil DenovVasil self-assigned this Oct 29, 2024
@DenovVasil DenovVasil force-pushed the 2543-google-gemini-impl-connector branch from 430882f to e88017f Compare October 30, 2024 09:54
@DenovVasil DenovVasil added this to the 8.7.0-alpha2 milestone Oct 30, 2024
@DenovVasil DenovVasil changed the title 2543 google gemini impl connector feat(gemini ): impl connector Oct 30, 2024
@DenovVasil DenovVasil force-pushed the 2543-google-gemini-impl-connector branch 2 times, most recently from 3b4ed0a to 7a9bcff Compare November 13, 2024 23:55
@DenovVasil DenovVasil force-pushed the 2543-google-gemini-impl-connector branch from 7a9bcff to d1f2197 Compare November 18, 2024 08:11
@DenovVasil DenovVasil force-pushed the 2543-google-gemini-impl-connector branch from d1f2197 to f74d3cf Compare November 20, 2024 22:35
@DenovVasil DenovVasil force-pushed the 2543-google-gemini-impl-connector branch from f74d3cf to ac96f8d Compare November 20, 2024 22:51
.toArray();
}

private Object map2MediaOrText(Map<String, String> map) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

by the way, about methods namings : a few links to naming conventions : https://www.oracle.com/java/technologies/javase/codeconventions-namingconventions.html , https://google.github.io/styleguide/javaguide.html#s5-naming , but in this case, up to you and connector teams

This was referenced Nov 26, 2024
@Oleksiivanov Oleksiivanov linked an issue Nov 26, 2024 that may be closed by this pull request
@DenovVasil DenovVasil force-pushed the 2543-google-gemini-impl-connector branch 3 times, most recently from 53beaa4 to 4356f98 Compare November 26, 2024 22:03
@DenovVasil DenovVasil force-pushed the 2543-google-gemini-impl-connector branch from 4356f98 to e4dcc07 Compare November 27, 2024 11:04
Oleksiivanov
Oleksiivanov previously approved these changes Nov 27, 2024
Copy link
Contributor

@Oleksiivanov Oleksiivanov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but don’t merge it until the main reviewers from the connector team approve.

@DenovVasil DenovVasil marked this pull request as ready for review November 27, 2024 11:23
@DenovVasil DenovVasil added the qa:required Will trigger the QA workflow label Nov 28, 2024
@johnBgood
Copy link
Collaborator

johnBgood commented Nov 28, 2024

QA information

Test Environment

  • Environment:
    • SaaS only
    • SM only
    • Both
  • Connectors version: 8.7-alpha2

Test Scope

Please describe the test scope, happy path, edge cases that come to your mind, and whatever you think might relevant to test

Test Data

Please provide the test data, if needed (files, URLs, code snippets, FEEL expressions)

@DenovVasil DenovVasil force-pushed the 2543-google-gemini-impl-connector branch from e4dcc07 to 77bee8a Compare November 28, 2024 16:48
@TemplateProperty.Pattern(
value = "(^(([0-1]\\.[0-9])|([0-2]))$)|(^$)",
message =
"value must be in the range from 0 to 2 in increments of 0.1")))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

value => Value

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uploading image.png…

Copy link
Collaborator

@johnBgood johnBgood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some minor questions, great work :)

description = "Insert prompt.",
feel = Property.FeelMode.required)
@NotNull
List<Object> prompts,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm never comfortable being able to log the prompts. Do we have a decision on that? It affects all the AI connectors

@DenovVasil DenovVasil force-pushed the 2543-google-gemini-impl-connector branch from a2e4742 to beffd9b Compare December 5, 2024 15:02
@sbuettner sbuettner enabled auto-merge December 5, 2024 16:06
@sbuettner sbuettner disabled auto-merge December 5, 2024 16:08
@DenovVasil DenovVasil added this pull request to the merge queue Dec 5, 2024
@DenovVasil DenovVasil removed this pull request from the merge queue due to a manual request Dec 5, 2024
@DenovVasil DenovVasil added this pull request to the merge queue Dec 5, 2024
Merged via the queue into main with commit 9bf179d Dec 5, 2024
12 checks passed
@DenovVasil DenovVasil deleted the 2543-google-gemini-impl-connector branch December 5, 2024 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deploy-preview qa:required Will trigger the QA workflow
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement Google Gemini connector
5 participants