void-chibs-crawl
25 days agoNew Contributor
op run messes up the cli text format
I'm using op run to load secrets into the environment. but it messes up the text format of the subsequent cli. See the history below. My "hi" even disappeared after I hit enter. Any solutions?
% op run --env-file=.env.local -- aider --model openai/gpt-4o-mini
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Aider v0.81.1
Model: openai/gpt-4o-mini with whole edit format
Git repo: .git with 27 files
Repo-map: using 4096 tokens, auto refresh
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
>
It seems like you want to start a new request. Please let me know what changes you would like to make, and I will assist you accordingly!
Tokens: 9.0k sent, 30 received. Cost: $0.0014 message, $0.0014 session.
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
>
In comparison, if i run the cli tool without op run. It's well-formated.
% aider --model openai/gpt-4o-mini
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Warning: openai/gpt-4o-mini expects these environment variables
- OPENAI_API_KEY: Not set
You can skip this check with --no-show-model-warnings
https://aider.chat/docs/llms/warnings.html
Open documentation url for more info? (Y)es/(N)o/(D)on't ask again [Yes]: n
Aider v0.81.1
Model: openai/gpt-4o-mini with whole edit format
Git repo: .git with 27 files
Repo-map: using 4096 tokens, auto refresh
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
> hi
litellm.AuthenticationError: AuthenticationError: OpenAIException - The api_key client option must be set either by passing api_key to the client or by
setting the OPENAI_API_KEY environment variable
The API provider is not able to authenticate you. Check your API key.
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
>