Skip to content

Commit

Permalink
Fix argument usage not overriding defaults in Google AI Studio & Vert…
Browse files Browse the repository at this point in the history
…exAI templates (#268)
  • Loading branch information
cybermaggedon authored Jan 15, 2025
1 parent 1280af3 commit acdd3ef
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions templates/components/googleaistudio.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ local prompts = import "prompts/mixtral.jsonnet";

{

with:: function(key, value)
self + {
["googleaistudio-" + key]:: value,
},

"googleaistudio-max-output-tokens":: 4096,
"googleaistudio-temperature":: 0.0,
"googleaistudio-model":: "gemini-1.5-flash-002",
Expand Down
5 changes: 5 additions & 0 deletions templates/components/vertexai.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ local prompts = import "prompts/mixtral.jsonnet";

{

with:: function(key, value)
self + {
["vertexai-" + key]:: value,
},

"vertexai-model":: "gemini-1.0-pro-001",
"vertexai-private-key":: "/vertexai/private.json",
"vertexai-region":: "us-central1",
Expand Down

0 comments on commit acdd3ef

Please sign in to comment.