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

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

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

TODO:

  • Add docs

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
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.

1 participant