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

🚀 feat: GPT-4.5, Anthropic Tool Header, and OpenAPI Ref Resolution #6118

Merged
merged 7 commits into from
Feb 28, 2025

Conversation

danny-avila
Copy link
Owner

@danny-avila danny-avila commented Feb 28, 2025

Summary

  • Added a new 'anthropic-beta' header for Claude 3.7 to include token-efficient tools per updated documentation.
  • Revised the OpenAPI $ref resolution logic to correctly resolve schema, parameter, and requestBody references, with extra test cases to verify accuracy.
  • Updated GPT-4.5 handling in token calculations and vision support across API models, along with modifications in environment examples and tests.
  • Refactored parser logic to extract GPT and omni model versions more reliably to support future releases.
  • Improved model handling in the OpenAI client by switching to default settings and enhancing encoding logic based on model types.
  • Updated the README to reflect GPT-4.5 support in the image analysis feature.
  • Adjusted settings in schemas using "as const" for tighter type safety and set gpt-4o-mini as the new default for cost efficiency.

Closes #6109
Closes #6110

Checklist:

  • My code adheres to this project's style guidelines
  • I have performed a self-review of my own code
  • I have commented in any complex areas of my code
  • I have made pertinent documentation changes
  • My changes do not introduce new warnings
  • I have written tests demonstrating that my changes are effective or that my feature works
  • Local unit tests pass with my changes
  • Any changes dependent on mine have been merged and published in downstream modules

@danny-avila danny-avila merged commit 2293cd6 into main Feb 28, 2025
7 checks passed
@danny-avila danny-avila deleted the feat/gpt-4.5 branch February 28, 2025 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant