instructor-rb
instructor-rb copied to clipboard
Fixes
[!IMPORTANT] Enhance
Instructorlibrary with updated dependencies, new modes for API interactions, and improved response handling, along with comprehensive test coverage.
- Dependencies:
- Update
activesupportto>= 6.0.- Update
easy_talkto~> 2.- Update
ruby-anthropicto~> 0.4.- Update
ruby-openaito~> 8.- Modes:
- Add
ANTHROPIC_TOOLS,ANTHROPIC_JSON,ANTHROPIC_PARALLEL_TOOLS, andANTHROPIC_REASONING_TOOLSmodes inmode.rb.- Add
TOOLS_STRICT,JSON_SCHEMA, andMD_JSONmodes for OpenAI inmode.rb.- Functionality:
- Implement
from_openaiandfrom_anthropicmethods ininstructor.rbto support new modes.- Enhance
Anthropic::PatchandOpenAI::Patchto handle new modes and response formats.- Add
ToolResponseandJsonResponseclasses inanthropic/response.rbandopenai/response.rbfor mode-specific response handling.- Testing:
- Add tests for new modes and response handling in
spec/anthropicandspec/openaidirectories.- Update VCR cassettes to reflect changes in API interactions.
This description was created by
for 6c09306f2c9816d1408753501db3b5ea6c23abce. You can customize this summary. It will automatically update as commits are pushed.