Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added GPT-4 Vision Support & Token Counter #418

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Commits on Jul 31, 2023

  1. "Add tiktoken dependency and functionality to calculate tokens for pr…

    …ompt in sgpt/app.py, refactor lists in pyproject.toml"
    
    This commit introduces the 'tiktoken' dependency in the pyproject.toml file and adds functionality to calculate the number of tokens for a given prompt in the sgpt/app.py file. This is done by adding a new 'tokenize' option in the main function.
    duysqubix committed Jul 31, 2023
    Configuration menu
    Copy the full SHA
    a34bf9c View commit details
    Browse the repository at this point in the history

Commits on Aug 1, 2023

  1. "Refactor pyproject.toml to use Poetry for package management and upd…

    …ate dependencies"
    duysqubix committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    b14b7c9 View commit details
    Browse the repository at this point in the history

Commits on Aug 3, 2023

  1. Configuration menu
    Copy the full SHA
    a4d4ad6 View commit details
    Browse the repository at this point in the history
  2. reverted back to original pyproject file, with the exception of addin…

    …g tiktoken as a dependency
    duysqubix committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    c3f6e22 View commit details
    Browse the repository at this point in the history

Commits on Aug 4, 2023

  1. 1. Dockerfile:

       - Changed the working directory and copy destination to /home/app for better organization and to follow best practices.
       - Added a step to create a new user 'app' and switch to it for security reasons, as running the Docker container as root can be a security risk.
    
    2. sgpt/__init__.py:
       - Imported Optional from typing to support optional typing in the code, improving code readability and maintainability.
    
    3. sgpt/app.py:
       - Imported rich library and typing for better console output formatting and type hinting.
       - Replaced typer.echo with rich.print for better console output formatting.
       - Removed a comment that was not providing any additional information.
    
    4. sgpt/config.py:
       - Imported Console from rich for better console output formatting.
       - Added a new configuration variable 'FORCE_COLOR' to allow users to force color output in the console.
       - Added a method to initialize a Console object with the appropriate color system based on the 'FORCE_COLOR' configuration variable.
    
    5. sgpt/role.py:
       - Imported print from rich for better console output formatting.
       - Replaced typer.echo with rich.print for better console output formatting.
    
    6. sgpt/utils.py:
       - Imported print from rich for better console output formatting.
       - Replaced typer.echo with rich.print for better console output formatting.
    duysqubix committed Aug 4, 2023
    Configuration menu
    Copy the full SHA
    888d140 View commit details
    Browse the repository at this point in the history

Commits on Dec 24, 2023

  1. removed local.py

    dm-duys committed Dec 24, 2023
    Configuration menu
    Copy the full SHA
    824d19b View commit details
    Browse the repository at this point in the history
  2. resolved conflicts

    dm-duys committed Dec 24, 2023
    Configuration menu
    Copy the full SHA
    49662d1 View commit details
    Browse the repository at this point in the history
  3. removed local.py

    dm-duys committed Dec 24, 2023
    Configuration menu
    Copy the full SHA
    a0243be View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    533d4d5 View commit details
    Browse the repository at this point in the history
  5. removed old dev code

    dm-duys committed Dec 24, 2023
    Configuration menu
    Copy the full SHA
    1c45ce5 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    276ec53 View commit details
    Browse the repository at this point in the history
  7. added some comments

    dm-duys committed Dec 24, 2023
    Configuration menu
    Copy the full SHA
    7035f24 View commit details
    Browse the repository at this point in the history