Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple Unit Test Failures Across OpenAI Assistants, Anthropic, and Google Gemini Libraries #1536

Open
sakher opened this issue Jun 24, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@sakher
Copy link

sakher commented Jun 24, 2024

Describe the bug

I observed several failures in unit tests involving the libraries for OpenAI Assistants, Anthropic, and Google Gemini. Each, detailed below.

  1. Anthropic Library:

    • Issue: Recent changes have made the ContentBlock type a Union type, which can't be directly instantiated. This updated type now encapsulates both TextBlock and ToolUseBlock.
      ContentBlock = Annotated[Union[TextBlock, ToolUseBlock], PropertyInfo(discriminator="type")]
    • Impact: Our existing code relies on the direct instantiation of ContentBlock, which is now causing failures.
  2. OpenAI Library:

    • Issue: The latest update to the assistant API introduced several breaking changes:
      • The retrieval tool has been renamed to file_search.
      • The parameter assistant.file_ids has been changed to tool_resources.
      • The parameter message.file_ids has been modified to attachments.
    • Impact: These changes are causing failures in the functionalities that depend on file handling and assistant resources.
  3. Gemini Library:

    • Issue: There's a defect in the Gemini library related to how it handles protobuf objects; specifically, it erroneously parses these objects as dictionaries.
    • Impact: This parsing error is causing unexpected behavior and test failures.

To Reproduce

Just run the unit tests for v 3.0.1

Code snippets

No response

OS

macOS

Python version

3.9.0

Library version

3.0.1

@sakher sakher added the bug Something isn't working label Jun 24, 2024
@sakher sakher changed the title V3.0.1 - Anthropic Solver - Union Type Can't Be Instantiated (and many other unit test failures) Anthropic Solver - Union Type Can't Be Instantiated (and many other unit test failures) Jun 24, 2024
@sakher sakher changed the title Anthropic Solver - Union Type Can't Be Instantiated (and many other unit test failures) Unit test failures - resolvers interface breaking changes (Anthropic, OpenAI Assistants, and Gemini) Jun 24, 2024
@sakher sakher changed the title Unit test failures - resolvers interface breaking changes (Anthropic, OpenAI Assistants, and Gemini) Multiple Unit Test Failures Across OpenAI Assistants, Anthropic, and Google Gemini Libraries Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant