forked from unconv/chat-wtf
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.sample.php
More file actions
38 lines (31 loc) · 985 Bytes
/
settings.sample.php
File metadata and controls
38 lines (31 loc) · 985 Bytes
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
<?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",
// 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,
],
// ElevenLabs settings
"elevenlabs_api_key" => "",
"speech_enabled" => false,
];