|
|
yusufcanb / tlm Goto Github PK
View Code? Open in Web Editor NEWLocal CLI Copilot, powered by CodeLLaMa. ๐ป๐ฆ
License: Apache License 2.0
Local CLI Copilot, powered by CodeLLaMa. ๐ป๐ฆ
License: Apache License 2.0
The readme boasts, "Automatic shell detection," but doesn't say which shells it supports.
E.g. I can be pretty confident that it supports Bash and Powershell, but what about POSIX sh? zsh? fish? ksh? csh?
Please add this information to the readme.
Right now, tlm uses suggest:7b
and explain:7b
as their modelfile names. It should be something more convenient.
Suggestions;
tlm-[USAGE]:[VERSION]
> $ tlm explain "date +%s"
The `date` command is used to display the current date and time in seconds since the Epoch (January 1, 1970, 00:00:00 UTC). The `%s` format specifier is used to print the number of seconds since the Epoch.
So, when you run `date +%s`, it will display the current date and time in seconds since the Epoch.> $
Setup is "bash" even when on mac, because I use bash and not zsh. Could it have to do with that?
Is there a convenient option to read the bash history and provide a solution for any problem i might run into?
e.g. i execute
poetry install
Installing dependencies from lock file
Package operations: 66 installs, 0 updates, 0 removals
- Installing pycddlib (2.1.7): Failed
ChefBuildError
Backend subprocess exited when trying to invoke build_wheel
running bdist_wheel
running build
running build_ext
Compiling cdd.pyx because it changed.
[1/1] Cythonizing cdd.pyx
building 'cdd' extension
creating build
creating build/temp.macosx-14.0-arm64-cpython-312
creating build/temp.macosx-14.0-arm64-cpython-312/cddlib
creating build/temp.macosx-14.0-arm64-cpython-312/cddlib/lib-src
clang -fno-strict-overflow -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -O3 -Wall -DGMPRATIONAL -Icddlib/lib-src -I/private/var/folders/db/8bjxm83551s6k9y4081jd5sh0000gn/T/tmp56717o84/.venv/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.12/include/python3.12 -c cdd.c -o build/temp.macosx-14.0-arm64-cpython-312/cdd.o
In file included from cdd.c:1244:
In file included from cddlib/lib-src/cdd.h:17:
cddlib/lib-src/cddmp.h:30:11: fatal error: 'gmp.h' file not found
#include "gmp.h"
^~~~~~~
1 error generated.
error: command '/usr/bin/clang' failed with exit code 1
at /opt/homebrew/Cellar/poetry/1.8.2/libexec/lib/python3.12/site-packages/poetry/installation/chef.py:164 in _prepare
160โ
161โ error = ChefBuildError("\n\n".join(message_parts))
162โ
163โ if error is not None:
โ 164โ raise error from None
165โ
166โ return path
167โ
168โ def _prepare_sdist(self, archive: Path, destination: Path | None = None) -> Path:
Note: This error originates from the build backend, and is likely not a problem with poetry but with pycddlib (2.1.7) not supporting PEP 517 builds. You can verify this by running 'pip wheel --no-cache-dir --use-pep517 "pycddlib (==2.1.7)"'.
I now would love to do something like tlm fix to prompt the llm to help me to fix my problem and suggest a command to run next.
Is there something like this already? Any ideas on how to implement this?
Love the project ๐
Describe the bug
I'm not able to execute any command in Windows terminal PowerShell 7
Get-ExecutionPolicy
Unrestricted
๓ฐ ~
๓ฐฒ โฏ tlm s 'list files in this directory'
โ > Thinking... (3.9161497s)
โ > dir
โ > Executing...
. : File C:\Users\AliReza\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 cannot be loaded because
running scripts is disabled on this system. For more information, see about_Execution_Policies at
https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:3
+ . 'C:\Users\AliReza\Documents\WindowsPowerShell\Microsoft.PowerShell_ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
tlm Version
Which tlm version are you running? Type tlm version
to get the version
tlm 1.1 (a0ca50d) on windows/amd64
Platform Information (please complete the following information):
Which operating system are you running on?-
Windows 11
Additional context
I think tlm doesn't work on PowerShell 7 which is the latest version of Powershell.
>$ tlm suggest "showing the current time as unix time"
โ > Thinking... (1.343003842s)
โ > date +%s
โ > Explaining...
Error during generation: model 'tlm:-e' not found, try pulling it first
Setup is "bash" even when on mac, because I use bash and not zsh. Could it have to do with that?
Not all computers can run codellama. Being able to select another model would be quite cool for those.
tlm should be distributed using;
Id like to change it to dolphincoder because its newer
GoReleaser should be integrated into project and build scripts should be deprecated.
$ ollama list
NAME ID SIZE MODIFIED
codellama:7b 8fdf8f752f6e 3.8 GB About a minute ago
wizard-vicuna-uncensored:13b 6887722b6618 7.4 GB 2 weeks ago
$ tlm suggest 'echo hello'
[err] error getting suggestion: model 'suggest:7b' not found, try pulling it first
โ > Thinking... (1.000666ms)
panic: runtime error: index out of range [0] with length 0
goroutine 1 [running]:
github.com/yusufcanb/tlm/suggest.(*Suggest).action(0x140001a85a0, 0x140001e1640)
/Users/chenggeng/go/pkg/mod/github.com/yusufcanb/[email protected]/suggest/cli.go:51 +0xa78
github.com/urfave/cli/v2.(*Command).Run(0x140001f0580, 0x140001e1640, {0x140001d7a00, 0x2, 0x2})
/Users/chenggeng/go/pkg/mod/github.com/urfave/cli/[email protected]/command.go:279 +0x7b0
github.com/urfave/cli/v2.(*Command).Run(0x140001f0f20, 0x140001e1500, {0x1400019e180, 0x3, 0x3})
/Users/chenggeng/go/pkg/mod/github.com/urfave/cli/[email protected]/command.go:272 +0x9d0
github.com/urfave/cli/v2.(*App).RunContext(0x1400029a000, {0x100d72550?, 0x140001ae008}, {0x1400019e180, 0x3, 0x3})
/Users/chenggeng/go/pkg/mod/github.com/urfave/cli/[email protected]/app.go:337 +0x61c
github.com/urfave/cli/v2.(*App).Run(...)
/Users/chenggeng/go/pkg/mod/github.com/urfave/cli/[email protected]/app.go:311
main.main()
/Users/chenggeng/go/pkg/mod/github.com/yusufcanb/[email protected]/main.go:16 +0x5c
For Ollama installation instructions on the README
curl -fsSL https://ollama.com/install.sh | sh
Gives this error:
ERROR This script is intended to run on Linux only.
For the installation script for tlm:
curl -fsSL https://raw.githubusercontent.com/yusufcanb/tlm/main/install.sh | sudo bash -E
Gives this error:
bash: line 39: conditional binary operator expected
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.