docs(eino): add missing Role field in multimodal example#1496
Merged
meguminnnnnnnnn merged 2 commits intocloudwego:mainfrom Jan 16, 2026
Merged
docs(eino): add missing Role field in multimodal example#1496meguminnnnnnnnn merged 2 commits intocloudwego:mainfrom
meguminnnnnnnnn merged 2 commits intocloudwego:mainfrom
Conversation
Add the missing required parameter Role: schema.User to the example code
✅ Deploy Preview for cloudwego ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
|
Member
|
@ryougi-misaki Please Sign CLA |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add the missing required parameter Role: schema.User to the example code
What type of PR is this?
docs: Documentation only changes
Check the PR title.
(Optional) Translate the PR title into Chinese.
docs(eino): 在多模态示例中补充缺失的 Role 字段
(Optional) More detailed description for this PR(en: English/zh: Chinese).
en:
This PR fixes a critical omission in the multimodal chat example code. The
schema.Messagestruct requires theRolefield (e.g.,schema.User) to be explicitly set, but it was missing in the documentation example. Without it, users would encounter runtime errors when trying to run the sample. This change adds the requiredRole: schema.Userto ensure the example works correctly out of the box.zh(optional):
本 PR 修复了多模态聊天示例代码中的一个关键遗漏。
schema.Message结构体必须显式设置Role字段(例如schema.User),但文档示例中缺失了该字段,导致用户直接运行示例时会报错。本次修改补充了必要的Role: schema.User,确保示例代码开箱即用。(Optional) Which issue(s) this PR fixes:
N/A