Skip to content

Commit

Permalink
Update OpenAIChatCompletion.scala to sync with main
Browse files Browse the repository at this point in the history
  • Loading branch information
bvonodiripsa authored Oct 19, 2024
1 parent 9cf90b1 commit 9567a7b
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class OpenAIChatCompletion(override val uid: String) extends OpenAIServicesBase(
s"${getUrl}openai/deployments/${getValue(row, deploymentName)}/chat/completions"
}

override protected def prepareEntity: Row => Option[AbstractHttpEntity] = {
override protected[openai] def prepareEntity: Row => Option[AbstractHttpEntity] = {
r =>
lazy val optionalParams: Map[String, Any] = getOptionalParams(r)
val messages = r.getAs[Seq[Row]](getMessagesCol)
Expand Down Expand Up @@ -65,6 +65,3 @@ class OpenAIChatCompletion(override val uid: String) extends OpenAIServicesBase(
}

}



0 comments on commit 9567a7b

Please sign in to comment.