Skip to content

Commit 05eee73

Browse files
committed
fix: Add missing dependency and make print statement more accurate
1 parent 9c79622 commit 05eee73

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

examples/chat_observability/chat_observability_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ async def async_main():
8282
)
8383

8484
if not chat:
85-
print(f"*** AI chat configuration is not enabled for key: {ai_config_key}")
85+
print(f"*** Failed to create chat for key: {ai_config_key}")
8686
return
8787

8888
user_input_1 = "What is feature flagging in 2 sentences?"

examples/chat_observability/pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ python = "^3.10"
1515
python-dotenv = ">=1.0.0"
1616
launchdarkly-server-sdk-ai = "^0.18.0"
1717
launchdarkly-observability = ">=0.1.0"
18+
launchdarkly-server-sdk-ai-openai = ">=0.4.0"
19+
launchdarkly-server-sdk-ai-langchain = ">=0.5.0"
1820
openai = ">=0.2.0"
1921

2022
[build-system]

examples/judge/chat_judge_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ async def async_main():
5656
})
5757

5858
if not chat:
59-
print(f"*** AI chat configuration is not enabled for key: {ai_config_key}")
59+
print(f"*** Failed to create chat for key: {ai_config_key}")
6060
return
6161

6262
print("\n*** Starting chat with automatic judge evaluation:")

0 commit comments

Comments
 (0)