Skip to content

Commit

Permalink
Demo Course Recommendation Chatbot (not production-ready, for RC only) (
Browse files Browse the repository at this point in the history
  • Loading branch information
mbertrand authored Dec 20, 2024
1 parent ae32445 commit 35dcfcd
Show file tree
Hide file tree
Showing 46 changed files with 2,691 additions and 37 deletions.
13 changes: 11 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
{
"dockerComposeFile": "../docker-compose.codespaces.yml",
"service": "web",
"containerEnv": {
"OPENAI_API_KEY": "${localEnv:OPENAI_API_KEY}",
"AI_PROXY_AUTH_TOKEN": "${localEnv:AI_PROXY_AUTH_TOKEN}",
"POSTHOG_PROJECT_ID": "${localEnv:POSTHOG_PROJECT_ID}",
"POSTHOG_PROJECT_API_KEY": "${localEnv:POSTHOG_PROJECT_API_KEY}",
"POSTHOG_PERSONAL_API_KEY": "${localEnv:POSTHOG_PERSONAL_API_KEY}"
},
"runServices": [
"watch",
"web",
Expand All @@ -10,6 +17,7 @@
"celery",
"nginx",
"redis",
"litellm",
"qdrant"
],
"hostRequirements": { "cpus": 4, "memory": "8gb" },
Expand All @@ -21,9 +29,10 @@
"OLL_API_CLIENT_SECRET": {},
"OLL_API_CLIENT_ID": {},
"SEE_API_CLIENT_ID": {},
"SEE_API_CLIENT_SECRET": {}
"SEE_API_CLIENT_SECRET": {},
"OPENAI_API_KEY": {}
},
"features": {},
"postStartCommand": "while [ \"$(python manage.py showmigrations | grep \"\\[ \\]\" | wc -l)\" -ne \"0\" ]; do echo \"waiting for migrations\"; sleep 2; done && python manage.py update_offered_by && python manage.py update_platforms && python manage.py update_departments_schools && python manage.py update_course_number_departments && python manage.py backpopulate_mitxonline_data && python manage.py backpopulate_micromasters_data && python manage.py backpopulate_resource_channels --overwrite --all && python manage.py recreate_index --all",
"forwardPorts": [8062, 8063, 6333]
"forwardPorts": [4000, 6333, 8062, 8063]
}
18 changes: 18 additions & 0 deletions Dockerfile-litellm
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Use the provided base image
FROM ghcr.io/berriai/litellm:main-latest

# Set the working directory to /app
WORKDIR /app


# Make sure your docker/entrypoint.sh is executable
RUN chmod +x ./docker/entrypoint.sh

# Expose the necessary port
EXPOSE 4000/tcp

# Override the CMD instruction with your desired command and arguments
# WARNING: FOR PROD DO NOT USE `--detailed_debug` it slows down response times, instead use the following CMD
# CMD ["--port", "4000", "--config", "config.yaml"]

CMD ["--port", "4000", "--config", "litellm_config.yml"]
Empty file added ai_chat/__init__.py
Empty file.
Loading

0 comments on commit 35dcfcd

Please sign in to comment.