Files
cli/dev/website/docs/troubleshooting/support.md

3.1 KiB

parent, excerpt, nav_order
parent excerpt nav_order
Troubleshooting Use "/help <question>" to ask for help about using dev, customizing settings, troubleshooting, using LLMs, etc. 30

Using /help

Type /help <question> and dev will respond with helpful information. You can ask questions about using dev, customizing settings, troubleshooting, using LLMs, etc.

Behind the scenes, dev has indexed all of its documentation. It uses the question to find relevant docs and share them with the LLM to do retrieval augmented generation (RAG) The LLM also has the full context of your ongoing dev chat, so it can help with the exact issue you might be facing.

Dev v0.42.1-dev
Models: claude-3-5-sonnet with diff edit format
Repo-map: using 1024 tokens
Use /help <question> to ask for help, run with --help to see cmd line args

/help is the .env file global or for a git repo?

Based on the provided documentation, here's the answer to your question about the .env file in dev:

The .env file in dev can be both global and specific to a git repository. Dev looks for .env files in multiple locations, with the following priority order:

  1. Your home directory (global)
  2. The root of your git repo (repo-specific)
  3. The current directory
  4. A file specified with the --env-file <filename> parameter

If multiple .env files exist in these locations, they are loaded in the order listed above, with files loaded last taking priority. This means you can have a global .env file in your home directory with general settings, and then override or add to those settings with a repo-specific .env file in your git repository root.

Here are some relevant documentation links that you might find helpful:

The ability to use both global and repo-specific .env files allows for flexible configuration, where you can set default values globally and override them on a per-project basis as needed.

/help can i use local LLMs?

Yes, you can use local LLMs with Dev. Here's a summary of the options:

  1. Ollama: Dev supports using local models through Ollama.

  2. OpenAI-compatible API: Dev can access local models that provide an OpenAI-compatible API.

  3. Other local models: Dev uses the LiteLLM package to connect to various LLM providers, which may include options for running models locally.

However, it's important to note that Dev works best with more capable models. Less capable models may have difficulty properly returning "code edits," which could result in Dev not being able to edit your files and commit changes effectively.

For more detailed information on using local LLMs and connecting to various models, you might want to check out these relevant documentation pages:

Keep in mind that the performance and capabilities of local LLMs may vary depending on the specific model and your hardware resources.

Getting more help

{% include help.md %}