mirror of
https://github.com/kennethreitz/instructor.git
synced 2026-06-05 22:50:18 +00:00
ruff
This commit is contained in:
+3
-1
@@ -46,7 +46,9 @@ def handle_response_model(response_model: Type[BaseModel], kwargs):
|
||||
return response_model, new_kwargs
|
||||
|
||||
|
||||
def process_response(response, response_model, validation_context: dict = None, strict=None): # type: ignore
|
||||
def process_response(
|
||||
response, response_model, validation_context: dict = None, strict=None
|
||||
): # type: ignore
|
||||
"""Processes a OpenAI response with the response model, if available
|
||||
It can use `validation_context` and `strict` to validate the response
|
||||
via the pydantic model
|
||||
|
||||
Reference in New Issue
Block a user