-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented Scripts for better control of controlling chat sequences …
…generated by Instructor
- Loading branch information
1 parent
98741d8
commit b49c9df
Showing
39 changed files
with
1,327 additions
and
349 deletions.
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
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
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 |
---|---|---|
|
@@ -21,7 +21,7 @@ enum UserType : string { | |
} | ||
|
||
class User { | ||
public int $age; | ||
public ?int $age; | ||
public string $name; | ||
public string $username; | ||
public UserType $role; | ||
|
@@ -45,8 +45,12 @@ class User { | |
messages: "Jason (@jxnlco) is 25 years old and is the admin of this project. He likes playing football and reading books.", | ||
responseModel: User::class, | ||
model: 'llama3-8b-8192', | ||
options: ['stream' => false], | ||
examples: [[ | ||
'input' => 'Ive got email Frank - their developer. He asked to come back to him [email protected]. Btw, he plays on drums!', | ||
'output' => ['age' => null, 'name' => 'Frank', 'role' => 'developer', 'hobbies' => ['playing drums'],], | ||
]], | ||
mode: Mode::Json, | ||
options: ['stream' => false] | ||
); | ||
|
||
print("Completed response model:\n\n"); | ||
|
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
Oops, something went wrong.