Improved support for images & assistants
New Features:
-
Added support for image generation endpoint
- New method:
image_generation(params)
- New method:
-
Added new endpoints for Assistants API:
assistants()
: Get list of assistantsthreads()
: Get list of threadsthread_messages(thread_id)
: Get messages for a specific threaddelete_thread(thread_id)
: Delete a specific thread
-
Added new endpoints for managing files:
files()
: Get list of filesfile(file_id)
: Get details of a specific filedelete_file(file_id)
: Delete a specific file
Improvements:
-
Updated content format to support image_url input for GPT Vision
- Added support for
image_url
type in content format
- Added support for
-
Made authorization optional
- Allows usage with local models that don't require API key