feat(backend): implement step 6 — AiService with OpenAI RestClient integration
This commit is contained in:
@@ -25,7 +25,7 @@ class AiServiceTest {
|
||||
@Test
|
||||
fun should_returnAiResponseText_when_apiCallSucceeds() {
|
||||
val rawResponse = "SUBJECT: Test Subject\nBODY:\nTest body content"
|
||||
stubRestClient(rawResponse)
|
||||
stubRestClient(rawResponse.replace("\n", "\\n"))
|
||||
|
||||
val result = service.generate("My test prompt")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user