Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
bburdiliak committed Aug 16, 2024
1 parent 7a12c09 commit 2246201
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import io.cequence.wsclient.service.WSClient
import io.cequence.wsclient.service.WSClientWithEngineTypes.WSClientWithEngine
import play.api.libs.json.{JsValue, Json}

import scala.collection.immutable
import scala.concurrent.Future

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,14 @@ trait OpenAIServiceConsts {
max_tokens = Some(1000)
)

def createJsonChatCompletion(jsonSchema: Map[String, Any]) = CreateChatCompletionSettings(
model = ModelId.gpt_4o_2024_08_06,
max_tokens = Some(1000),
strict = true,
response_format_type = Some(ChatCompletionResponseFormatType.json_schema),
jsonSchema = Some(jsonSchema)
)
def createJsonChatCompletion(jsonSchema: Map[String, Any]): CreateChatCompletionSettings =
CreateChatCompletionSettings(
model = ModelId.gpt_4o_2024_08_06,
max_tokens = Some(1000),
strict = true,
response_format_type = Some(ChatCompletionResponseFormatType.json_schema),
jsonSchema = Some(jsonSchema)
)

val CreateChatFunCompletion = CreateChatCompletionSettings(
model = ModelId.gpt_3_5_turbo_1106,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package io.cequence.openaiscala.examples

import akka.stream.scaladsl.Sink
import io.cequence.openaiscala.domain._
import io.cequence.openaiscala.domain.settings.CreateChatCompletionSettings
import io.cequence.openaiscala.examples.fixtures.TestFixtures
import io.cequence.openaiscala.service.{OpenAIServiceConsts, OpenAIServiceFactory}
import io.cequence.openaiscala.service.OpenAIStreamedServiceImplicits._
Expand Down

0 comments on commit 2246201

Please sign in to comment.