Skip to content

Commit

Permalink
[TLM] Fix get_trustworthiness_score_async type check (#299)
Browse files Browse the repository at this point in the history
  • Loading branch information
huiwengoh committed Aug 27, 2024
1 parent 9c1322f commit 5ed28d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cleanlab_studio/studio/trustworthy_language_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion cleanlab_studio/version.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Note to developers:
# Consider if backend's MIN_CLI_VERSION needs updating when pushing any changes to this file.

__version__ = "2.4.0"
__version__ = "2.4.1"

SCHEMA_VERSION = "0.2.0"
MIN_SCHEMA_VERSION = "0.1.0"
Expand Down

0 comments on commit 5ed28d0

Please sign in to comment.