You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
shentong.martin 57cb494e77 chore: fix lint and formatting
Change-Id: I3b4f908dd24ce6b779fdb8cac3e7519c3295a21b
2 months ago
..
client feat: add eino assistant as example (#3) 1 year ago
README.md feat: add eino assistant as example (#3) 1 year ago
main.go chore: fix lint and formatting 2 months ago

README.md

http_agent

简介

http_agent 是一个基于 eino 的 http 服务构建的一个简单的 llm 应用。

使用

启动 http server

go run main.go -model=ep-xxxx -apikey=xxx

使用 curl 访问 http server

curl 'http://127.0.0.1:8888/chat?id=123&msg=hello'

注意,由于采用了 sse 的格式,结果中会有 data: 前缀

使用 client

client 是一个简单的交互式客户端,可以与 http server 进行交互,并打印结果。

go run client/main.go