Skip to content

Commit

Permalink
fix!: Suffix track methods with metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
keelerm84 committed Nov 22, 2024
1 parent d2a2ea7 commit 319f64d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ldai/tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def track_success(self) -> None:
'$ld:ai:generation', self.context, self.__get_track_data(), 1
)

def track_openai(self, func):
def track_openai_metrics(self, func):
"""
Track OpenAI-specific operations.
Expand All @@ -228,7 +228,7 @@ def track_openai(self, func):
self.track_tokens(OpenAITokenUsage(result.usage))
return result

def track_bedrock_converse(self, res: dict) -> dict:
def track_bedrock_converse_metrics(self, res: dict) -> dict:
"""
Track AWS Bedrock conversation operations.
Expand Down

0 comments on commit 319f64d

Please sign in to comment.