yusufcanb / tlm

Local CLI Copilot, powered by CodeLLaMa. 💻🦙
Apache License 2.0
1.24k stars 40 forks source link

Unable to use suggest command #29

Open Sora233 opened 3 months ago

Sora233 commented 3 months ago

Describe the bug A clear and concise description of what the bug is.

$ tlm s 'list file'
┃ > Thinking... (762.425868ms)
┃ > No command found for given prompt...

It's ok to explain command.

$ tlm e 'ls -lhrt'
The `ls` command with the options `-l`, `-h`, and `-r` is used to list files in a directory, while the option `-t` sorts the output by modification time. The `-l` option displays the file's permissions, owner, group, size, last modified date, and name. The `-h` option formats the file sizes in human-readable format (e.g., 1K, 234M). The `-r` option sorts the output by modification time in reverse order (i.e., most recently modified files are listed first).

Console Output If applicable, add console output.

tlm Version Which tlm version are you running? Type tlm version to get the version

tlm 1.1 () on linux/amd64

Platform Information (please complete the following information): Which operating system are you running on?-

client: wsl2 on windows 11 23H2 ollama server: windows 11 23H2 with ollama 0.3.6

Additional context Add any other context about the problem here.

ollama server log:

[GIN] 2024/08/22 - 11:21:01 | 200 |            0s |  100.109.71.112 | GET      "/api/version"
[GIN] 2024/08/22 - 11:21:01 | 200 |      4.6206ms |  100.109.71.112 | GET      "/api/tags"
time=2024-08-22T11:21:01.712+08:00 level=WARN source=types.go:507 msg="invalid option provided" option=rope_frequency_base
[GIN] 2024/08/22 - 11:21:02 | 200 |    684.3122ms |  100.109.71.112 | POST     "/api/generate"
Sora233 commented 3 months ago

only happened when I did go install github.com/yusufcanb/tlm@latest. It is ok if I download from the github release.

Sora233 commented 3 months ago

I confirmed the response was out of the shell context.

    "model": "tlm:1.1-s",
    "prompt_eval_count": 109,
    "prompt_eval_duration": 34800000,
    "response": "The `ls` command is used to list the files in the current directory. The `-l` option stands for \"long\" format, which provides more detailed information about each file, such as its size, permissions, and last modification time. The `-a` option stands for \"all\", which includes hidden files in the listing.",