|
80 | 80 | * The list of generators. |
81 | 81 | */ |
82 | 82 | 'generators' => [ |
83 | | - 'openai' => [ |
| 83 | + 'openaichat' => [ |
84 | 84 | 'driver' => 'openai', |
85 | 85 | 'http_options' => [ |
86 | | - // GuzzleHttp\RequestOptions::PROXY => 'http://localhost:8125/v1', |
| 86 | + // guzzlehttp\requestoptions::proxy => 'https://proxy.com/v1', |
87 | 87 | ], |
88 | 88 | 'api_key' => env('OPENAI_API_KEY', 'sk-...'), |
89 | 89 | 'completion_parameters' => [ |
90 | | - 'model' => 'text-davinci-003', // ['text-davinci-003', 'text-davinci-002'] |
91 | | - // 'prompt' => $prompt, |
92 | | - 'suffix' => null, |
| 90 | + 'model' => 'gpt-3.5-turbo', // ['gpt-3.5-turbo', 'gpt-3.5-turbo-0301'] |
| 91 | + // 'messages' => 'required|array', |
93 | 92 | 'max_tokens' => 500, |
94 | 93 | 'temperature' => 0.0, |
95 | 94 | 'top_p' => 1.0, |
96 | 95 | 'n' => 1, |
97 | 96 | 'stream' => true, |
98 | | - 'logprobs' => null, |
99 | | - 'echo' => false, |
100 | 97 | 'stop' => null, |
101 | 98 | 'presence_penalty' => 0, |
102 | 99 | 'frequency_penalty' => 0, |
103 | | - 'best_of' => 1, |
104 | 100 | // 'logit_bias' => null, |
105 | 101 | 'user' => Illuminate\Support\Str::uuid()->toString(), |
106 | 102 | ], |
107 | 103 | ], |
108 | | - 'openaichat' => [ |
| 104 | + 'openai' => [ |
109 | 105 | 'driver' => 'openai', |
110 | 106 | 'api_key' => env('OPENAI_API_KEY', 'sk-...'), |
111 | 107 | 'completion_parameters' => [ |
112 | | - 'model' => 'gpt-3.5-turbo', // ['gpt-3.5-turbo', 'gpt-3.5-turbo-0301'] |
113 | | - // 'messages' => $messages, |
| 108 | + 'model' => 'text-davinci-003', // ['text-davinci-003', 'text-davinci-002'] |
| 109 | + // 'prompt' => 'string|array', |
| 110 | + 'suffix' => null, |
114 | 111 | 'max_tokens' => 500, |
115 | 112 | 'temperature' => 0.0, |
116 | 113 | 'top_p' => 1.0, |
117 | 114 | 'n' => 1, |
118 | 115 | 'stream' => true, |
| 116 | + 'logprobs' => null, |
| 117 | + 'echo' => false, |
119 | 118 | 'stop' => null, |
120 | 119 | 'presence_penalty' => 0, |
121 | 120 | 'frequency_penalty' => 0, |
| 121 | + 'best_of' => 1, |
122 | 122 | // 'logit_bias' => null, |
123 | 123 | 'user' => Illuminate\Support\Str::uuid()->toString(), |
124 | 124 | ], |
|
0 commit comments