Skip to content

Commit

Permalink
229 - Traces (#230)
Browse files Browse the repository at this point in the history
  • Loading branch information
buckyroberts committed Aug 17, 2024
1 parent fe970c1 commit 6611cb6
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 17 deletions.
103 changes: 88 additions & 15 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ jinja2 = "^3.1.3"
sentry-sdk = {extras = ["django"], version = "^1.45.0"}
django-restql = "^0.15.4"
discord-py = "^2.4.0"
promptlayer = "^1.0.9"
anthropic = "^0.32.0"
promptlayer = "^1.0.14"

[tool.poetry.group.dev.dependencies]
colorlog = "^6.7.0"
Expand Down
2 changes: 1 addition & 1 deletion thenewboston/general/clients/llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def promptlayer_client(self):
if anthropic_api_key := self.anthropic_api_key:
os.environ['ANTHROPIC_API_KEY'] = anthropic_api_key

return PromptLayer(api_key=self.promptlayer_api_key)
return PromptLayer(api_key=self.promptlayer_api_key, enable_tracing=True, workspace_id=8353)

@property
def openai_client(self):
Expand Down

0 comments on commit 6611cb6

Please sign in to comment.