Skip to content

Ollama GUI Chat v1.2

Choose a tag to compare

@tomteipl tomteipl released this 21 Mar 23:06
· 46 commits to main since this release

Full Changelog: v1.0...v1.2

Changelog: OllamaGUIChat v1_1.py → Latest Version

Features Added

  • Model selector dropdown: Users can now choose from a list of predefined models (e.g., llama3.1, gemma3, mistral, etc.) via a tk.OptionMenu.
  • Custom theming via JSON file: Introduced support for theme customization through a theme.json file.
  • Theme toggle button: Added a "Toogle theme" button to switch between default and custom themes.
  • Better input handling:
    • <Return> sends the message.
    • <Shift-Return> adds a new line.
    • <Ctrl+A> selects all text in the input box.
  • Improved input UI: Input field is now wrapped in a frame with a fixed height for layout consistency.

UI / UX Improvements

  • Window resizing: Main window is now resizable, with flexible layout expansion using fill="both" and expand=True.
  • Modern layout tweaks:
    • Buttons and widgets are better organized.
    • Padding adjustments and font enhancements for readability.
  • Input focus: Automatically sets focus to the input field on startup.

Logic & Behavior Enhancements

  • Model-aware API payload: The selected model from the dropdown is used in the POST request (payload["model"]).
  • Consistent context memory: full_reply is used to store AI responses, preserving context across exchanges.

Refactorings & Cleanups

  • Moved styling and theme logic into two dedicated methods:
    • default_colors()
    • apply_theme_config()
  • Separated keybindings into a new keybindings() method.
  • Removed hardcoded values in favor of theme-driven styling.

Fixes

  • Corrected license text display by moving it into a Toplevel window (already in previous version but retained).
  • Avoids app crash on missing or malformed theme JSON by falling back to default styling.