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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: yaicli
3
- Version: 0.0.2
3
+ Version: 0.0.3
4
4
  Summary: A simple CLI tool to interact with LLM
5
5
  License-File: LICENSE
6
6
  Requires-Python: >=3.8
@@ -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 code assistant, "
130
- f"focusing on {_os} and {_shell}. "
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
 
@@ -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