ngpt 2.3.1__py3-none-any.whl → 2.3.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.
ngpt/cli.py CHANGED
@@ -492,7 +492,7 @@ def interactive_chat_session(client, web_search=False, no_stream=False, temperat
492
492
  web_search=web_search,
493
493
  temperature=temperature,
494
494
  top_p=top_p,
495
- max_length=max_length
495
+ max_tokens=max_length
496
496
  )
497
497
 
498
498
  # Add AI response to conversation history
@@ -528,7 +528,11 @@ def interactive_chat_session(client, web_search=False, no_stream=False, temperat
528
528
  def main():
529
529
  # Colorize description - use a shorter description to avoid line wrapping issues
530
530
  description = f"{COLORS['cyan']}{COLORS['bold']}nGPT{COLORS['reset']} - Interact with AI language models via OpenAI-compatible APIs"
531
- parser = argparse.ArgumentParser(description=description, formatter_class=ColoredHelpFormatter)
531
+
532
+ # Minimalist, clean epilog design
533
+ epilog = f"\n{COLORS['yellow']}nGPT {COLORS['bold']}v{__version__}{COLORS['reset']} • {COLORS['green']}Docs: {COLORS['bold']}https://nazdridoy.github.io/ngpt/usage/cli_usage.html{COLORS['reset']}"
534
+
535
+ parser = argparse.ArgumentParser(description=description, formatter_class=ColoredHelpFormatter, epilog=epilog)
532
536
 
533
537
  # Add custom error method with color
534
538
  original_error = parser.error
@@ -823,9 +827,9 @@ def main():
823
827
  style="class:input-area",
824
828
  multiline=True,
825
829
  wrap_lines=True,
826
- width=term_width - 4,
827
- height=min(20, term_height - 8),
828
- prompt=HTML("<ansicyan>>>> </ansicyan>"),
830
+ width=term_width - 10,
831
+ height=min(15, term_height - 10),
832
+ prompt=HTML("<ansicyan><b>> </b></ansicyan>"),
829
833
  scrollbar=True,
830
834
  focus_on_click=True,
831
835
  lexer=None,
@@ -834,7 +838,7 @@ def main():
834
838
 
835
839
  # Create a title bar
836
840
  title_bar = FormattedTextControl(
837
- HTML("<style bg='ansicyan' fg='ansiblack'><b> NGPT Multi-line Editor </b></style>")
841
+ HTML("<ansicyan><b> nGPT Multi-line Editor </b></ansicyan>")
838
842
  )
839
843
 
840
844
  # Create a status bar with key bindings info
@@ -846,17 +850,17 @@ def main():
846
850
  layout = Layout(
847
851
  HSplit([
848
852
  Window(title_bar, height=1),
849
- Window(height=1, char="-", style="class:separator"),
853
+ Window(height=1, char="", style="class:separator"),
850
854
  text_area,
851
- Window(height=1, char="-", style="class:separator"),
855
+ Window(height=1, char="", style="class:separator"),
852
856
  Window(status_bar, height=1),
853
857
  ])
854
858
  )
855
859
 
856
860
  # Create a style
857
861
  style = Style.from_dict({
858
- "separator": "ansigray",
859
- "input-area": "bg:ansiblack fg:ansiwhite",
862
+ "separator": "ansicyan",
863
+ "input-area": "fg:ansiwhite",
860
864
  "cursor": "bg:ansiwhite fg:ansiblack",
861
865
  })
862
866
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ngpt
3
- Version: 2.3.1
3
+ Version: 2.3.3
4
4
  Summary: A lightweight Python CLI and library for interacting with OpenAI-compatible APIs, supporting both official and self-hosted LLM endpoints.
5
5
  Project-URL: Homepage, https://github.com/nazdridoy/ngpt
6
6
  Project-URL: Repository, https://github.com/nazdridoy/ngpt
@@ -0,0 +1,9 @@
1
+ ngpt/__init__.py,sha256=ehInP9w0MZlS1vZ1g6Cm4YE1ftmgF72CnEddQ3Le9n4,368
2
+ ngpt/cli.py,sha256=9sQqBUxHQaiaI9QZ7F63Wky19iJIfEk5HmboqxQFpR8,43498
3
+ ngpt/client.py,sha256=75xmzO7e9wQ7y_LzZCacg3mkZdheewcBxB6moPftqYw,13067
4
+ ngpt/config.py,sha256=BF0G3QeiPma8l7EQyc37bR7LWZog7FHJQNe7uj9cr4w,6896
5
+ ngpt-2.3.3.dist-info/METADATA,sha256=pVnJjrQlmXNwdzCyohq-uP9al4GptzXc1nhPwI8ph7Y,13535
6
+ ngpt-2.3.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
7
+ ngpt-2.3.3.dist-info/entry_points.txt,sha256=1cnAMujyy34DlOahrJg19lePSnb08bLbkUs_kVerqdk,39
8
+ ngpt-2.3.3.dist-info/licenses/LICENSE,sha256=mQkpWoADxbHqE0HRefYLJdm7OpdrXBr3vNv5bZ8w72M,1065
9
+ ngpt-2.3.3.dist-info/RECORD,,
@@ -1,9 +0,0 @@
1
- ngpt/__init__.py,sha256=ehInP9w0MZlS1vZ1g6Cm4YE1ftmgF72CnEddQ3Le9n4,368
2
- ngpt/cli.py,sha256=y3LzVYJnlAt570dFniUchPa3oUuD4MaDbGl6fGfH_ac,43255
3
- ngpt/client.py,sha256=75xmzO7e9wQ7y_LzZCacg3mkZdheewcBxB6moPftqYw,13067
4
- ngpt/config.py,sha256=BF0G3QeiPma8l7EQyc37bR7LWZog7FHJQNe7uj9cr4w,6896
5
- ngpt-2.3.1.dist-info/METADATA,sha256=M7YPXzIzpSJRfHI8QKt4VvDmgoDaT2WY3P6tk_DRrtg,13535
6
- ngpt-2.3.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
7
- ngpt-2.3.1.dist-info/entry_points.txt,sha256=1cnAMujyy34DlOahrJg19lePSnb08bLbkUs_kVerqdk,39
8
- ngpt-2.3.1.dist-info/licenses/LICENSE,sha256=mQkpWoADxbHqE0HRefYLJdm7OpdrXBr3vNv5bZ8w72M,1065
9
- ngpt-2.3.1.dist-info/RECORD,,
File without changes