diff --git a/deps/pkl/APIServerRequest.pkl b/deps/pkl/APIServerRequest.pkl index 5b0b014..aab3726 100644 --- a/deps/pkl/APIServerRequest.pkl +++ b/deps/pkl/APIServerRequest.pkl @@ -31,3 +31,7 @@ function header(name: String): String = headers[name].base64Decoded else "" +// For consistency +function path(): String = path +function method(): String = method +function filetype(): String = filetype diff --git a/deps/pkl/LLM.pkl b/deps/pkl/LLM.pkl index 9f83aa2..5e8e07e 100644 --- a/deps/pkl/LLM.pkl +++ b/deps/pkl/LLM.pkl @@ -7,8 +7,11 @@ import "package://pkg.pkl-lang.org/pkl-go/pkl.golang@0.5.0#/go.pkl" resources: Mapping? class ResourceChat { - model: String = "llama3.1" + model: String = "llama3.2" prompt: String + visionModel: Boolean? = false + imageGeneration: Boolean? = false + generatedFile: String? jsonResponse: Boolean? = false jsonResponseKeys: Listing? response: String? @@ -30,3 +33,7 @@ function resource(id: String): ResourceChat = function response(id: String): String = resource(id).response function prompt(id: String): String = resource(id).prompt function jsonResponse(id: String): Boolean = resource(id).jsonResponse +function jsonResponseKeys(id: String): Boolean = resource(id).jsonResponseKeys +function visionModel(id: String): Boolean = resource(id).visionModel +function imageGeneration(id: String): Boolean = resource(id).imageGeneration +function generatedFile(id: String): String = resource(id).generatedFile diff --git a/gen/llm/ResourceChat.pkl.go b/gen/llm/ResourceChat.pkl.go index 9f8c7bf..c663244 100644 --- a/gen/llm/ResourceChat.pkl.go +++ b/gen/llm/ResourceChat.pkl.go @@ -6,6 +6,12 @@ type ResourceChat struct { Prompt string `pkl:"prompt"` + VisionModel *bool `pkl:"visionModel"` + + ImageGeneration *bool `pkl:"imageGeneration"` + + GeneratedFile *string `pkl:"generatedFile"` + JsonResponse *bool `pkl:"jsonResponse"` JsonResponseKeys *[]string `pkl:"jsonResponseKeys"`