Skip to content

Commit

Permalink
to squashd
Browse files Browse the repository at this point in the history
  • Loading branch information
PM84 committed Sep 8, 2024
1 parent 471400f commit 717ca87
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions classes/manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public function perform_request(string $prompttext, array $options = []): prompt
'local_ai_manager',
[
'count' => $this->configmanager->get_max_requests($this->purpose, $userinfo->get_role()),
'period' => $period
'period' => $period,
]
),
''
Expand Down Expand Up @@ -188,7 +188,7 @@ public function perform_request(string $prompttext, array $options = []): prompt
[
'component' => $options['component'],
'contextid' => $options['contextid'],
'itemid' => $options['itemid']
'itemid' => $options['itemid'],
]
)) {
$existingitemid = $options['itemid'];
Expand Down
2 changes: 1 addition & 1 deletion purposes/genai/classes/purpose.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function get_request_options(array $options): array {

if (array_key_exists('messages', $options)) {
$messages = [];
foreach ($options['messages'] as $message) {
foreach ($options['messages'] as $message) {
switch ($message['role']) {
case 'user':
$messages[] = ['sender' => 'user', 'message' => $message['content']];
Expand Down
2 changes: 1 addition & 1 deletion tools/ollama/classes/connector.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function get_models_by_purpose(): array {
'mixtral',
'dolphin-mixtral',
'llava',
'tinyllama'
'tinyllama',
];
return [
'chat' => $textmodels,
Expand Down

0 comments on commit 717ca87

Please sign in to comment.