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
Fix: Add instance check before casting ChatGeneration object (#1607)
My case
- When receiving responses from headline and summary extractors, etc.,
they are delivered as a Generation object, not ChatGeneration.
```
{
"generations": [
[
{
"text": "{\"text\": \"ABCD\"}",
"generation_info": null,
"type": "Generation"
}
]
],
"llm_output": null,
"run": null,
"type": "LLMResult"
}
```
Occurrence message
- unable to apply transformation: 'Generation' object has no attribute
'message'
How to fix
- Add code to first check if it is an instance of that object before
casting to a ChatGeneration object.
0 commit comments