You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Object literal may only specify known properties, and 'customOption' does not exist in type '{ version?: string | undefined; temperature?: number | undefined; maxOutputTokens?: number | undefined; topK?: number | undefined; topP?: number | undefined; stopSequences?: string[] | undefined; }'.ts(2353)
generate.d.ts(261, 5): The expected type comes from property 'config' which is declared here on type 'PromptGenerateOptions<any>'
Most Vertex AI models have support passing location as a config option.
I looked into this a bit. It's not possible to identify the correct custom options type if we accept string model arguments, so it should be any in that case. But we can make it check the custom options type strictly if a fully qualified model is also passed in to render or generate.
Describe the bug
this code does not compile:
Error:
Most Vertex AI models have support passing
location
as a config option.Known workaround
The text was updated successfully, but these errors were encountered: