summaryrefslogtreecommitdiffstats
path: root/Argcfile.sh
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-07-28 13:28:49 +0800
committerGitHub <noreply@github.com>2024-07-28 13:28:49 +0800
commit77df84923482dfcf70b2da1a24355bca9b2a2352 (patch)
treec8d76b6dcd0b6ea596d47a6a309c8f8b2469ed30 /Argcfile.sh
parentc5b2be641acd43375f92fa04fb679911840c1c56 (diff)
downloadaichat-77df84923482dfcf70b2da1a24355bca9b2a2352.tar.gz
refactor: udpate models.yaml and Argcfile.sh (#761)
Diffstat (limited to 'Argcfile.sh')
-rwxr-xr-xArgcfile.sh7
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