3 ms·
Had to move away from Gemini because the SDK just didn't work. Regardless of if I passed a role or not, the function would say something to the effect of "inva
by ctxc 1y ago
Had to move away from Gemini because the SDK just didn't work.
Regardless of if I passed a role or not, the function would say something to the effect of "invalid role, accepted are user and model".
Tried switching to openAI compatible SDK, it threw errors for tool call calls and I just gave up.
Could you confirm if it was a known bug that was fixed?
- ctxc 1y agoThe error fyr https://x.com/dvsj_in/status/1895522286297567369?t=qYLx3kchja_7vFMoJMAbwg&s=19 https://x.com/dvsj_in/status/1895522286297567369?t=qYLx3kchj...
- chrisheecho 1y agoYou don't have to specify role when you call through Python (https://cloud.google.com/vertex-ai/generative-ai/docs/start/quickstarts/quickstart-multimodal#gemini-text-and-image-samples-python_genai_sdk https://cloud.google.com/vertex-ai/generative-ai/docs/start/...) (which I think is what you are using but maybe i'm wrong). Feel free to DM me on @chrischo_pm on X. Stuff that you are describing shouldn't happen