Skip to content

Commit b0997cd

Browse files
committed
small changes
1 parent 2e4cef1 commit b0997cd

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

firebase-vertexai/src/main/kotlin/com/google/firebase/vertexai/LiveGenerativeModel.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ internal constructor(
4848
private val modelName: String,
4949
private val config: LiveGenerationConfig? = null,
5050
private val tools: List<Tool>? = null,
51-
private val toolConfig: ToolConfig? = null,
5251
private val systemInstruction: Content? = null,
5352
private val location: String,
5453
private val controller: APIController
@@ -69,7 +68,6 @@ internal constructor(
6968
modelName,
7069
config,
7170
tools,
72-
toolConfig,
7371
systemInstruction,
7472
location,
7573
APIController(
@@ -96,7 +94,6 @@ internal constructor(
9694
this.modelName,
9795
this.config?.toInternal(),
9896
this.tools?.map { it.toInternal() },
99-
this.toolConfig?.toInternal(),
10097
this.systemInstruction?.toInternal()
10198
)
10299
.toInternal()

firebase-vertexai/src/main/kotlin/com/google/firebase/vertexai/type/BidiGenerateContentClientMessage.kt

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ internal class BidiGenerateContentClientMessage(
2424
val model: String,
2525
val generationConfig: LiveGenerationConfig.Internal?,
2626
val tools: List<Tool.Internal>?,
27-
val toolConfig: ToolConfig.Internal?,
2827
val systemInstruction: Content.Internal?
2928
) {
3029

@@ -35,19 +34,10 @@ internal class BidiGenerateContentClientMessage(
3534
val model: String,
3635
val generationConfig: LiveGenerationConfig.Internal?,
3736
val tools: List<Tool.Internal>?,
38-
val toolConfig: ToolConfig.Internal?,
3937
val systemInstruction: Content.Internal?
4038
)
4139
}
4240

4341
fun toInternal() =
44-
Internal(
45-
Internal.BidiGenerateContentSetup(
46-
model,
47-
generationConfig,
48-
tools,
49-
toolConfig,
50-
systemInstruction
51-
)
52-
)
42+
Internal(Internal.BidiGenerateContentSetup(model, generationConfig, tools, systemInstruction))
5343
}

0 commit comments

Comments
 (0)