| 66 | } |
| 67 | |
| 68 | nlohmann::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 | |
| 79 | Messages OpenAITestFixture::createSampleConversation() { |
| 80 | return {createSystemMessage("You are a helpful assistant."), |
nothing calls this directly
no outgoing calls
no test coverage detected