Skip to content

Commit

Permalink
add openai config
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastienReuiller committed Oct 18, 2023
1 parent c598a21 commit aa4bba1
Show file tree
Hide file tree
Showing 7 changed files with 456 additions and 2 deletions.
8 changes: 8 additions & 0 deletions config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -857,3 +857,11 @@
# ------------------------------------------------------------------------------
MTCAPTCHA_PRIVATE_KEY = env.str("MTCAPTCHA_PRIVATE_KEY", "")
MTCAPTCHA_PUBLIC_KEY = env.str("MTCAPTCHA_PUBLIC_KEY", "")


# OPENAI
# ------------------------------------------------------------------------------
OPENAI_ORG = env.str("OPENAI_ORG", "")
OPENAI_API_BASE = env.str("OPENAI_API_BASE", "")
OPENAI_API_KEY = env.str("OPENAI_API_KEY", "")
OPENAI_MODEL = env.str("OPENAI_MODEL", "")
7 changes: 7 additions & 0 deletions env.default.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,10 @@ export TRACKER_HOST="https://example.com"
# ########################
export MTCAPTCHA_PRIVATE_KEY=""
export MTCAPTCHA_PUBLIC_KEY=""

# OPENAI
# ########################
export OPENAI_ORG=""
export OPENAI_API_BASE=""
export OPENAI_API_KEY=""
export OPENAI_MODEL=""
7 changes: 7 additions & 0 deletions env.docker_default.local
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,10 @@ MAILJET_NEWSLETTER_CONTACT_LIST_BUYER_ID=
# ########################
MTCAPTCHA_PRIVATE_KEY=
MTCAPTCHA_PUBLIC_KEY=

# OPENAI
# ########################
OPENAI_ORG=
OPENAI_API_BASE=
OPENAI_API_BASE=
OPENAI_MODEL=
417 changes: 416 additions & 1 deletion poetry.lock

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ whitenoise = "6.3.0"
xlwt = "1.3.0"
sib-api-v3-sdk = "^7.6.0"
shortuuid = "^1.0.11"
openai = "^0.28.1"

[tool.poetry.group.dev.dependencies]
black = "22.10.0"
Expand Down
8 changes: 8 additions & 0 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
aiohttp==3.8.6 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
aiosignal==1.3.1 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
anyascii==0.3.2 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
appnope==0.1.3 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0" and sys_platform == "darwin"
asgiref==3.7.2 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
asttokens==2.2.1 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
async-timeout==4.0.3 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
attrs==23.1.0 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
backcall==0.2.0 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
beautifulsoup4==4.11.2 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
Expand Down Expand Up @@ -58,6 +61,7 @@ faker==19.3.0 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0
filelock==3.12.2 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
filetype==1.2.0 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
flake8==3.9.2 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
frozenlist==1.4.0 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
h11==0.14.0 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
html5lib==1.1 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
hubspot-api-client==6.1.0 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
Expand All @@ -77,8 +81,10 @@ l18n==2021.3 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
libsass==0.22.0 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
matplotlib-inline==0.1.6 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
mccabe==0.6.1 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
multidict==6.0.4 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
mypy-extensions==1.0.0 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
nodeenv==1.8.0 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
openai==0.28.1 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
openpyxl==3.1.2 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
outcome==1.2.0 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
packaging==23.1 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
Expand Down Expand Up @@ -132,6 +138,7 @@ tblib==2.0.0 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
telepath==0.3.1 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
toml==0.10.2 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
tomli==1.2.3 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
tqdm==4.66.1 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
traitlets==5.9.0 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
trio-websocket==0.10.3 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
trio==0.22.2 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
Expand All @@ -149,3 +156,4 @@ willow[heif]==1.6.1 ; python_full_version >= "3.10.4" and python_full_version <
wrapt==1.15.0 ; python_full_version >= "3.10.4" and python_version < "4"
wsproto==1.2.0 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
xlwt==1.3.0 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
yarl==1.9.2 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
10 changes: 9 additions & 1 deletion requirements/staging.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
aiohttp==3.8.6 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
aiosignal==1.3.1 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
anyascii==0.3.2 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
appnope==0.1.3 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0" and sys_platform == "darwin"
asgiref==3.7.2 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
asttokens==2.2.1 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
async-timeout==4.0.3 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
attrs==23.1.0 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
backcall==0.2.0 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
beautifulsoup4==4.11.2 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
Expand All @@ -10,7 +13,7 @@ boto==2.49.0 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
botocore==1.31.21 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
certifi==2023.7.22 ; python_full_version >= "3.10.4" and python_version < "4"
charset-normalizer==3.2.0 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
colorama==0.4.6 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0" and sys_platform == "win32"
colorama==0.4.6 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0" and (sys_platform == "win32" or platform_system == "Windows")
crawlerdetect==0.1.5 ; python_full_version >= "3.10.4" and python_version < "4"
decorator==5.1.1 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
defusedxml==0.7.1 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
Expand Down Expand Up @@ -46,6 +49,7 @@ elastic-apm==6.18.0 ; python_full_version >= "3.10.4" and python_version < "4"
et-xmlfile==1.1.0 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
executing==1.2.0 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
filetype==1.2.0 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
frozenlist==1.4.0 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
html5lib==1.1 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
hubspot-api-client==6.1.0 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
huey==2.4.4 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
Expand All @@ -59,6 +63,8 @@ jsonschema==4.19.0 ; python_full_version >= "3.10.4" and python_full_version < "
l18n==2021.3 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
libsass==0.22.0 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
matplotlib-inline==0.1.6 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
multidict==6.0.4 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
openai==0.28.1 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
openpyxl==3.1.2 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
parso==0.8.3 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
pexpect==4.8.0 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0" and sys_platform != "win32"
Expand Down Expand Up @@ -90,6 +96,7 @@ soupsieve==2.4.1 ; python_full_version >= "3.10.4" and python_full_version < "4.
sqlparse==0.4.4 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
stack-data==0.6.2 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
telepath==0.3.1 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
tqdm==4.66.1 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
traitlets==5.9.0 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
typing-extensions==4.7.1 ; python_full_version >= "3.10.4" and python_version < "3.11"
tzdata==2023.3 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0" and sys_platform == "win32"
Expand All @@ -102,3 +109,4 @@ whitenoise==6.3.0 ; python_full_version >= "3.10.4" and python_full_version < "4
willow[heif]==1.6.1 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
wrapt==1.15.0 ; python_full_version >= "3.10.4" and python_version < "4"
xlwt==1.3.0 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"
yarl==1.9.2 ; python_full_version >= "3.10.4" and python_full_version < "4.0.0"

0 comments on commit aa4bba1

Please sign in to comment.