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

OpenAPI files for AI Models #93

Open
dylan-apex opened this issue Apr 24, 2024 · 4 comments
Open

OpenAPI files for AI Models #93

dylan-apex opened this issue Apr 24, 2024 · 4 comments
Labels
component:examples Issues/PR referencing examples folder status:collecting interest Waiting to see if there is sufficient interest for this request. status:triaged Issue/PR triaged to the corresponding sub-team type:feature request New feature request/enhancement

Comments

@dylan-apex
Copy link

If you want to use a more advanced model with Agent Builder in GCP, then you need to generate an OpenAPI YAML or JSON file and upload it as a tool.

This is definitely something that people can do individually, but it would be beneficial to everyone if there were ready-made files and examples in the cookbook that people could grab quickly. I assume that there are copies of this floating around the Google-universe since I saw it often during Google Next, someone just needs to grab them and make them publicly available.

@singhniraj08 singhniraj08 added type:feature request New feature request/enhancement status:triaged Issue/PR triaged to the corresponding sub-team component:examples Issues/PR referencing examples folder labels Apr 26, 2024
@markmcd
Copy link
Member

markmcd commented Aug 27, 2024

Is this request intended for the Vertex Gemini API? This cookbook covers the regular Gemini API, so I'm not sure that a guide here will help solve your problem but let me know if that's not correct.

@markmcd markmcd added the status:awaiting response Awaiting a response from the author label Aug 27, 2024
@dylan-apex
Copy link
Author

@markmcd
Yeah I wanted to use the regular Gemini API in this case: https://generativelanguage.googleapis.com/v1beta/models/{model}

I think this is the best repo to put the OpenAPI spec in since you already have the curl examples, but long-term it would be nice if it would show up in the docs as reference, but since the file can be dependent on the model it might be difficult to keep all of the different versions up to date on the site.

Copy link

Marking this issue as stale since it has been open for 14 days with no activity. This issue will be closed if no further activity occurs.

@github-actions github-actions bot added the status:stale Issue/PR is marked for closure due to inactivity label Sep 12, 2024
@markmcd
Copy link
Member

markmcd commented Sep 12, 2024

Do you want the complete OpenAPI spec for the whole Gemini API? Or are you looking for more correct, specific specs for models or use-cases?

The API itself has functionality that is restricted to specific models (e.g. candidate_count can only be 1 for the Gemini models, tuning only works on specific models, 1.0 pro doesn't support JSON, sysint, etc), and some endpoints only useful in specific cases (e.g. generateText for PaLM was superseded by generateContent for Gemini, the AQA API only supports the aqa model). This may mean that the full spec behaves poorly, and you'd be better off with hand-edited specs for specific use-cases (like "question answering with AQA" or "multi-modal chat with gemini 1.5").

Either way, I'll leave this open to collect interest. Add a 👍 on the OP if you want this, and describe your case here so we can think about how to support it.

@markmcd markmcd added status:collecting interest Waiting to see if there is sufficient interest for this request. and removed status:awaiting response Awaiting a response from the author status:stale Issue/PR is marked for closure due to inactivity labels Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:examples Issues/PR referencing examples folder status:collecting interest Waiting to see if there is sufficient interest for this request. status:triaged Issue/PR triaged to the corresponding sub-team type:feature request New feature request/enhancement
Projects
None yet
Development

No branches or pull requests

5 participants
@markmcd @singhniraj08 @dylan-apex and others