MCPcopy Create free account
hub / github.com/antirez/llama.cpp-deepseek-v4-flash / test_chat

Function test_chat

scripts/server-test-model.py:115–131  ·  view source on GitHub ↗
(url, stream)

Source from the content-addressed store, hash-verified

113
114
115def test_chat(url, stream):
116 logger.info(f"\n=== Testing Chat (Stream={stream}) ===\n")
117 messages = [{"role": "user", "content": "What is the capital of France?"}]
118 result = run_query(url, messages, stream=stream)
119
120 if result:
121 if result["content"]:
122 logger.info("PASS: Output received.\n")
123 else:
124 logger.info("WARN: No content received (valid if strict tool call, but unexpected here).\n")
125
126 if result.get("reasoning_content"):
127 logger.info(f"INFO: Reasoning content detected ({len(result['reasoning_content'])} chars).\n")
128 else:
129 logger.info("INFO: No reasoning content detected (Standard model behavior).\n")
130 else:
131 logger.info("FAIL: No result.\n")
132
133
134def test_tool_call(url, stream):

Callers 1

mainFunction · 0.85

Calls 2

run_queryFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected