Welcome to Portkey Forum

Updated 3 days ago

Grounding in Gemini

Hey, is Search Grounding on Gemini API supported in Portkey?

I am trying to add this to my config: "tools": {
"google_search_retrieval": {
"dynamic_retrieval_config": {
"mode": "MODE_DYNAMIC",
"dynamic_threshold": 0.5
}
}
},
And I get this: line 35: Property tools is not allowed.

Am I on the wrong track here or is it unsupported? Thanks!
G
A
v
7 comments
hey @Anshul this is not supported yet, we have a pending issue for this
https://github.com/Portkey-AI/gateway/issues/727
thanks for confirming; hope to see it supported soon πŸ˜„
Hi, is there any update on this? @Griphook | Portkey

I noticed there's a PR for the above issue too. I have a fact-checking workflow for my team that could really benefit from this if it could be implemented πŸ˜„
will get the PR merged As soon as possible
cc: @visarg
Hi! This went live yesterday. Please let us know if you face any issues.
Hi, can you please share what is the correct syntax/format to implement this in the Config?

I still get this: Property tools is not allowed.

By adding:

"tools": {
"google_search_retrieval": {
"dynamic_retrieval_config": {
"mode": "MODE_DYNAMIC",
"dynamic_threshold": 0.5
}
}
},
tools is an array

"tools": [
{
"type": "function",
"function": {
"name": "googleSearchRetrieval",
"parameters": {
"dynamicRetrievalConfig": {
"mode": "MODE_DYNAMIC",
"dynamicThreshold": 0.5
}
}
}
}
]
Add a reply
Sign up and join the conversation on Discord