-
Notifications
You must be signed in to change notification settings - Fork 3
Refactored the OpenAI Conversation creator #1176
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
base: testing
Are you sure you want to change the base?
Conversation
|
Rejected. Why (short):
What to do (fix list — do these, then resubmit):
Named elements review:
Resubmit after implementing the above. Don't half-fix types; force a single, predictable content structure. |
|
/windsurf-review |
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.
💡 To request another review, post a new comment with "/windsurf-review".
| }) | ||
| seen_pdf_urls.add(url.get('url')) | ||
| else: | ||
| content = content_text if content_text else " " |
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.
This assignment sets content to a string when it should be a list of objects. This will cause errors when other code tries to access content as a list.
| content = content_text if content_text else " " | |
| content = [{"type": "input_text", "text": content_text if content_text else " "}] |
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.
OpenAI accepts non-empty strings and non-empty arrays both
Refactored the OpenAI Conversation creator