Skip to content

Commit 980cdf3

Browse files
authored
Merge pull request #341 from OpenFn/fix-status-script
Fix status check
2 parents fb896b3 + 0026731 commit 980cdf3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

services/status/status.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,12 @@ def test_pinecone_key(api_key):
2424

2525
def test_anthropic_key(api_key):
2626
try:
27-
Anthropic(api_key=api_key).models.list()
27+
client = Anthropic(api_key=api_key)
28+
client.messages.create(
29+
model="claude-3-5-haiku-20241022",
30+
max_tokens=1,
31+
messages=[{"role": "user", "content": "test"}]
32+
)
2833
return True
2934
except Exception:
3035
return False

0 commit comments

Comments
 (0)