forked from KordingLab/chatify-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.example.py
24 lines (18 loc) · 967 Bytes
/
config.example.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from pydantic_settings import BaseSettings
class OpenAIConfig(BaseSettings):
token: str = "sk-###"
organization: str = "org-###"
class ApplicationSettings(BaseSettings):
# A secret that must be provided in the header of the request to create a
# new prompt type. This is a simple (but not very secure) way to prevent
# random people from creating assignments (which could be used to abuse
# your OpenAI API key)
prompt_creation_secret: str = "Dude I'm totally allowed to make new prompts"
# AWS credentials and table names for storing assignments and responses.
# If you're using local (e.g., JSON-based) stores, you can set these all to
# empty strings or ignore them entirely.
aws_access_key_id: str = "AKIA###"
aws_secret_access_key: str = "###"
aws_region: str = "us-east-1"
# The table name for storing prompts. Will be created if it doesn't exist.
prompts_table: str = "llm4edu_chatify_prompts"