Skip to content

Commit

Permalink
Minor adjustments to API.
Browse files Browse the repository at this point in the history
  • Loading branch information
vaibhavpandeyvpz committed Jun 23, 2024
1 parent 854e334 commit e6113cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/routers/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ async def process(
"description": "Restructure data extracted from resume to the defined JSON schema.",
"parameters": Resume,
},
}
},
],
tool_choice={"type": "function", "function": {"name": "format_resume"}},
)
Expand Down
9 changes: 3 additions & 6 deletions app/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@
},
"links": {
"type": "array",
"description": "List of valid URLs (website, social media etc.) mentioned by the candidate.",
"description": "List of URLs mentioned by the candidate."
"Items should be a valid URL and begin with http:// or https:// otherwise exclude them.",
"items": {"type": "string"},
},
"qualifications": {
Expand Down Expand Up @@ -88,10 +89,6 @@
"type": "string",
"description": "Name of the role or designation at this company.",
},
"location": {
"type": "string",
"description": "Location of the company.",
},
"description": {
"type": "string",
"description": "Job description, responsibilities or project details while working here.",
Expand All @@ -111,7 +108,7 @@
"items": {"type": "string"},
},
},
"required": ["company", "designation", "from"],
"required": ["company", "designation", "started_at"],
},
},
},
Expand Down

0 comments on commit e6113cb

Please sign in to comment.