mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-06-23 02:36:49 +08:00
- Added an example plugin `host-model-callback` in Go to summarize host model callbacks. - Implemented `cliproxy_plugin_init`, `cliproxyPluginCall`, and other plugin functions for callback handling. - Introduced API handlers for `ModelExecution` and `ModelExecutionStream` with support for both streaming and non-streaming requests. - Included unit tests (`model_execution_test.go`) to validate execution logic and streaming responses.
8 lines
217 B
Modula-2
8 lines
217 B
Modula-2
module github.com/router-for-me/CLIProxyAPI/v7/examples/plugin/host-model-callback/go
|
|
|
|
go 1.26.0
|
|
|
|
require github.com/router-for-me/CLIProxyAPI/v7 v7.0.0
|
|
|
|
replace github.com/router-for-me/CLIProxyAPI/v7 => ../../../..
|