WasmEdge / WasmEdge

WasmEdge is a lightweight, high-performance, and extensible WebAssembly runtime for cloud native, edge, and decentralized applications. It powers serverless apps, embedded functions, microservices, smart contracts, and IoT devices.

Home Page:https://WasmEdge.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

feat: WASI-NN GGML backend handled prompt too long at set_input

dm4 opened this issue · comments

commented

Summary

When calling set_input() with long prompt text, it will throw ErrNo::InvalidArgument. We need to avoid it.

Details

Move the prompt length check to compute() and add ErrNo::PromptTooLong.

Appendix

No response