diff options
| author | sigoden <sigoden@gmail.com> | 2024-07-28 13:28:49 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-28 13:28:49 +0800 |
| commit | 77df84923482dfcf70b2da1a24355bca9b2a2352 (patch) | |
| tree | c8d76b6dcd0b6ea596d47a6a309c8f8b2469ed30 /Argcfile.sh | |
| parent | c5b2be641acd43375f92fa04fb679911840c1c56 (diff) | |
| download | aichat-77df84923482dfcf70b2da1a24355bca9b2a2352.tar.gz | |
refactor: udpate models.yaml and Argcfile.sh (#761)
Diffstat (limited to 'Argcfile.sh')
| -rwxr-xr-x | Argcfile.sh | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Argcfile.sh b/Argcfile.sh index 315a26c..6cadc29 100755 --- a/Argcfile.sh +++ b/Argcfile.sh @@ -452,10 +452,9 @@ _build_body() { file="${BODY_FILE:-"tmp/body/$1.json"}" if [[ -f "$file" ]]; then cat "$file" | \ - sed \ - -e 's/"model": ".*"/"model": "'"$argc_model"'"/' \ - -e 's/"stream": \(true\|false\)/"stream": '$stream'/' \ - + sed -E \ + -e 's%"model": ".*"%"model": "'"$argc_model"'"%' \ + -e 's%"stream": (true|false)%"stream": '$stream'%' \ fi else |
