agent: |
FcoqnMJpXBi4nEuzRH6xSetup DagKnows CLI
Setup DagKnows CLI
There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.
- 1wFn8xY0B8p04n-sEA7e-Installing DagKnows CLI
1
There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.Install the DagKnows Command Line Interface (CLI). This tool provides wrappers for interacting with DagKnows and managing proxies. The force reinstall option ensures the latest version is installed.
inputsoutputspip install dagknows --force-reinstallcopied1 - 2vWEqpWkJKKh0GiQ8ry8aAdd DK CLI to PATH
2
There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.Add the DK CLI executable to the path environment variable
inputsoutputsexport PATH=$PATH:/home/ubuntu/.local/bincopied2 - 3XzzZK3bTGLKpZqD17tPeCreate a token from DagKnows settings
3
Create a token from DagKnows settings
There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.- Log into your DagKnows account
- Click on "Adjust Settings" in the left navigation bar
- Look for the "Generate Access Token"
- provide a label for the proxy. Like myproxy or dev or prod something. Use only alphanumeric characters.
- Specify the validity period of the token. Like 1 year or something.
- Click Generate
- This creates a row in the token table. Each row has a copy button to copy the token.
- Copy the token and use it in the next step
inputsoutputs3 - 4KWoEKJlZqmSyfdIFnEI0Configure DagKnows CLI
4
There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.The above installation script also installs the dagknows cli. Configure it with the following command:
inputsoutputsdk config init --api-host <DAGKNOWS_SERVER_URL>copied4 - 5NIKY7oLH6mbcioG2kcj3Provide a token
5
There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.Enter an access token: : <paste the token from previous step>
hit enter
That completes your DagKnows CLI config
inputsoutputs5