mirror of
https://github.com/alibaba/higress.git
synced 2026-06-26 02:35:02 +08:00
feat(ai-context-limit): add context window limit wasm plugin (#4000)
Signed-off-by: Cai Rui <cairui@U-7VTK6WQN-2207.local>
This commit is contained in:
13
plugins/wasm-go/extensions/ai-context-limit/Makefile
Normal file
13
plugins/wasm-go/extensions/ai-context-limit/Makefile
Normal file
@@ -0,0 +1,13 @@
|
||||
.PHONY: prepare build build-go clean
|
||||
|
||||
prepare:
|
||||
@sh ./prepare.sh
|
||||
|
||||
build: build-go
|
||||
|
||||
build-go: prepare
|
||||
GOOS=wasip1 GOARCH=wasm go build -buildmode=c-shared -o main.wasm .
|
||||
|
||||
clean:
|
||||
rm -f main.wasm
|
||||
rm -f bpe/o200k_base.tiktoken
|
||||
Reference in New Issue
Block a user