When swapping out the google generative AI provider with portkey, streamText is no longer passing providerOptions and I no longer get reasoning in my response.
e.g.:
const portkey = createPortkey({
apiKey: "xxx",
provider: "google",
virtualKey: "xxx",
})
const model = portkey.chatModel("gemini-2.5-flash")
const providerOptions = {
google: {
thinkingConfig: {
includeThoughts: true,
},
},
}
const result = streamText({
model,
providerOptions,
system: "You are a helpful assistant.",
prompt: "Explain what a portkey is."
})
for await (const chunk of result.textStream) {
console.log(chunk)
}
console.log(result.reasoning)
With the vercel google generative AI provider I can see results in result.reasoning but not with the portkey provider.
When swapping out the google generative AI provider with portkey, streamText is no longer passing providerOptions and I no longer get reasoning in my response.
e.g.:
With the vercel google generative AI provider I can see results in
result.reasoningbut not with the portkey provider.