Skip to content

Commit

Permalink
try async calls to http-client II
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-maschmann committed Jan 19, 2024
1 parent b19a6f8 commit 0678fc1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ object LLMServiceClient {
client.post("${llmServiceUrl}/$task") {
contentType(ContentType.Application.Json)
setBody(jsonMapper.writeValueAsString(request))
}
}.await().body()
}.body() as String
}.await()
} catch (e: Exception) {
throw LLMClientException()
}
Expand Down

0 comments on commit 0678fc1

Please sign in to comment.