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

support Gemini model #234

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

vandyxiaowei
Copy link
Contributor

No description provided.

@Fanjia-Yan
Copy link
Contributor

Hi vandyxiaowei,

This is Fanjia. I am so glad you make this PR as we had a headache writing the right function calling for Gemini ! I was reproducing with Gemini, I was blocked by the IAM authentication.

HTTP content: {'error': {'code': 403, 'message': "Permission 'aiplatform.endpoints.predict' denied on resource '//aiplatform.googleapis.com/projects/cloud-llm-preview1/locations/us-central1/publishers/google/models/gemini-pro' (or it may not exist).", 'status': 'PERMISSION_DENIED', 'details': [{'@type': 'type.googleapis.com/google.rpc.ErrorInfo', 'reason': 'IAM_PERMISSION_DENIED', 'domain': 'aiplatform.googleapis.com', 'metadata': {'resource': 'projects/cloud-llm-preview1/locations/us-central1/publishers/google/models/gemini-pro', 'permission': 'aiplatform.endpoints.predict'}}]}}

I will keep working on getting the authentication through and merging the PR in. Appreciate any insight.

Thank you so much.

@vandyxiaowei vandyxiaowei marked this pull request as draft March 5, 2024 18:39
@vandyxiaowei
Copy link
Contributor Author

vandyxiaowei commented Mar 5, 2024

Hi, Fanjia.

This PR is for my own testing. You need to use your own GCP project and provide the access token.

Some attributes (e.g., "default", "optional") in OpenAPI schema are not supported in Gemini API today, which will return INVALID_ARGUMENT error that negatively affects the results. I have some code there to filter those out from function declaration.

I also had some questions posted here: #235. Would love to hear your suggestions.

Thanks,
Xiaowei

ShishirPatil pushed a commit that referenced this pull request Mar 5, 2024
… Update REST eval. (#237)

Update leaderboard data and wagon wheel data to reflect new models and
the updated rest API eval result.

Change leaderboard to include `mistral-large-2402`, `gemini-1.0-pro`,
and `gemma-7b`.
Change leaderboard evals to be consistent with #234 new REST eval.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants