Skip to content

Commit

Permalink
Add deepseek
Browse files Browse the repository at this point in the history
  • Loading branch information
utensil committed Dec 5, 2024
1 parent 9bc1724 commit 7a58bee
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .env.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# XAI_API_BASE=
XAI_API_KEY=xai-xxxx
GITHUB_TOKEN=github_pat_xxxx
GITHUB_API_KEY=github_pat_xxxx
Expand All @@ -6,3 +7,8 @@ AUTH=utensil:xxxx
OPENAI_API_KEY=glhf_xxxx
OPENAI_API_BASE=http://0.0.0.0:4000/v1/
HUGGINGFACE_API_KEY=hf_xxxx
ANTHROPIC_API_KEY=sk-ant-api03-xxxx
# OPENAI_API_BASE=http://0.0.0.0:4000/v1/
# https://aider.chat/docs/llms/deepseek.html
# https://platform.deepseek.com/api_keys
DEEPSEEK_API_KEY=sk-xxxx
2 changes: 2 additions & 0 deletions aider
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ export CC=/opt/homebrew/opt/llvm/bin/clang CXX=/opt/homebrew/opt/llvm/bin/clang+

if [[ "$OPENAI_API_BASE" == *"hunyuan"* ]]; then
export MODEL='openai/hunyuan-code'
elif [ -n "$DEEPSEEK_API_KEY" ]: then
export MODEL='deepseek'
elif [ -n "$ANTHROPIC_API_KEY" ]; then
export MODEL=""
elif [[ "$OPENAI_API_BASE" == *"0.0.0.0"* ]]; then
Expand Down

0 comments on commit 7a58bee

Please sign in to comment.