Skip to content

Commit

Permalink
Pass requestOptions from API surface into createGenerativeModel
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewheard committed Jan 22, 2025
1 parent 1637edc commit ff55e55
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ class FirebaseVertexAI extends FirebasePluginPlatform {
tools: tools,
toolConfig: toolConfig,
systemInstruction: systemInstruction,
requestOptions: requestOptions,
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ GenerativeModel createGenerativeModel({
tools: tools,
toolConfig: toolConfig,
systemInstruction: systemInstruction,
requestOptions: requestOptions,
);

/// Creates a model with an overridden [ApiClient] for testing.
Expand All @@ -330,6 +331,7 @@ GenerativeModel createModelWithClient({
List<SafetySetting>? safetySettings,
List<Tool>? tools,
ToolConfig? toolConfig,
RequestOptions? requestOptions,
}) =>
GenerativeModel._constructTestModel(
model: model,
Expand All @@ -342,4 +344,5 @@ GenerativeModel createModelWithClient({
systemInstruction: systemInstruction,
tools: tools,
toolConfig: toolConfig,
requestOptions: requestOptions,
apiClient: client);

0 comments on commit ff55e55

Please sign in to comment.