Skip to content

openai-assistant v2.1.1

Choose a tag to compare

@3ls-it 3ls-it released this 10 Aug 17:01
v2.1.1 minor update

v2.1.0 changes:

New CLI flags
        * --no-upload: Skip uploading ~/.openai/chat_log.txt on startup.
        * --reset-assistant: Clear ASSISTANT_ID in settings before startup (forces new assistant creation).
        * --reset-store: Clear VECTOR_STORE_ID in settings before startup (forces new vector store).

Code changes
                * Added argparse and flag parsing in the __main__ path.
        * Extended Openai_API.setup(upload_log: bool = True) so upload can be skipped.
        * Kept existing behavior intact when flags are not used.
        * Updated startup console message when upload is skipped.

A separate, human-readable API log:
        * File: ~/.openai/api.log
        * Rotation: daily at midnight, keeping 7 days (TimedRotatingFileHandler)
        * Levels: INFO by default; DEBUG with --debug-api

New CLI flag
        * --debug-api: enable DEBUG-level logging for more verbose diagnostics

Instrumentation points (what gets logged)
        * Startup summary (model, temp, whether ASSISTANT_ID/VECTOR_STORE_ID are present)
        * Assistant lifecycle:
            - Retrieved/created assistant ID
            - Instructions synced (when settings changed)
        * Vector store lifecycle:
            - Retrieved/created vector store ID
        * File upload:
            - Skip reason (empty/missing chat_log.txt)
            - Upload start (DEBUG, vector store ID)
            - Upload result status and file_counts (INFO)
            - Errors (APIConnectionError, RateLimitError, APIStatusError, Unexpected)
        * Conversation run lifecycle:
            - Run started (INFO)
            - Run completed with elapsed time and response length (INFO)
            - Errors (APIConnectionError, RateLimitError, APIStatusError, Unexpected)

Keep chat log clean
        * All API/system events now go to api.log.
        * ~/.openai/chat_log.txt continues to capture only dialogue (user and assistant messages), as before.

How to use
    * Normal run (INFO logs):
        - ./openai-assistant
    * Verbose API debug logging:
        - ./openai-assistant --debug-api
    * Tail logs while troubleshooting:
        - tail -f ~/.openai/api.log

v2.1.1 additions:
    * Small refactoring tweaks
    * Comment updates/clean-up
    * Updated `requirements.txt`
    * Updated `README.md`