• Stefy Lanza (nextime / spora )'s avatar
    Fix provider handler errors · 871fcdaf
    Stefy Lanza (nextime / spora ) authored
    - Fixed GoogleProviderHandler to return OpenAI-style response format
    - Added tools and tool_choice parameters to OllamaProviderHandler (accepted but ignored)
    - Fixed OpenAI message building to properly handle tool messages with tool_call_id
    - Fixed max_tokens handling to avoid passing null values to APIs
    - Converted Ollama response to OpenAI-style format for consistency
    
    This fixes the following errors:
    - 'Cannot read properties of undefined (reading '0')' - Google response format issue
    - 'OllamaProviderHandler.handle_request() got an unexpected keyword argument 'tools''
    - 'for 'role:tool' the following must be satisfied[('messages.23.tool_call_id' : property 'tool_call_id' is missing)]'
    - 'Invalid input: expected number, received null' for max_tokens parameter
    871fcdaf
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...