Skip to content

Commit 153a918

Browse files
committed
chore(config): Update .env.example
- Add BITO_CLI_PATH - Add ERNIE_API_KEY - Add ERNIE_SECRET_KEY - Remove OPENAI_API_KEY
1 parent 3dcbf45 commit 153a918

File tree

2 files changed

+32
-27
lines changed

2 files changed

+32
-27
lines changed

.env.example

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
APP_ENV=development
22
#APP_ENV=production
33

4-
OPENAI_API_KEY=sk-...
4+
BITO_CLI_PATH=bito
5+
6+
ERNIE_API_KEY=...
7+
ERNIE_SECRET_KEY=...
8+
9+
OPENAI_API_KEY=sk-...

config/ai-commit.php

+26-26
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,32 @@
7070
'timeout' => 120,
7171
],
7272
],
73+
'ernie_bot' => [
74+
'driver' => 'ernie_bot',
75+
'http_options' => [],
76+
'api_key' => env('ERNIE_API_KEY', '...'),
77+
'secret_key' => env('ERNIE_SECRET_KEY', '...'),
78+
'parameters' => [
79+
// 'messages' => 'required|array',
80+
'temperature' => 0.95,
81+
'top_p' => 0.8,
82+
'penalty_score' => 1.0,
83+
'stream' => true,
84+
],
85+
],
86+
'ernie_bot_turbo' => [
87+
'driver' => 'ernie_bot_turbo',
88+
'http_options' => [],
89+
'api_key' => env('ERNIE_API_KEY', '...'),
90+
'secret_key' => env('ERNIE_SECRET_KEY', '...'),
91+
'parameters' => [
92+
// 'messages' => 'required|array',
93+
'temperature' => 0.95,
94+
'top_p' => 0.8,
95+
'penalty_score' => 1.0,
96+
'stream' => true,
97+
],
98+
],
7399
'openai' => [
74100
'driver' => 'openai',
75101
'api_key' => env('OPENAI_API_KEY', 'sk-...'),
@@ -111,32 +137,6 @@
111137
// 'logit_bias' => null,
112138
],
113139
],
114-
'ernie_bot' => [
115-
'driver' => 'ernie_bot',
116-
'http_options' => [],
117-
'api_key' => env('ERNIE_API_KEY', '...'),
118-
'secret_key' => env('ERNIE_SECRET_KEY', '...'),
119-
'parameters' => [
120-
// 'messages' => 'required|array',
121-
'temperature' => 0.95,
122-
'top_p' => 0.8,
123-
'penalty_score' => 1.0,
124-
'stream' => true,
125-
],
126-
],
127-
'ernie_bot_turbo' => [
128-
'driver' => 'ernie_bot_turbo',
129-
'http_options' => [],
130-
'api_key' => env('ERNIE_API_KEY', '...'),
131-
'secret_key' => env('ERNIE_SECRET_KEY', '...'),
132-
'parameters' => [
133-
// 'messages' => 'required|array',
134-
'temperature' => 0.95,
135-
'top_p' => 0.8,
136-
'penalty_score' => 1.0,
137-
'stream' => true,
138-
],
139-
],
140140
],
141141

142142
/**

0 commit comments

Comments
 (0)