Integuru-AI / Integuru

The first AI agent that builds third-party integrations through reverse engineering platforms' internal APIs.
https://integuru.ai
GNU Affero General Public License v3.0
1.34k stars 90 forks source link

Function calling not supported with o1-preview #5

Closed hdashr closed 23 minutes ago

hdashr commented 2 days ago

Hi! I am trying to use the tool with the o1-preview model, running command

poetry run python -m integuru --prompt "" --generate-code --model o1-preview

openai.BadRequestError: Error code: 400 - {'error': {'message': "Unsupported parameter: 'function_call' is not supported with this model.", 'type': 'invalid_request_error', 'param': 'function_call', 'code': 'unsupported_parameter'}}

alanalanlu commented 2 days ago

Function calls are not supported for o1-preview so I would recommend using the default 4o model for the graph generation. The code will automatically use o1-preview if available in your open ai account and use o1-preview for the code generation.

will edit README for more clarity