MCPcopy Create free account
hub / github.com/ClickHouse/ai-sdk-cpp / createStreamResponse

Method createStreamResponse

tests/utils/test_fixtures.cpp:68–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68nlohmann::json OpenAITestFixture::createStreamResponse() {
69 return nlohmann::json{
70 {"id", "chatcmpl-stream123"},
71 {"object", "chat.completion.chunk"},
72 {"created", 1234567890},
73 {"model", kTestModel},
74 {"choices", nlohmann::json::array({{{"index", 0},
75 {"delta", {{"content", "Hello"}}},
76 {"finish_reason", nullptr}}})}};
77}
78
79Messages OpenAITestFixture::createSampleConversation() {
80 return {createSystemMessage("You are a helpful assistant."),

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected