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

Method createErrorResponse

tests/utils/test_fixtures.cpp:58–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58nlohmann::json OpenAITestFixture::createErrorResponse(
59 int /* status_code */,
60 const std::string& message) {
61 return nlohmann::json{{"error",
62 {{"message", message},
63 {"type", "invalid_request_error"},
64 {"param", nullptr},
65 {"code", nullptr}}}};
66}
67
68nlohmann::json OpenAITestFixture::createStreamResponse() {
69 return nlohmann::json{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected