yaicli 0.0.2__py3-none-any.whl → 0.0.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {yaicli-0.0.2.dist-info → yaicli-0.0.3.dist-info}/METADATA +1 -1
- yaicli-0.0.3.dist-info/RECORD +6 -0
- yaicli.py +5 -4
- yaicli-0.0.2.dist-info/RECORD +0 -6
- {yaicli-0.0.2.dist-info → yaicli-0.0.3.dist-info}/WHEEL +0 -0
- {yaicli-0.0.2.dist-info → yaicli-0.0.3.dist-info}/entry_points.txt +0 -0
- {yaicli-0.0.2.dist-info → yaicli-0.0.3.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,6 @@
|
|
1
|
+
yaicli.py,sha256=4c-cGPzZlUPdqv8uZrWmiimlCp8Q8S9UH7jKHRWYI8U,16709
|
2
|
+
yaicli-0.0.3.dist-info/METADATA,sha256=3C60zYZfELyBiKNPqXyPKKqAh8cKe7FG42oc_Esr01Y,379
|
3
|
+
yaicli-0.0.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
4
|
+
yaicli-0.0.3.dist-info/entry_points.txt,sha256=gdduQwAuu_LeDqnDU81Fv3NPmD2tRQ1FffvolIP3S1Q,34
|
5
|
+
yaicli-0.0.3.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
6
|
+
yaicli-0.0.3.dist-info/RECORD,,
|
yaicli.py
CHANGED
@@ -126,9 +126,8 @@ Rules:
|
|
126
126
|
_os = self.detect_os()
|
127
127
|
_shell = self.detect_shell()
|
128
128
|
return (
|
129
|
-
"You are a system and
|
130
|
-
f"
|
131
|
-
"Assist with system management, script writing, and coding tasks. "
|
129
|
+
"You are yaili, a system management and programing assistant, "
|
130
|
+
f"You are managing {_os} operating system with {_shell} shell. "
|
132
131
|
"Your responses should be concise and use Markdown format, "
|
133
132
|
"unless the user explicitly requests more details."
|
134
133
|
)
|
@@ -235,6 +234,8 @@ Rules:
|
|
235
234
|
response = self._call_api(url, headers, data)
|
236
235
|
except requests.exceptions.RequestException as e:
|
237
236
|
self.console.print(f"[red]Error calling API: {e}[/red]")
|
237
|
+
if self.verbose and e.response:
|
238
|
+
self.console.print(f"{e.response.text}")
|
238
239
|
raise typer.Exit(code=1) from None
|
239
240
|
if not response:
|
240
241
|
raise typer.Exit(code=1)
|
@@ -438,7 +439,7 @@ def main(
|
|
438
439
|
] = False,
|
439
440
|
):
|
440
441
|
"""LLM CLI Tool"""
|
441
|
-
cli = ShellAI()
|
442
|
+
cli = ShellAI(verbose=verbose)
|
442
443
|
cli.run(chat=chat, shell=shell, prompt=prompt)
|
443
444
|
|
444
445
|
|
yaicli-0.0.2.dist-info/RECORD
DELETED
@@ -1,6 +0,0 @@
|
|
1
|
-
yaicli.py,sha256=4c5UFeIUFI7lQERM31drdaj-bR6Q1DP3WBhm5qnu6b4,16620
|
2
|
-
yaicli-0.0.2.dist-info/METADATA,sha256=N-j9mcia0VG5XmxoXfrLz5ziXWKE8lqbVgSMfv-qnCQ,379
|
3
|
-
yaicli-0.0.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
4
|
-
yaicli-0.0.2.dist-info/entry_points.txt,sha256=gdduQwAuu_LeDqnDU81Fv3NPmD2tRQ1FffvolIP3S1Q,34
|
5
|
-
yaicli-0.0.2.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
6
|
-
yaicli-0.0.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|