File tree 2 files changed +28
-2
lines changed
2 files changed +28
-2
lines changed Original file line number Diff line number Diff line change 16
16
17
17
final class LLM implements LLMInterface
18
18
{
19
- protected array $ defaultOptions = [
19
+ private array $ defaultOptions = [
20
20
Option::Temperature->value => 0.8 ,
21
21
Option::MaxTokens->value => 120 ,
22
22
Option::TopP->value => null ,
@@ -27,7 +27,7 @@ final class LLM implements LLMInterface
27
27
Option::FunctionCall->value => null ,
28
28
Option::Functions->value => null ,
29
29
Option::User->value => null ,
30
- Option::Model->value => ' gpt-4o-mini ' ,
30
+ Option::Model->value => OpenAIModel::Gpt4oMini-> value ,
31
31
];
32
32
33
33
public function __construct (
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ declare (strict_types=1 );
4
+
5
+ namespace LLM \Agents \OpenAI \Client ;
6
+
7
+ enum OpenAIModel: string
8
+ {
9
+ case Gpt4o = 'gpt-4o ' ;
10
+ case Gpt4oLatest = 'chatgpt-4o-latest ' ;
11
+ case Gpt4o20240513 = 'gpt-4o-2024-05-13 ' ;
12
+ case Gpt4o20240806 = 'gpt-4o-2024-08-06 ' ;
13
+
14
+ case Gpt4oMini = 'gpt-4o-mini ' ;
15
+ case Gpt4oMini20240718 = 'gpt-4o-mini-2024-07-18 ' ;
16
+
17
+ case Gpt4Turbo = 'gpt-4-turbo ' ;
18
+ case Gpt4TurboPreview = 'gpt-4-turbo-preview ' ;
19
+
20
+ case Gpt4 = 'gpt-4 ' ;
21
+ case Gpt40613 = 'gpt-4-0613 ' ;
22
+
23
+ case Gpt3Turbo = 'gpt-3.5-turbo ' ;
24
+ case Gpt3Turbo1106 = 'gpt-3.5-turbo-1106 ' ;
25
+ case Gpt3TurboInstruct = 'gpt-3.5-turbo-instruct ' ;
26
+ }
You can’t perform that action at this time.
0 commit comments