Skip to content

Invalid 'n': integer above maximum value. Expected a value <= 128 #25

@paulz

Description

@paulz

When trying to run 130 times.

https://github.com/thisisartium/continuous-alignment-testing/actions/runs/13779745603/job/38535728442#step:8:180

raise self._make_status_error_from_response(err.response) from None
E openai.BadRequestError: Error code: 400 - ***'error': 'message': "Invalid 'n': integer above maximum value. Expected a value <= 128, but got 130 instead.", 'type': 'invalid_request_error', 'param': 'n', 'code': 'integer_above_max_value'

.venv/lib/python3.13/site-packages/openai/_base_client.py:1071: BadRequestError
=========================== short test summary info ============================
FAILED examples/team_recommender/tests/example_7_schema_validators/test_response_has_valid_schema.py::test_response_has_valid_schema - openai.BadRequestError: Error code: 400 - ***'error': 'message': "Invalid 'n': integer above maximum value. Expected a value <= 128, but got 130 instead.", 'type': 'invalid_request_error', 'param': 'n', 'code': 'integer_above_max_value'
========================= 1 failed, 1 passed in 1.76s ==========================

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions