Skip to content

Commit

Permalink
chore(config): Update .env.example
Browse files Browse the repository at this point in the history
- Add BITO_CLI_PATH
- Add ERNIE_API_KEY
- Add ERNIE_SECRET_KEY
- Remove OPENAI_API_KEY
  • Loading branch information
guanguans committed Aug 18, 2023
1 parent 3dcbf45 commit 153a918
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 27 deletions.
7 changes: 6 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
APP_ENV=development
#APP_ENV=production

OPENAI_API_KEY=sk-...
BITO_CLI_PATH=bito

ERNIE_API_KEY=...
ERNIE_SECRET_KEY=...

OPENAI_API_KEY=sk-...
52 changes: 26 additions & 26 deletions config/ai-commit.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,32 @@
'timeout' => 120,
],
],
'ernie_bot' => [
'driver' => 'ernie_bot',
'http_options' => [],
'api_key' => env('ERNIE_API_KEY', '...'),
'secret_key' => env('ERNIE_SECRET_KEY', '...'),
'parameters' => [
// 'messages' => 'required|array',
'temperature' => 0.95,
'top_p' => 0.8,
'penalty_score' => 1.0,
'stream' => true,
],
],
'ernie_bot_turbo' => [
'driver' => 'ernie_bot_turbo',
'http_options' => [],
'api_key' => env('ERNIE_API_KEY', '...'),
'secret_key' => env('ERNIE_SECRET_KEY', '...'),
'parameters' => [
// 'messages' => 'required|array',
'temperature' => 0.95,
'top_p' => 0.8,
'penalty_score' => 1.0,
'stream' => true,
],
],
'openai' => [
'driver' => 'openai',
'api_key' => env('OPENAI_API_KEY', 'sk-...'),
Expand Down Expand Up @@ -111,32 +137,6 @@
// 'logit_bias' => null,
],
],
'ernie_bot' => [
'driver' => 'ernie_bot',
'http_options' => [],
'api_key' => env('ERNIE_API_KEY', '...'),
'secret_key' => env('ERNIE_SECRET_KEY', '...'),
'parameters' => [
// 'messages' => 'required|array',
'temperature' => 0.95,
'top_p' => 0.8,
'penalty_score' => 1.0,
'stream' => true,
],
],
'ernie_bot_turbo' => [
'driver' => 'ernie_bot_turbo',
'http_options' => [],
'api_key' => env('ERNIE_API_KEY', '...'),
'secret_key' => env('ERNIE_SECRET_KEY', '...'),
'parameters' => [
// 'messages' => 'required|array',
'temperature' => 0.95,
'top_p' => 0.8,
'penalty_score' => 1.0,
'stream' => true,
],
],
],

/**
Expand Down

0 comments on commit 153a918

Please sign in to comment.