agent: |
Setup your Environment (dkproxy setup)
- 1bKNkiFnFdtiEIwD4f59jCheckout this dkproxy repo.
1
There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.inputsoutputsgit clone https://github.com/dagknows/dkproxy.gitcopied1 - 2jCIdxsiah5zbsu4G8HiNInstall required packages (dkproxy setup)
2
Install required packages (dkproxy setup)
There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.Run the following installer. It will setup all the dependencies needed to run your proxy.
inputsoutputscd dkproxy && sh install.shcopied2 - 3nIxkAHXfdvJ7Svi9kPEzIf dagknows tool not installed then do a force install and add it to the path
3
If dagknows tool not installed then do a force install and add it to the path
There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.To activate the virtual env dkenv: source ~/dkenv/bin/activate
If dk tool installed in virtual environment dkenv, then we can skip to dk config init directly.
inputsoutputssource ~/dkenv/bin/activatecopied3- 3.1FcoqnMJpXBi4nEuzRH6xSetup DagKnows CLI
3.1
There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.3.1- 3.1.1wFn8xY0B8p04n-sEA7e-Installing DagKnows CLI
3.1.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-reinstallcopied3.1.1 - 3.1.2vWEqpWkJKKh0GiQ8ry8aAdd DK CLI to PATH
3.1.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/bincopied3.1.2 - 3.1.3Jjt3JOHDKuTGxbFbJQiKConfigure DK CLI
3.1.3
There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.Configure the DagKnows CLI by providing an access token. This step involves specifying the host address for the SaaS instance where DagKnows is running (this can vary for onprem or custom installations) and entering the access token obtained from the app's settings page.
inputsoutputsdk config initcopied3.1.3
- 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 initcopied4- 4.1lixiRZr08U3zOPHkWFWSSpecify the DagKnows server
4.1
There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.Provide https://app.dagknows.com as the DagKnows server
Enter the api host to make api calls to:[http://localhost]: https://app.dagknows.com
hit enter
inputsoutputs4.1 - 4.2XzzZK3bTGLKpZqD17tPeCreate a token from DagKnows settings
4.2
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
inputsoutputs4.2 - 4.3NIKY7oLH6mbcioG2kcj3Provide a token
4.3
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
inputsoutputs4.3
- 5bomCaY80Qm0b0NxafbWQInstall your Proxy
5
There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.Now you can install DagKnows proxy. Just pick a proxy name, preferably the same as the label you used for the token and then run the following command. Use only alphanumeric characters.
inputsoutputssh install_proxy.sh {{PROXY_NAME}} eg: sh install_proxy.sh myproxycopied5