add comment

This commit is contained in:
Jason
2023-09-09 11:40:13 -04:00
parent 904aecaa0a
commit 213dc5d4ee
+3 -2
View File
@@ -37,7 +37,9 @@ The function **`classify`** will perform the single-label classification.
import openai
import instructor
instructor.patch()
# Patch the OpenAI API to use the `ChatCompletion`
# endpoint with `response_model` enabled.
instructor.patch()
def classify(data: str) -> SinglePrediction:
"""Perform single-label classification on the input text."""
@@ -51,7 +53,6 @@ def classify(data: str) -> SinglePrediction:
},
],
) # type: ignore
```
### Testing and Evaluation