Skip to content

feat:add llm integration example with ollama to dubbo-go#793

Merged
AlexStocks merged 4 commits intoapache:developfrom
solisamicus:feature/llm
Feb 24, 2025
Merged

feat:add llm integration example with ollama to dubbo-go#793
AlexStocks merged 4 commits intoapache:developfrom
solisamicus:feature/llm

Conversation

@solisamicus
Copy link
Contributor

No description provided.

client.WithClientURL("tri://127.0.0.1:20000"),
)
if err != nil {
panic(err)
Copy link
Contributor

@AlexStocks AlexStocks Feb 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

在 main 主 goroutine 中,不要使用 panic,这不是一个好的 编程习惯。用如下方式:

fmt.Printf()
return


svc, err := greet.NewGreetService(cli)
if err != nil {
panic(err)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

在 main 主 goroutine 中,不要使用 panic,这不是一个好的 编程习惯

Prompt: "Write a simple function to calculate fibonacci sequence in Go",
})
if err != nil {
log.Fatal(err)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里面就没定义 log,改为 fmt.Printf + return 吧

fmt.Print(stream.Msg().Content)
}
if err := stream.Err(); err != nil {
log.Fatal(err)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里面就没定义 log,改为 fmt.Printf + return 吧

@AlexStocks AlexStocks merged commit f90b771 into apache:develop Feb 24, 2025
0 of 2 checks passed
AlexStocks added a commit that referenced this pull request Feb 24, 2025
AlexStocks added a commit that referenced this pull request Feb 24, 2025
* add llm integration example with ollama to dubbo-go (#793)

* add llm integration example and update relevant files

* Refactor import organization, replace panic with fmt.Printf and return in main goroutine, and update log handling

* Update server.go

* Update server.go

---------

Co-authored-by: Xin.Zh <[email protected]>

* Revert "add llm integration example with ollama to dubbo-go (#793)"

This reverts commit f90b771.

---------

Co-authored-by: solisamicus <[email protected]>
@No-SilverBullet No-SilverBullet changed the title add llm integration example with ollama to dubbo-go feat:add llm integration example with ollama to dubbo-go Feb 24, 2025
@solisamicus solisamicus deleted the feature/llm branch February 25, 2025 06:38
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