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

Add tests for Gemini via openai package #382

Merged
merged 12 commits into from
Mar 2, 2025
Merged

Conversation

jackmpcollins
Copy link
Owner

@jackmpcollins jackmpcollins commented Nov 29, 2024

  • Add openai_gemini marker.
  • Add GEMINI_API_KEY to .env.template.
  • Test gemini via openai
  • Add section to configuration docs on Gemini via OpenAI

Fixes #432
Related to #169 #168


Update: the below error appears to be resolved now.

Currently getting the following error for the parallel_tool_calls argument.

openai.BadRequestError: Error code: 400 - [
    {
        'error': {
            'code': 400,
            'message': 'Invalid JSON payload received. Unknown name "parallel_tool_calls": Cannot find field.',
            'status': 'INVALID_ARGUMENT',
            'details': [
                {
                    '@type': 'type.googleapis.com/google.rpc.BadRequest',
                    'fieldViolations': [
                        {
                            'description': 'Invalid JSON payload received. Unknown name "parallel_tool_calls": Cannot find field.'
                        }
                    ]
                }
            ]
        }
    }
]

Posted on this related google issue https://discuss.ai.google.dev/t/invalid-argument-error-using-openai-compatible/51788/9?u=jackmpcollins

@jackmpcollins jackmpcollins self-assigned this Nov 29, 2024
@jackmpcollins jackmpcollins marked this pull request as ready for review March 2, 2025 05:54
@jackmpcollins jackmpcollins merged commit da79fa4 into main Mar 2, 2025
1 check passed
@jackmpcollins jackmpcollins deleted the add-gemini-via-openai-2 branch March 2, 2025 05:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Assertion Error with Gemini
1 participant