diff --git a/cleanlab_studio/studio/trustworthy_language_model.py b/cleanlab_studio/studio/trustworthy_language_model.py index 468751b8..2b14017e 100644 --- a/cleanlab_studio/studio/trustworthy_language_model.py +++ b/cleanlab_studio/studio/trustworthy_language_model.py @@ -546,7 +546,7 @@ async def get_trustworthiness_score_async( processed_response = process_response_and_kwargs(response, kwargs) async with aiohttp.ClientSession() as session: - if isinstance(prompt, str) and isinstance(processed_response, str): + if isinstance(prompt, str) and isinstance(processed_response, dict): trustworthiness_score = await self._get_trustworthiness_score_async( prompt, processed_response,