You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to use the llm command-line interface (CLI) on Windows, I encounter an encoding error related to the ASCII codec. Despite setting environment variables to enforce UTF-8 encoding, the issue persists. Additionally, configuring models results in errors indicating that certain models are unknown or not recognized.
Configured Python environment variables (PYTHONIOENCODING and PYTHONUTF8) to enforce UTF-8 encoding.
Activated the Poetry virtual environment within a separate project directory.
Tried adding and setting different models, including a local model (groq-llama3.1-70b), which resulted in errors.
Error Messages:
Error: 'ascii' codec can't encode character '\xe0' in position 41: ordinal not in range(128)
Error: 'groq-llama3.1-70b' is not a known model
Commands Run:
llm 'hi'
llm 'Café'
llm models add groq-llama3.1-70b --path "C:\Path\To\groq-llama3.1-70b"
llm models set default groq-llama3.1-70b
llm models list
llm 'hi'
Attempts to Use llm-cmd:
llm-cmd hi
Result:
llm-cmd : The term 'llm-cmd' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that
the path is correct and try again.
Notes:
Attempting to run poetry shell within the site-packages\llm directory results in an error due to the absence of a pyproject.toml file.
The issue persists even after setting environment variables within the Poetry shell.
The text was updated successfully, but these errors were encountered:
Description
When attempting to use the
llm
command-line interface (CLI) on Windows, I encounter an encoding error related to the ASCII codec. Despite setting environment variables to enforce UTF-8 encoding, the issue persists. Additionally, configuring models results in errors indicating that certain models are unknown or not recognized.Steps to Reproduce
Set Up the Environment:
Name : ConsoleHost
Version : 5.1.22621.4111
InstanceId : e0d61ad7-8a35-4d6f-9199-74f95ce5a7e9
UI : System.Management.Automation.Internal.Host.InternalHostUserInterface
CurrentCulture : en-US
CurrentUICulture : en-GB
PrivateData : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy
DebuggerEnabled : True
IsRunspacePushed : False
Runspace : System.Management.Automation.Runspaces.LocalRunspace
Configure Environment Variables:
Activate Poetry Virtual Environment:
Navigate to a project directory (ensure it's not within
site-packages
):Run the
llm
Command with ASCII Input:llm 'hi'
Expected Behavior: The command should execute without encoding errors and return a response from the language model.
Actual Behavior:
Run the
llm
Command with Non-ASCII Input:llm 'Café'
Actual Behavior:
Attempt to Add and Set a Model:
Actual Behavior:
List Available Models:
Actual Output:
Attempt to Use the Default Model:
llm 'hi'
Actual Behavior:
Expected Behavior
llm
command should handle both ASCII and non-ASCII inputs without encountering encoding errors.Actual Behavior
Encountering an encoding error when using non-ASCII characters, specifically:
Errors related to unrecognized models when attempting to add or set a default model:
Environment
Name : ConsoleHost
Version : 5.1.22621.4111
InstanceId : e0d61ad7-8a35-4d6f-9199-74f95ce5a7e9
UI : System.Management.Automation.Internal.Host.InternalHostUserInterface
CurrentCulture : en-US
CurrentUICulture : en-GB
PrivateData : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy
DebuggerEnabled : True
IsRunspacePushed : False
Runspace : System.Management.Automation.Runspaces.LocalRunspace]
poetry --version
]C:\Users\samue\AppData\Roaming\pypoetry\venv\Lib\site-packages\llm\
C:\Users\samue\AppData\Roaming\pypoetry\venv\Lib\site-packages\llm\llm-test\.venv
Environment Variables
Additional Context
Attempted Solutions:
PYTHONIOENCODING
andPYTHONUTF8
) to enforce UTF-8 encoding.groq-llama3.1-70b
), which resulted in errors.Error Messages:
Commands Run:
Attempts to Use
llm-cmd
:llm-cmd hi
Result:
Notes:
poetry shell
within thesite-packages\llm
directory results in an error due to the absence of apyproject.toml
file.The text was updated successfully, but these errors were encountered: