• Stefy Lanza (nextime / spora )'s avatar
    Wrap Google and Anthropic provider responses in JSONResponse · 4760277f
    Stefy Lanza (nextime / spora ) authored
    GoogleProviderHandler:
    - Wrap validated response dict in JSONResponse before returning
    - Add logging to confirm JSONResponse is being returned
    - Ensures proper JSON serialization for Google GenAI responses
    
    AnthropicProviderHandler:
    - Wrap validated response dict in JSONResponse before returning
    - Add logging to confirm JSONResponse is being returned
    - Ensures proper JSON serialization for Anthropic responses
    
    RequestHandler:
    - Remove JSONResponse wrapping (now handled by providers)
    - Update logging to detect JSONResponse vs dict responses
    - OpenAI and Ollama providers return raw dicts (already compatible)
    
    This fixes client-side 'Cannot read properties of undefined' errors by ensuring
    Google and Anthropic responses are properly serialized as JSONResponse,
    while leaving OpenAI and Ollama responses as-is since they're already
    OpenAI-compatible.
    4760277f
Name
Last commit
Last update
aisbf Loading commit data...
config Loading commit data...
.gitignore Loading commit data...
.providers.json.swp Loading commit data...
AI.PROMPT Loading commit data...
CHANGELOG.md Loading commit data...
DEBUG_GUIDE.md Loading commit data...
DOCUMENTATION.md Loading commit data...
LICENSE.txt Loading commit data...
MANIFEST.in Loading commit data...
PYPI.md Loading commit data...
README.md Loading commit data...
aisbf.sh Loading commit data...
build.sh Loading commit data...
clean.sh Loading commit data...
cli.py Loading commit data...
main.py Loading commit data...
pyproject.toml Loading commit data...
requirements.txt Loading commit data...
setup.py Loading commit data...
start_proxy.sh Loading commit data...