Adding model tools call #730
kuan87654
started this conversation in
1. Feature requests
Replies: 1 comment
-
That looks pretty cool to me! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Taking gemini as an example, add googleSearch and urlContext to body['tools']

This enables web search functionality and URL parsing, rather than using the built-in cumbersome browser
https://ai.google.dev/api/caching#Tool
application/json' -d '{
"contents": [
{
"parts": [
{"text": "give me today news"}
]
}
],
"tools": [
{
"google_search": {}
}
]
}'
Beta Was this translation helpful? Give feedback.
All reactions