-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added vision and image gen attributes to LLM
- Loading branch information
Showing
3 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,8 +7,11 @@ import "package://pkg.pkl-lang.org/pkl-go/[email protected]#/go.pkl" | |
resources: Mapping<String, ResourceChat>? | ||
|
||
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<String>? | ||
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 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.