Skip to content

Commit 060e4c4

Browse files
committed
wip
1 parent 21c31ee commit 060e4c4

File tree

4 files changed

+3
-15
lines changed

4 files changed

+3
-15
lines changed

config/cortex.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@
324324
* Whether to check a models features before attempting to use it.
325325
* Set to true to ensure a given model feature is available.
326326
*/
327-
'ignore_features' => env('CORTEX_MODEL_INFO_IGNORE_FEATURES', false),
327+
'ignore_features' => env('CORTEX_MODEL_INFO_IGNORE_FEATURES', true),
328328

329329
'providers' => [
330330
OllamaModelInfoProvider::class => [

scratchpad.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
$agent = Cortex::agent()
120120
->withName('weather_agent')
121121
->withPrompt('You are a weather agent. You tell the weather in {location}.')
122-
->withLLM('ollama:gpt-oss:20b')
122+
->withLLM('lmstudio/openai/gpt-oss-20b')
123123
->withTools([
124124
OpenMeteoWeatherTool::class,
125125
])

workbench/app/Providers/CortexServiceProvider.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,8 @@ public function boot(): void
8383

8484
Cortex::registerAgent(new Agent(
8585
name: 'code_generator',
86-
// TODO: The prompt variables should not be needed here, and
87-
// only parsed during invocation.
8886
prompt: Cortex::prompt()->factory('blade')->make('example'),
87+
// prompt: 'blade/example',
8988
));
9089
}
9190
}
Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,7 @@
11
<?php
22
3-
use Cortex\JsonSchema\Schema;
4-
53
use function Cortex\Prompts\llm;
6-
use function Cortex\Prompts\inputSchema;
7-
8-
// Define the input schema
9-
inputSchema([
10-
Schema::string('name')->required(),
11-
Schema::string('language')->required(),
12-
]);
134
14-
// Configure the LLM
155
llm('lmstudio', 'openai/gpt-oss-20b', [
166
'temperature' => 0.7,
177
'max_tokens' => 1000,
@@ -25,4 +15,3 @@
2515
@user
2616
Write a hello world program in {{ $language }} for a person named {{ $name }}.
2717
@enduser
28-

0 commit comments

Comments
 (0)