arbabarshad commited on
Commit
fcd4dd6
·
1 Parent(s): 911e1f2

icluded resume and everything

Browse files
Files changed (2) hide show
  1. app.py +2 -2
  2. test_openai_integration.py +7 -10
app.py CHANGED
@@ -87,8 +87,8 @@ Keeping all the above constraints in mind, the goal is to optimize for Applicant
87
 
88
  try:
89
  response = client.responses.create(
90
- model="gpt-5.2-pro",
91
- reasoning={"effort": "none"},
92
  instructions="You are a professional resume writer who tailors resumes for job applications, while strictly maintaining the original LaTeX formatting and structure.",
93
  input=prompt
94
  )
 
87
 
88
  try:
89
  response = client.responses.create(
90
+ model="gpt-5.2-chat-latest",
91
+ reasoning={"effort": "medium"},
92
  instructions="You are a professional resume writer who tailors resumes for job applications, while strictly maintaining the original LaTeX formatting and structure.",
93
  input=prompt
94
  )
test_openai_integration.py CHANGED
@@ -53,18 +53,15 @@ The response should be LaTeX formatted text that can be directly inserted into a
53
  """
54
 
55
  try:
56
- response = client.chat.completions.create(
57
- model="gpt-4o",
58
- messages=[
59
- {"role": "system", "content": "You are a professional resume writer who specializes in creating compelling 'Why Hire Me' sections for job applications."},
60
- {"role": "user", "content": prompt}
61
- ],
62
- temperature=0.7,
63
- max_tokens=500
64
  )
65
-
66
  # Extract the generated text from the response
67
- why_hire_me_text = response.choices[0].message.content
68
 
69
  # Ensure it has the proper LaTeX section heading if not already included
70
  if "\\section" not in why_hire_me_text:
 
53
  """
54
 
55
  try:
56
+ response = client.responses.create(
57
+ model="gpt-5.2-chat-latest",
58
+ reasoning={"effort": "medium"},
59
+ instructions="You are a professional resume writer who specializes in creating compelling 'Why Hire Me' sections for job applications.",
60
+ input=prompt
 
 
 
61
  )
62
+
63
  # Extract the generated text from the response
64
+ why_hire_me_text = response.output_text
65
 
66
  # Ensure it has the proper LaTeX section heading if not already included
67
  if "\\section" not in why_hire_me_text: