original model response not available when setting fullResponse
to true in streamText()
.
#215
Labels
enhancement
New feature or request
Hey there. Love the ModelFusion library. Thanks for creating it, Lars!
According to the docs, setting
fullResponse
totrue
in the options forgenerateText(model, messages, options)
is supposed to include the model's original response. In my case, I want to usestreamText()
instead ofgenerateText()
. I see in this example thatstreamText()
also supports thefullResponse
property. When setting that prop totrue
, I do observe an additionalmetadata
object is included, but thatmetadata
object doesn't appear to include the expected original response from the selected model provider (e.g., OpenAI or Mistral).In my case, I'm using Mistral and their docs indicate an expected response looks like this:
When I set
fullResponse
to true, I don't see any of the above expected response properties. Instead, ModelFusion returns a response with ametadata
object that looks like this:This seems like a bug, based on the wording of the docs which suggest one would get the original response (presumably from whichever LLM provider is selected).
Here's the ModelFusion docs I was referencing regarding
fullResponse
:Thanks in advance! I'm hoping we can get the original LLM provider's response.
The text was updated successfully, but these errors were encountered: