Skip to content

Commit b7391ae

Browse files
committed
cleanup
1 parent d3adbd4 commit b7391ae

File tree

4 files changed

+573
-616
lines changed

4 files changed

+573
-616
lines changed

backend/ai.py

+1-14
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ async def get_completion(user_prompt, conversation_thus_far):
2222
"content": INITIAL_PROMPT
2323
}
2424
]
25-
messages.extend(_get_additional_initial_messages())
25+
2626
messages.extend(json.loads(base64.b64decode(conversation_thus_far)))
2727
messages.append({"role": "user", "content": user_prompt})
2828

@@ -38,16 +38,3 @@ async def get_completion(user_prompt, conversation_thus_far):
3838

3939
def _is_empty(user_prompt: str):
4040
return not user_prompt or user_prompt.isspace()
41-
42-
43-
def _get_additional_initial_messages():
44-
match AI_COMPLETION_MODEL:
45-
case "gpt-3.5-turbo":
46-
return [
47-
{
48-
"role": "user",
49-
"content": INITIAL_PROMPT
50-
}
51-
]
52-
case _:
53-
return []

backend/requirements.txt

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
openai~=0.27.7
2-
fastapi~=0.95.2
1+
openai~=0.28.0
2+
fastapi~=0.103.1
33
gTTS~=2.3.2
44
python-multipart~=0.0.6
55
ffmpeg-python~=0.2.0
6-
pydantic~=1.10.7
7-
uvicorn~=0.22.0
6+
pydantic~=2.3.0
7+
uvicorn~=0.23.2
88
pydub~=0.25.1
99
requests~=2.31.0
10-
edge-tts~=6.1.5
11-
elevenlabs~=0.2.15
10+
edge-tts~=6.1.8
11+
elevenlabs~=0.2.26

frontend/package.json

+10-10
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,17 @@
1919
"react-spinners": "^0.13.8"
2020
},
2121
"devDependencies": {
22-
"@types/react": "^18.0.28",
23-
"@types/react-dom": "^18.0.11",
24-
"@typescript-eslint/eslint-plugin": "^5.57.1",
25-
"@typescript-eslint/parser": "^5.57.1",
26-
"@vitejs/plugin-react": "^4.0.0",
27-
"eslint": "^8.38.0",
22+
"@types/react": "^18.2.21",
23+
"@types/react-dom": "^18.2.7",
24+
"@typescript-eslint/eslint-plugin": "^6.7.0",
25+
"@typescript-eslint/parser": "^6.7.0",
26+
"@vitejs/plugin-react": "^4.0.4",
27+
"eslint": "^8.49.0",
2828
"eslint-plugin-react-hooks": "^4.6.0",
29-
"eslint-plugin-react-refresh": "^0.3.4",
29+
"eslint-plugin-react-refresh": "^0.4.3",
3030
"http-server": "^14.1.1",
31-
"nodemon": "^2.0.22",
32-
"typescript": "^5.0.2",
33-
"vite": "^4.3.9"
31+
"nodemon": "^3.0.1",
32+
"typescript": "^5.2.2",
33+
"vite": "^4.4.9"
3434
}
3535
}

0 commit comments

Comments
 (0)