Skip to content

Commit 38b2381

Browse files
committed
Formatting
1 parent 30ae190 commit 38b2381

File tree

2 files changed

+32
-10
lines changed

2 files changed

+32
-10
lines changed

openai-core/src/main/scala/io/cequence/openaiscala/domain/responsesapi/Input.scala

+31-9
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,23 @@ import io.cequence.openaiscala.domain.ChatRole
66
* Input types hierarchy:
77
*
88
* - Text input (string)
9-
* - Input item list (array) \|- Input message (object) - content, role \|- Content - Text
10-
* input (string) or Input item content list (array) \|- Input item content \|- Text input
11-
* (object) \|- Image input (object) \|- File input (object) \|- Item (object) \|- Input
12-
* message (object) - content, role, status \|- Output message (object) \|- File search
13-
* tool call (object) \|- Computer tool call (object) \|- Computer tool call output
14-
* (object) \|- Web search tool call (object) \|- Function tool call (object) \|- Function
15-
* tool call output (object) \|- Reasoning (object) \|- Item reference (object)
9+
* - Input item list (array)
10+
* - Input message (object) - content, role
11+
* - Content - Text input (string) or Input item content list (array)
12+
* - Text input (object)
13+
* - Image input (object)
14+
* - File input (object)
15+
* - Item (object)
16+
* - Input message (object) - content, role, status
17+
* - Output message (object)
18+
* - File search tool call (object)
19+
* - Computer tool call (object)
20+
* - Computer tool call output (object)
21+
* - Web search tool call (object)
22+
* - Function tool call (object)
23+
* - Function tool call output (object)
24+
* - Reasoning (object)
25+
* - Item reference (object)
1626
*/
1727
trait Input
1828

@@ -73,15 +83,27 @@ object Input {
7383
id: String,
7484
pendingSafetyChecks: Seq[tools.PendingSafetyCheck] = Nil,
7585
status: ModelStatus
76-
) = tools.ComputerToolCall(action, callId, id, pendingSafetyChecks, status)
86+
) = tools.ComputerToolCall(
87+
action,
88+
callId,
89+
id,
90+
pendingSafetyChecks,
91+
status
92+
)
7793

7894
def ofComputerToolCallOutput(
7995
callId: String,
8096
output: tools.ComputerScreenshot,
8197
acknowledgedSafetyChecks: Seq[tools.AcknowledgedSafetyCheck] = Nil,
8298
id: Option[String] = None,
8399
status: Option[ModelStatus] = None
84-
) = tools.ComputerToolCallOutput(callId, output, acknowledgedSafetyChecks, id, status)
100+
) = tools.ComputerToolCallOutput(
101+
callId,
102+
output,
103+
acknowledgedSafetyChecks,
104+
id,
105+
status
106+
)
85107

86108
def ofWebSearchToolCall(
87109
id: String,

openai-examples/src/main/scala/io/cequence/openaiscala/examples/googlegemini/GoogleGeminiCreateChatCompletion.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import scala.concurrent.Future
1010
/**
1111
* Requires `GOOGLE_API_KEY` environment variable to be set.
1212
*/
13-
// TODO: remove this... we have a better provider for Gemini. See [[GoogleGeminiCreateChatCompletionJSONWithOpenAIAdapter]]
13+
// TODO: remove this... we have a better provider for Gemini. See [[GoogleGeminiCreateChatCompletionJSONWithOpenAIAdapter]]
1414
object GoogleGeminiCreateChatCompletion extends ExampleBase[OpenAIChatCompletionService] {
1515

1616
override val service: OpenAIChatCompletionService = ChatCompletionProvider.gemini

0 commit comments

Comments
 (0)