✨Feat: 完成前端知识卡片

This commit is contained in:
2026-03-27 20:01:56 +08:00
parent afc7fee56b
commit 541ca96fc6
3 changed files with 186 additions and 92 deletions
+2 -2
View File
@@ -7,8 +7,8 @@ import (
"os"
"github.com/tmc/langchaingo/llms"
"github.com/tmc/langchaingo/prompts"
"github.com/tmc/langchaingo/outputparser"
"github.com/tmc/langchaingo/prompts"
)
func Call(llm llms.Model, ctx context.Context) (response string) {
@@ -96,7 +96,7 @@ func CallWithAgentDefined[T any](llm llms.Model, ctx context.Context, topic stri
responseString, err := llms.GenerateFromSinglePrompt(
ctx,
llm,
"用户正在学习Go语言,你是用户的助手。\n"+prompt,
"用户正在学习Go语言和React框架,你是用户的助手。\n"+prompt,
)
if err != nil {
log.Fatal(err)