Skip to content
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

在Eino文档里多加一点提示 #1238

Open
Linde7777 opened this issue Feb 11, 2025 · 1 comment
Open

在Eino文档里多加一点提示 #1238

Linde7777 opened this issue Feb 11, 2025 · 1 comment
Assignees
Labels

Comments

@Linde7777
Copy link

这个项目和其他的不太一样,examples是作为单独的一个项目,不在Eino内部。

第一眼看到quick-walkthrough的代码没有import xxx有点不太习惯,在这里提示用户,完整的代码示例在examples仓库也许会更好一点?

比如这样:

A quick walkthrough

Use a component directly(for full example, see: https://github.com/cloudwego/eino-examples):

model, _ := openai.NewChatModel(ctx, config) // create an invokable LLM instance
message, _ := model.Generate(ctx, []*Message{
    SystemMessage("you are a helpful assistant."),
    UserMessage("what does the future AI App look like?")})
@BytePender
Copy link

感谢反馈哈~。我们文档的撰写原则大致是这样的,要在文档中包含原始的代码示例的链接。 这个地方忽略了,我们改一下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants