-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathsettings.sample.php
More file actions
53 lines (44 loc) · 1.29 KB
/
settings.sample.php
File metadata and controls
53 lines (44 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
/**
* Rename this file to "settings.php" and add your OpenAI API key
*
* You can also add a system message if you want. A system message
* will change the behavior of ChatGPT. You can tell it to
* answer messages in a specific manner, act as someone else
* or provide any other context for the chat.
*/
return [
// add your OpenAI API key here
"api_key" => "",
// add an optional system message here
"system_message" => "",
// model to use in OpenAI API
"model" => "gpt-3.5-turbo",
// custom parameters for ChatGPT
"params" => [
//"temperature" => 0.9,
//"max_tokens" => 256,
],
// base uri of app (e.g. /my/app/path)
"base_uri" => "",
// storage type
"storage_type" => "session", // session or sql
// database settings (if using sql storage type)
"db" => [
"dsn" => "sqlite:db/chatwtf.db",
//"dsn" => "mysql:host=localhost;dbname=chatwtf",
"username" => null,
"password" => null,
],
// CodeInterpreter settings
"code_interpreter" => [
"enabled" => false,
"sandbox" => [
"enabled" => false,
"container" => "chatwtf-sandbox",
]
],
// ElevenLabs settings
"elevenlabs_api_key" => "",
"speech_enabled" => false,
];