Skip to content

Commit f6d2c1e

Browse files
committed
ChatCompletionBodyMaker refactoring - dependence on WSClient removed
1 parent e9a9ef9 commit f6d2c1e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

openai-client/src/main/scala/io/cequence/openaiscala/service/impl/OpenAIChatCompletionServiceImpl.scala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ private[service] trait OpenAIChatCompletionServiceImpl
4848

4949
trait ChatCompletionBodyMaker {
5050

51-
this: WSClient =>
52-
5351
private val o1Models = Set(
5452
ModelId.o1_preview,
5553
ModelId.o1_preview_2024_09_12,
@@ -80,7 +78,7 @@ trait ChatCompletionBodyMaker {
8078
else
8179
settings
8280

83-
jsonBodyParams(
81+
JsonUtil.jsonBodyParams(
8482
Param.messages -> Some(messageJsons),
8583
Param.model -> Some(settingsFinal.model),
8684
Param.temperature -> settingsFinal.temperature,

0 commit comments

Comments
 (0)