-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: OpenAI Chat Generator - do not create TextContent
if content
is None
; make Anthropic Chat Generator more robust
#129
Conversation
Pull Request Test Coverage Report for Build 11663103763Details
💛 - Coveralls |
@anakin87 reno note so we remember and communicate this decision? |
We don't have Reno in this repository. |
Sorry, too many context switches for me 🤦 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems reasonable, let's see what @shadeMe says
I put this on draft... After more experimentation, I think we should also make Anthropic more robust. UPDATE: done |
TextContent
if content
is None
TextContent
if content
is None
; make Anthropic Chat Generator more robust
Related Issues
While experimenting in an application with several Chat Generators,
I encountered some errors passing
ChatMessages
generated by OpenAI to Anthropic.Our implementation of OpenAI always creates a
TextContent
. Anthropic fails with empty text blocks.I think we should not create a ""
TextContent
ifcontent
isNone
. We should simply avoid creating itProposed Changes:
Do not create
TextContent
ifcontent
isNone
.How did you test it?
CI, enriched existing tests
Checklist
fix:
,feat:
,build:
,chore:
,ci:
,docs:
,style:
,refactor:
,perf:
,test:
.