Skip to content

v0.7.0

Latest

Choose a tag to compare

@fatwang2 fatwang2 released this 09 Nov 11:48
da317fd

Breaking: extract() on Search1API and AsyncSearch1API requires the keyword arguments prompt and response_format, matching the API. response_format is typed as ExtractResponseFormat (in search1api.types): {"type": "json_schema", "json_schema": <your JSON Schema>}. The API never accepted a request without them; it now rejects one with 422 and an errors array instead of 400, which the client raises as UnprocessableEntityError. The bundled OpenAPI snapshot records the required fields, the request example and TARGET_BAD_REQUEST in failureCategory.