mirror of
https://gh-proxy.org/https://github.com/klinsmaya/new-api.git
synced 2026-11-09 01:47:07 +08:00
Update moejs to v0.1.0-alpha.5. Engine.CallInto and Engine.CallPathInto decode a hook result straight into a Go value through ToGoInto, which gives the same value and error as encoding the result and decoding it again with the host codec, without that round trip for plain results. A result the codec cannot encode or the target rejects is a ResultError carrying the codec's message, and the runtime stays reusable. The request-building hooks (buildSubmitRequest, buildQueryRequest, buildBatchQueryRequest, buildContentRequest), parseBatchResult and the openai_video renderer use them, replacing decodeRequestDescriptor. parseSubmitResponse and parseTaskResult still read the raw result, because they check exact keys that a case-insensitive struct decode would not.