Skip to content

shenjy712/ag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ag

Implement the ag command to call the DeepSeek:v3 model in the command line.

The effect is as follows

intro

how to install in your Linux

Prerequisites

  • Python 3.10.12
  • pip 25.0.1

Dependencies to install

  • openai
pip install openai

For domestic installation, you can use mirror installation, the command is as follows:

pip install openai -i https://pypi.tuna.tsinghua.edu.cn/simple
  • load-dotenv
pip install load-dotenv

Clone this repo to local

  • clone repo
git clone https://github.com/shenjy712/ag.git
  • .env file
API_KEY=
API_BASE_URI=https://api.siliconflow.cn
MODEL=deepseek-ai/DeepSeek-V3

The large model API used above is the API of Silicon Flow. You can also use the API of Silicon Flow, Register Silicon Flow

  • generate API KEY 1740459963892

  • After generating the API key, fill in the API key after API_KEY= in the .env file

  • execute following command

# Add executable permissions
chmod +x ag.py

# Copy the command to the /usr/local/bin directory and change the name to ag
mv ag.py /usr/local/bin/ag

# Move the .env file to the same directory
mv .env /usr/local/bin/
  • Now you can use the ag command in the command line to call the DeepSeek:v3 model.

over~

About

Implement the ag command to call the DeepSeek:v3 model in the command line.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages