Skip to content

Commit

Permalink
riders to rider
Browse files Browse the repository at this point in the history
  • Loading branch information
himanshp1656 committed Jan 9, 2024
1 parent ccfe205 commit 702db85
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# *.pyc

# Ignore the Django SQLite database
db.sqlite3
# db.sqlite3

# Ignore the .env file (containing sensitive information)
.env
Binary file modified appss/__pycache__/views.cpython-310.pyc
Binary file not shown.
3 changes: 2 additions & 1 deletion appss/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -604,10 +604,11 @@ def roadmap(request):

# Initialize OpenAI API client
openai.api_key = settings.OPENAI_API_KEY
print('hey',settings.OPENAI_API_KEY)

# Generate a response from ChatGPT
response = openai.Completion.create(
engine="text-davinci-002",
engine="gpt-3.5-turbo",
prompt=user_input,
max_tokens=1000
)
Expand Down
Binary file modified requirements.txt
Binary file not shown.
Binary file modified sih/__pycache__/settings.cpython-310.pyc
Binary file not shown.
10 changes: 5 additions & 5 deletions sih/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,13 +138,13 @@
STATICFILES_DIRS = [os.path.join(BASE_DIR, 'static')]

import os
# from dotenv import load_dotenv
from dotenv import load_dotenv

# # Load environment variables from .env file
# load_dotenv()
# Load environment variables from .env file
load_dotenv()

# OPENAI_API_KEY = os.getenv('OPENAI_API_KEY')
OPENAI_API_KEY = 'hhhhhh'
OPENAI_API_KEY = os.getenv('OPENAI_API_KEY')
# OPENAI_API_KEY = 'hhhhhh'

STATIC_ROOT = BASE_DIR / 'staticfiles'
STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
Expand Down

0 comments on commit 702db85

Please sign in to comment.