-
Notifications
You must be signed in to change notification settings - Fork 527
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
feat: support Cloudflare Workers AI #1068
Conversation
cc @cr7258 |
另外我看响应体没有 token usage 的内容, Cloudflare Workers AI 有办法支持吗?例如: "usage": {
"prompt_tokens": 16,
"completion_tokens": 126,
"total_tokens": 142
} 因为 ai-statistics 插件可以用来统计 token 数,ai-token-ratelimit 插件还可以基于这个进行限流。 |
这个好像不行 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🐉
Hello @imp2002,我是指在这个 repo 也更新一下文档:https://github.com/higress-group/higress-group.github.io |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Co-authored-by: Kent Dong <[email protected]>
Ⅰ. Describe what this PR did
Support Cloudflare Workers AI, API documentation: https://developers.cloudflare.com/workers-ai/configuration/open-ai-compatibility/
Ⅱ. Does this pull request fix one issue?
ref: #962
Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Request
Response
Ⅴ. Special notes for reviews