Skip to content

fix(s02): normalize_messages block type error#214

Open
Afeng365 wants to merge 3 commits intoshareAI-lab:mainfrom
Afeng365:afeng
Open

fix(s02): normalize_messages block type error#214
Afeng365 wants to merge 3 commits intoshareAI-lab:mainfrom
Afeng365:afeng

Conversation

@Afeng365
Copy link
Copy Markdown

Problem:
In the normalize_messages method, the code line:
if is instance (block, dict),
block is an object, but here it is judged using a dict

Fix:
When adding content to messages, directly convert the response into a dictionary:
messages.append({"role": "assistant", "content": response.to_dict().get("content")})

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 12, 2026

@Afeng365 is attempting to deploy a commit to the crazyboym's projects Team on Vercel.

A member of the Team first needs to authorize it.

@CrazyBoyM CrazyBoyM force-pushed the main branch 2 times, most recently from 36897b1 to d882d01 Compare April 14, 2026 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants