diff options
| author | sigoden <sigoden@gmail.com> | 2024-04-28 20:37:46 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-28 20:37:46 +0800 |
| commit | b33e2da75efab4246f9f1d74a0be56aba1d8bd07 (patch) | |
| tree | e4e26ae79a7d9e360df5b730f46538bde39700f5 /Argcfile.sh | |
| parent | d9b8eabf23ae96fb395a8059c1e08840609499f4 (diff) | |
| download | aichat-b33e2da75efab4246f9f1d74a0be56aba1d8bd07.tar.gz | |
refactor: improve serve responses (#455)
Diffstat (limited to 'Argcfile.sh')
| -rwxr-xr-x | Argcfile.sh | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/Argcfile.sh b/Argcfile.sh index a438bbb..1e5229a 100755 --- a/Argcfile.sh +++ b/Argcfile.sh @@ -28,18 +28,23 @@ test-without-config() { # @arg clients+[`_choice_client`] test-clients() { for c in "${argc_clients[@]}"; do - echo "### $c streaming" + echo "### $c stream" aichat -m "$c" 1 + 2 = ? - echo "### $c non-streaming" + echo "### $c non-stream" aichat -m "$c" -S 1 + 2 = ? done } # @cmd Test proxy server -# @option --model=default +# @option -m --model=default +# @flag -S --no-stream # @arg text~ test-server() { - argc generic-chat \ + args=() + if [[ -n "$argc_no_stream" ]]; then + args+=("-S") + fi + argc generic-chat "${args[@]}" \ --api-base http://localhost:8000/v1 \ --model $argc_model \ "$@" |
