Skip to content

Improvements planned/needed #4

@santiagobasulto

Description

@santiagobasulto

Code design and architecture

  • Authentication: I can probably subclassrequests.Session while keeping the OpenAI API Key in some context to avoid the repetition
  • Subcommand architecture: some methods in the IPythonGPT class are subcommands, while others are utility methods, but not all subcommands are behaving equally.
  • Parameter parsing: Related to subcommands; there's a global argument parser shared by all the subcommands. Each command should define its own parser while extending the base parameters. I'm not sure if argparse is the correct alternative.
  • Displaying and formatting: I need to improve the way the results are displayed for different types of interfaces (notebook, shell, etc)

Code quality

  • Testing: Some testing wouldn't be bad 🤡
  • Create its own package: Move ipython_gpt.py from module to a package
  • Code formatting: Should incorporate black
  • CI/CD Pipeline: A minimum pipeline to check formatting and test coverage

Feature improvements

  • Streaming: Test support for stream=True.
  • Debug mode: some way to see/debug what the client is doing behind the scenes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions