Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerjthomas9 committed Feb 23, 2024
1 parent 20da729 commit 2b6b9d9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/GoogleGenAI.jl
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ function generate_content(
)
endpoint = "models/$model_name:generateContent"

generation_config = Dict{String, Any}()
generation_config = Dict{String,Any}()
for (key, value) in kwargs
if key != :safety_settings
if key != :safety_settings
generation_config[string(key)] = value
end
end
Expand All @@ -96,9 +96,9 @@ function generate_content(
body = Dict(
"contents" => [Dict("parts" => [Dict("text" => input)])],
"generationConfig" => generation_config,
"safetySettings" => safety_settings
"safetySettings" => safety_settings,
)

response = _request(provider, endpoint, :POST, body)
return _parse_response(response)
end
Expand Down

0 comments on commit 2b6b9d9

Please sign in to comment.