You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* refactor: enhance OpenAIEmbeddingSpec with improved response handling and new utility methods
- Introduced `get_num_items` method in `EmbeddingRequest` for better input management.
- Refactored embedding response handling into `_handle_embedding_response` for clarity and error checking.
- Updated endpoint registration to use `embeddings_endpoint` for consistency.
- Improved logging and response validation in the embeddings endpoint.
* update
* update
* refactor: enhance OpenAIEmbeddingSpec and TestAPI for improved input handling and response validation
- Updated `TestAPI` to support batching in the `predict` method, allowing for multiple inputs.
- Added `EMBEDDING_API_EXAMPLE_BATCHING` to provide guidance on using the OpenAI Embedding spec with batching.
- Improved response validation in `OpenAIEmbeddingSpec` to handle mismatches between requested and returned embeddings.
- Removed unused methods and streamlined the code for better clarity and maintainability.
* fix: improve error handling in BatchedLoop and add OpenAI embedding test
- Enhanced error logging in `BatchedLoop` to provide clearer messages when output length mismatches expected input count.
- Updated HTTPException to include a detailed message for better debugging.
- Introduced `openai_embedding_with_batching.py` for end-to-end testing of the OpenAI embedding API with batching support.
- Added assertions in `test_e2e_openai_embedding_with_batching` to validate model and embedding dimensions.
* fix
* fix
* fix: update OpenAI embedding prediction to handle single and multiple inputs
- Modified `predict` method in `TestEmbedAPI` to support both single and batch inputs by adjusting the random embedding generation.
- Added comprehensive tests for OpenAI embedding spec, covering single input, multiple inputs, usage validation, and error handling for missing or incorrect responses.
- Ensured that the tests validate the expected structure and content of the API responses.
* test: enhance OpenAI embedding tests for batching and error handling
- Added tests for client-side batching to validate error responses when dynamic batching is used.
- Improved assertions for status codes and response content in existing tests for better clarity.
- Utilized `copy.deepcopy` to ensure request data integrity during concurrent tests.
* update
* fix ci
* fix test
0 commit comments