Changed API to allow importing config from files

This commit is contained in:
Cyber MacGeddon 2024-09-06 09:01:16 +01:00
parent ae8b612b98
commit d0db893a95
3 changed files with 31 additions and 20 deletions

View file

@ -15,7 +15,13 @@ local prompts = import "prompts/mixtral.jsonnet";
create:: function(engine)
local cfgVol = engine.configVolume("./vertexai");
local cfgVol = engine.configVolume(
"vertexai-creds",
"./vertexai",
{
"private.json": importstr "vertexai/private.json",
}
);
local container =
engine.container("text-completion")