Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: openai host #1447

Merged
merged 31 commits into from
Jul 11, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
0fa1a8b
support custom openai api endpoints (for azure and local deployments)
Jun 30, 2023
3d806a7
update openai python package and use new api format
Jun 30, 2023
ab03563
Merge branch 'develop' into feat/openai-host
pablohashescobar Jul 4, 2023
773a6c4
fix: project member list endpoint n+1 (#1458)
pablohashescobar Jul 4, 2023
269cd7f
chore: workspace char name and slug maximum length (#1453)
pablohashescobar Jul 4, 2023
cef4790
fix: user invitation workflow for self hosted version (#1441)
pablohashescobar Jul 4, 2023
c0dc990
chore: due date filter (#1460)
pablohashescobar Jul 4, 2023
9de376f
refactor: standardized date format throughout the platform (#1461)
anmolsinghbhatia Jul 4, 2023
2f4d315
chore: due date filter (#965)
kunalv17 Jul 4, 2023
5089663
fix: layout of tabs on Pages is not adaptable to mobile screens #1380…
ChandanJal Jul 4, 2023
f8e5109
chore: update project members type (#1459)
aaryan610 Jul 4, 2023
fab2232
fix: state icon color on group titles (#1435)
aaryan610 Jul 4, 2023
8bb6eee
fix: workspace invitation delete for self hosted (#1475)
pablohashescobar Jul 5, 2023
e0f2d56
chore: upgrade backend dependencies (#1479)
pablohashescobar Jul 6, 2023
47386e6
chore: project members endpoint to support bulk operations (#1464)
pablohashescobar Jul 6, 2023
7781ed4
chore: rename workspace company size to organization size (#1463)
pablohashescobar Jul 6, 2023
9076b3f
fix: static and media files storages (#1482)
pablohashescobar Jul 6, 2023
b6670a9
fix: emoji render function (#1484)
aaryan610 Jul 6, 2023
670932f
feat: bulk invite for project (#1466)
anmolsinghbhatia Jul 7, 2023
3cf4d06
feat: created on and updated on column added in spreadsheet view (#1454)
anmolsinghbhatia Jul 7, 2023
0dd3d5c
fix: resolved overflow issue with longer state names (#1444)
anmolsinghbhatia Jul 7, 2023
00ddd09
chore: update theming structure (#1422)
aaryan610 Jul 10, 2023
748d950
chore: update classnames according to the new theming structure (#1494)
aaryan610 Jul 10, 2023
df72915
chore: environment variables for worker and api (#1492)
pablohashescobar Jul 11, 2023
317fcab
feat: notifications (#1363)
pablohashescobar Jul 11, 2023
cc662c2
fix: docker inconsistencies (#1493)
Quadrubo Jul 11, 2023
0a71cf6
feat: issue archival and close (#1474)
NarayanBavisetti Jul 11, 2023
bec98a6
fix: updated text and background colors (#1496)
aaryan610 Jul 11, 2023
4931919
feat: web waitlist modal integration (#1487)
srinivaspendem Jul 11, 2023
0f7637a
add openai host env in all places
Jul 11, 2023
636b1e1
Merge remote-tracking branch 'origin' into feat/openai-host
Jul 11, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ NEXT_PUBLIC_GITHUB_ID=""
NEXT_PUBLIC_GITHUB_APP_NAME=""
# Sentry DSN for error monitoring
NEXT_PUBLIC_SENTRY_DSN=""
# Enable/Disable OAUTH - default 0 for selfhosted instance
# Enable/Disable OAUTH - default 0 for selfhosted instance
NEXT_PUBLIC_ENABLE_OAUTH=0
# Enable/Disable sentry
NEXT_PUBLIC_ENABLE_SENTRY=0
# Enable/Disable session recording
# Enable/Disable session recording
NEXT_PUBLIC_ENABLE_SESSION_RECORDER=0
# Enable/Disable event tracking
NEXT_PUBLIC_TRACK_EVENTS=0
Expand Down Expand Up @@ -59,15 +59,16 @@ AWS_S3_BUCKET_NAME="uploads"
FILE_SIZE_LIMIT=5242880

# GPT settings
OPENAI_API_KEY=""
GPT_ENGINE=""
OPENAI_API_BASE="https://api.openai.com/v1" # change if using a custom endpoint
OPENAI_API_KEY="sk-" # add your openai key here
GPT_ENGINE="gpt-3.5-turbo" # use "gpt-4" if you have access

# Github
GITHUB_CLIENT_SECRET="" # For fetching release notes

# Settings related to Docker
DOCKERIZED=1
# set to 1 If using the pre-configured minio setup
# set to 1 If using the pre-configured minio setup
USE_MINIO=1

# Nginx Configuration
Expand All @@ -79,4 +80,4 @@ DEFAULT_PASSWORD="password123"

# SignUps
ENABLE_SIGNUP="1"
# Auto generated and Required that will be generated from setup.sh
# Auto generated and Required that will be generated from setup.sh
2 changes: 1 addition & 1 deletion apiserver/plane/api/views/gpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def post(self, request, slug, project_id):

openai.api_key = settings.OPENAI_API_KEY
response = openai.Completion.create(
engine=settings.GPT_ENGINE,
model=settings.GPT_ENGINE,
prompt=final_text,
temperature=0.7,
max_tokens=1024,
Expand Down
2 changes: 1 addition & 1 deletion apiserver/requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ google-api-python-client==2.75.0
django-redis==5.2.0
uvicorn==0.20.0
channels==4.0.0
openai==0.27.2
openai==0.27.8
slack-sdk==3.20.2
celery==5.2.7