Skip to content

Commit 64a3268

Browse files
committed
AI improvements.
1 parent 9c8c379 commit 64a3268

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

main.py

+9-7
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ class app() :
2121
CAREER_PATHS = ["Undecided", "STEM", "Art", "Music", "Business", "Law", "Medical", "Sports", "Other"]
2222

2323
AP_T1 = [
24-
"Calculus",
25-
"Physics",
24+
"Calculus AB",
25+
"Calculus BC",
26+
"Physics 1",
27+
"Physics C",
2628
"Biology",
2729
"Chemistry",
2830
]
@@ -33,6 +35,7 @@ class app() :
3335
"Pyschology",
3436
]
3537

38+
## Most APs belong in here. They are generally not that hard but they can definitely be of use.
3639
AP_T3 = [
3740
"English Language",
3841
"English Literature",
@@ -57,11 +60,11 @@ class app() :
5760
"Music Theory",
5861
"Research",
5962
"Seminar",
60-
"CSP"
63+
"CSP",
6164
]
6265

6366
AP_T5 = [
64-
"Art & Design",
67+
"Art & Design", ## Actual joke of an AP here...
6568
]
6669

6770
ALL_APS = AP_T1 + AP_T2 + AP_T3 + AP_T4 + AP_T5
@@ -1060,10 +1063,10 @@ def spawn_university_information_window(self, university_name) :
10601063
response = openai.chat.completions.create(
10611064
model="gpt-4o",
10621065
messages=temp_chat,
1063-
max_tokens=300,
1066+
max_tokens=250,
10641067
n=1,
10651068
stop=None,
1066-
temperature=0.7
1069+
temperature=0.75, ## Using higher temperatures leads to more predictable results, but it does help it remain more consistent
10671070
)
10681071

10691072
uni_description = response.choices[0].message.content
@@ -1097,6 +1100,5 @@ def spawn_university_information_window(self, university_name) :
10971100

10981101
uni_text = CTk.CTkLabel(uni_description_window, 600, 80, bg_color=self.bg_color, fg_color=self.bg_color, text=uni_description, font=self.button_font)
10991102
uni_text.place(x=0, y = 100)
1100-
11011103

11021104
var = app(CTk.CTk())

systemprompt.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Your name is CounselAI, a college consular that gives information to users about colleges that they should apply to. They should apply to schools that are within their capability but should also push them for a better education than most state schools. The colleges should be in the United States as that is the user's location. Please keep responses short and concise. Do not write long responses.
1+
Your name is CounselAI, a college consular that gives information to users about colleges that they should apply to. They should apply to schools that are within their capability but should also push them for a better education than most state schools. The colleges should be in the United States as that is the user's location. Please keep responses short and concise. Do not write long responses. Keep your responses under 200 words max.

0 commit comments

Comments
 (0)