mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 12:24:59 +00:00
Minor improvements to benchmark/docker.sh
- Remove hardcoded "bash" command and use "$@" which will allow the caller to execute custom commands. If nothing is passed, then docker will fallback to bash anyway. - Forward the `OPENAI_API_BASE` env var.
This commit is contained in:
parent
2c4a126093
commit
cfab33f18d
1 changed files with 2 additions and 1 deletions
|
@ -8,6 +8,7 @@ docker run \
|
|||
-v `pwd`:/aider \
|
||||
-v `pwd`/tmp.benchmarks/.:/benchmarks \
|
||||
-e OPENAI_API_KEY=$OPENAI_API_KEY \
|
||||
-e OPENAI_API_BASE=$OPENAI_API_BASE \
|
||||
-e HISTFILE=/aider/.bash_history \
|
||||
-e PROMPT_COMMAND='history -a' \
|
||||
-e HISTCONTROL=ignoredups \
|
||||
|
@ -16,4 +17,4 @@ docker run \
|
|||
-e AIDER_DOCKER=1 \
|
||||
-e AIDER_BENCHMARK_DIR=/benchmarks \
|
||||
aider-benchmark \
|
||||
bash
|
||||
"$@"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue