Google not supported in the WebSDK?
# support
j
Hey, I've tried to use Gemini direct through Google with the websdk, but getting an error on it. Am I doing something incorrectly? Seems to work fine in the web app. https://cdn.discordapp.com/attachments/1328057832578220042/1328057832796454922/image.png?ex=678551bd&is=6784003d&hm=94845a02cf02ed21c59ea10a4121b52b8126877b40a751b2c934490cf268e51f&
v
@J. Hello! I'm here to help you with your issue. To assist you better, could you please provide me with the specific error message you're receiving when trying to use Gemini direct through Google with the websdk? Additionally, it would be helpful to know if there are any particular steps you're taking that lead up to the error. This information will help me understand the problem and guide you towards a solution.
You can continue this conversation by mentioning me in the message.
j
"Type '"google"' is not assignable to type '"anyscale" | "custom-llm" | "deepinfra" | "openrouter" | "perplexity-ai" | "together-ai"'.ts(2322)"
@Vapi Type '"google"' is not assignable to type '"anyscale" | "custom-llm" | "deepinfra" | "openrouter" | "perplexity-ai" | "together-ai"'.ts(2322)
v
@J. It appears that you're encountering a TypeScript type error. This error suggests that within the context of your code, you're trying to use the value
"google"
where only specific other values are allowed. The allowed values are
"anyscale"
,
"custom-llm"
,
"deepinfra"
,
"openrouter"
,
"perplexity-ai"
, and
"together-ai"
. If you're trying to specify a provider or configuration option in the websdk for Gemini, it seems that
"google"
is not recognized as a valid option within the types defined in your codebase or the SDK's type definitions. To resolve this issue, you should: 1. Check the documentation for the websdk to see if
"google"
is a supported provider or configuration option. 2. If
"google"
is supported, ensure that you have the correct and latest type definitions that include
"google"
as a valid type. 3. If
"google"
is not supported, you will need to use one of the allowed types instead. If you believe
"google"
should be a valid option and it's not recognized, you might need to update the SDK or the type definitions to the latest version where
"google"
is included. If you need further assistance with this, please provide more context or code snippets, and I'll do my best to help you out!
j
Ask for Help button not working, so tagging support team here @User
s
@J. Thank you for letting us know. We will add it. Meanwhile, if possible, you can open a ticket yourself as well if your require it quickly.
j
How do I create a ticket? Send an email to the support email?
s
No I have created ticket for you, you don't need to. I will let you know once it's pushed to PROD.