weavel-ai / weavel-python

Other
4 stars 0 forks source link

feat: add websocket-based flexible optimization #27

Closed aschung01 closed 2 months ago

aschung01 commented 2 months ago

Description

This pull request introduces a websocket-based flexible optimization feature to the Weavel library. The main changes include:

  1. Addition of a new WebsocketClient class in weavel/clients/websocket_client.py for handling websocket connections and message processing.
  2. Updates to the Worker class in weavel/_worker.py to support websocket-based operations.
  3. Refactoring of types in weavel/types/ directory, including the introduction of new websocket-related types.
  4. Improvements to error handling and logging throughout the codebase.
  5. Version bump from 1.9.4 to 1.9.5 in setup.py.

Key changes include:

These changes aim to provide a more flexible and robust optimization process, likely improving the overall performance and reliability of the Weavel library.

Changes that Break Backward Compatibility

  1. The Dataset, DatasetItem, Prompt, and PromptVersion classes have been renamed to WvDataset, WvDatasetItem, WvPrompt, and WvPromptVersion respectively. This change affects imports and usage throughout the codebase.

  2. The ResponseFormat class has been removed from weavel/types/response_format.py and is now imported from ape.common.types. This may require updates to any code that directly used the previous ResponseFormat class.

  3. The logging utilities in weavel/utils/logger.py have been replaced with a more comprehensive logging setup in weavel/utils/logging.py. This change affects how logging is configured and used throughout the project.

Documentation

N/A

Created with Palmier

aschung01 commented 2 months ago

@palmier-bot describe