fix: quick fixes for open issues #1959, #1957, #1953, #1940, #1956#1969
Closed
fix: quick fixes for open issues #1959, #1957, #1953, #1940, #1956#1969
Conversation
Add examples/debugging/run.py that demonstrates: - DEBUG logging for instructor.* - Hook handlers for observing request flow - Fake provider for offline testing - No-network example of debugging features Fixes #1959 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
Filter response.output to only process ResponseFunctionToolCall objects that have arguments attribute. This prevents AttributeError when reasoning models include ResponseReasoningItem objects without arguments. The fix ensures validation errors are properly sent to the LLM during retries with reasoning models (e.g., gpt-5-2025-08-07). Fixes #1957 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
Add support for passing config dict/object to update_genai_kwargs that
preserves all config fields including automatic_function_calling and
thinking_config. Previously these were lost when constructing
GenerateContentConfig.
This allows users to disable automatic function calling noise:
config={"automatic_function_calling": {"disable": True}}
Fixes #1953
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
Narrow ImportError handling to only catch import failures for google.genai
package, not errors during client initialization. This prevents masking
of real errors like missing httpx[socks] dependency when using SOCKS proxy.
Before: All ImportErrors showed "google-genai package required"
After: Only actual import failures show that message, other errors
(like missing socksio) propagate with full context
Fixes #1940
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
Change "an customizable" to "a customizable" in: - docs/concepts/reask_validation.md - docs/tutorials/4-validation.ipynb - docs/tutorials/3-1-validation-rag.ipynb Fixes #1956 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
instructor | 3655972 | Commit Preview URL Branch Preview URL |
Dec 20 2025, 11:43 PM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR contains 5 quick fixes for recently reported issues:
1. Add debugging example (#1959)
examples/debugging/run.pydemonstrating hooks, logging, and debugging flow2. Fix Responses API validation error handling (#1957)
reask_responses_toolsto handleResponseReasoningItemobjectsAttributeErrorwhen reasoning models include non-tool-call outputs3. Preserve GenAI config parameters (#1953)
update_genai_kwargsto preserveautomatic_function_callingconfigGenerateContentConfigconfig={"automatic_function_calling": {"disable": True}}4. Improve from_provider error handling (#1940)
httpx[socks]) now show actual error messages5. Fix documentation typo (#1956)
Test Plan
Related Issues
Closes #1959
Closes #1957
Closes #1953
Closes #1940
Closes #1956