Add literalai in the sidebar observability category (#6163)

* fix: add literalai in the sidebar

* fix: typo
This commit is contained in:
Willy Douhard 2024-10-11 15:48:47 +02:00 committed by GitHub
parent d28c6b390c
commit 8b00d2a25f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View file

@ -22,6 +22,7 @@ import os
os.environ["LITERAL_API_KEY"] = ""
os.environ['OPENAI_API_KEY']= ""
os.environ['LITERAL_BATCH_SIZE'] = "1" # You won't see logs appear until the batch is full and sent
litellm.success_callback = ["literalai"] # Log Input/Output to LiteralAI
litellm.failure_callback = ["literalai"] # Log Errors to LiteralAI
@ -46,6 +47,7 @@ import os
os.environ["LITERAL_API_KEY"] = ""
os.environ['OPENAI_API_KEY']= ""
os.environ['LITERAL_BATCH_SIZE'] = "1" # You won't see logs appear until the batch is full and sent
litellm.input_callback = ["literalai"] # Support other Literal AI decorators and prompt templates
litellm.success_callback = ["literalai"] # Log Input/Output to LiteralAI
@ -60,7 +62,8 @@ def my_agent(question: str):
model="gpt-3.5-turbo",
messages=[
{"role": "user", "content": question}
]
],
metadata={"literalai_parent_id": literalai_client.get_current_step().id}
)
return response

View file

@ -273,6 +273,7 @@ const sidebars = {
"observability/langfuse_integration",
"observability/gcs_bucket_integration",
"observability/langsmith_integration",
"observability/literalai_integration",
"observability/opentelemetry_integration",
"observability/logfire_integration",
"observability/arize_integration",