-
Notifications
You must be signed in to change notification settings - Fork 454
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: Add an AI-Proxy Wasm plugin #921
Conversation
0d0913c
to
f42951d
Compare
6ee8647
to
1a7ee3a
Compare
return types.ActionContinue | ||
} | ||
|
||
func getApiName(path string) provider.ApiName { |
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.
这个是不是应该放到provider实现中,如果provider是openai,应该要支持所有API,例如embedding等。
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.
OK
a74a030
to
8c37308
Compare
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.
Great Work!
Ⅰ. Describe what this PR did
Add an AI-Proxy Wasm plugin.
Support following AI service providers:
Qwen streaming test with NextChat:
![1](https://private-user-images.githubusercontent.com/2909796/329847834-3280426f-40fb-4bd0-aa88-69d5ececc1b6.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ1Nzg0MzQsIm5iZiI6MTcyNDU3ODEzNCwicGF0aCI6Ii8yOTA5Nzk2LzMyOTg0NzgzNC0zMjgwNDI2Zi00MGZiLTRiZDAtYWE4OC02OWQ1ZWNlY2MxYjYuZ2lmP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgyNSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MjVUMDkyODU0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZTBmZTIwY2M0NTllYjdmM2EyOWM2ZjA5MmJjYTU1NWQ1MDk2YjIxNmNkZDUxZWI0OTRmMTJlYjVkNWMyNTRiNiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.TVcMQNV3-cZRTWojtaZvdhuHDrRoQ0n83kQ3Ak_wgnE)
Ⅱ. Does this pull request fix one issue?
Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews