MCPcopy
hub / github.com/llmware-ai/llmware / test_anthropic

Function test_anthropic

tests/models/test_cloud_model_providers.py:30–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28
29# Simple test to make sure we are reaching Anthropic
30def test_anthropic():
31 prompter = Prompt(llm_name="claude-instant-v1", llm_api_key=anthropic_api_key)
32 response = prompter.completion("what is artificial intelligence?")
33 llm_response = response["llm_response"]
34 assert 'artificial' in llm_response.lower()
35
36
37# Simple test to make sure we are reaching AI21

Callers

nothing calls this directly

Calls 2

completionMethod · 0.95
PromptClass · 0.90

Tested by

no test coverage detected