Skip to content

Commit

Permalink
feat: add support for meta vendor in openinference-instrumentation-be…
Browse files Browse the repository at this point in the history
…drock (#448)
  • Loading branch information
krzysztofspalinski committed May 11, 2024
1 parent b6e4cfe commit 958c385
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ def instrumented_response(*args: Any, **kwargs: Any) -> Dict[str, Any]:
content = str(response_body.get("completion"))
elif vendor == "cohere":
content = str(response_body.get("generations"))
elif vendor == "meta":
content = str(response_body.get("generation"))
else:
content = ""

Expand Down

0 comments on commit 958c385

Please sign in to comment.