Open ulugbekna opened 1 month ago
Yes, we have ideas/plan to add something "open ended" to the response object. Similar to LanguageModelChatRequestOptions#modelOptions
there would be something on LanguageModelChatResponse
but it is not yet clear if that's a promise or a more complex parallel stream that contains content/text and metadata
Testing #213552
OpenAI API allows specifying model options such as logprobs which add metadata to each stream chunk in the response. However,
LanguageModelChatResponse
seems to only allow getting stream of strings.I personally wanted to experiment with logprobs through LM API but couldn't.