-
Notifications
You must be signed in to change notification settings - Fork 61
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
Undesirable API inconsistencies Google AI vs. Vertex AI #50
Comments
It seems like these come from the underlying RPC/GAPIC surfaces and we copy them with protoveneer. |
Thanks for identifying these. I'll look at this tomorrow and see what I can
do.
…On Wed, Feb 21, 2024 at 3:56 PM Eli Bendersky ***@***.***> wrote:
It seems like these come from the underlying RPC/GAPIC surfaces and we
copy them with protoveneer.
@jba <https://github.com/jba> we could configure protoveneer to modify
the output to have consistency, since the underlying protos are unlikely to
change at this point. We're still in version 0.x and these are all
relatively minor, so we could just change them, perhaps also keeping an
alias around for a release or two in deprecated mode. WDYT?
—
Reply to this email directly, view it on GitHub
<#50 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AENAOZNXLC65S53YED5SQU3YUZNOZAVCNFSM6AAAAABDTWB3KCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJXHEYDENRXGQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
1. Fixed by #53
2. Underlying inconsistency. Although logically this is an int, I'm
hesitant to change the cloud client to use an int because I don't know if
they interpret fractional values in some way. I asked for more details.
3. Underlying inconsistency. We could use the same name, but which one? And
I'm not sure whether int or *int makes more sense for those fields.
…On Wed, Feb 21, 2024 at 4:52 PM Jonathan Amsterdam ***@***.***> wrote:
Thanks for identifying these. I'll look at this tomorrow and see what I
can do.
On Wed, Feb 21, 2024 at 3:56 PM Eli Bendersky ***@***.***>
wrote:
> It seems like these come from the underlying RPC/GAPIC surfaces and we
> copy them with protoveneer.
> @jba <https://github.com/jba> we could configure protoveneer to modify
> the output to have consistency, since the underlying protos are unlikely to
> change at this point. We're still in version 0.x and these are all
> relatively minor, so we could just change them, perhaps also keeping an
> alias around for a release or two in deprecated mode. WDYT?
>
> —
> Reply to this email directly, view it on GitHub
> <#50 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AENAOZNXLC65S53YED5SQU3YUZNOZAVCNFSM6AAAAABDTWB3KCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJXHEYDENRXGQ>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
|
Sorry for piggybacking on this thread. I was wondering what the difference is between generative-ai-go and vertexai. Are there any guidelines for when to use each one? |
Human authored Google AI and Vertex AI packages should use identical APIs for the same functionality.
Where the two APIs currently different, we should:
long-term, to the benefit of all future developers that be exposed to both
Context
Compare these two human-authored packages:
EXEPCTED
generativelanguage.googleapis.com
) and "Vertex AI API" (aiplatform.googleapis.com
) implementations should not result unnecessary differences in the human-authored packages.ACTUAL
Two package are different:
BlockReason
vs.BlockedReason
https://pkg.go.dev/github.com/google/generative-ai-go/genai
https://pkg.go.dev/cloud.google.com/go/vertexai/genai
SetTopK
inconsistent type:int32
vs.float32
https://pkg.go.dev/github.com/google/generative-ai-go/genai
https://pkg.go.dev/cloud.google.com/go/vertexai/genai
CitationSource
vs.Citation
, with field and field type differences…
The text was updated successfully, but these errors were encountered: