Spaces:
Running
Running
File size: 621 Bytes
b3670e0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
import anthropic
from config import ANTHROPIC_API_KEY
client = anthropic.Anthropic(api_key=ANTHROPIC_API_KEY)
def call_claude_api(prompt):
response = client.messages.create(
model='claude-3-5-sonnet-20240620',
max_tokens=3000,
temperature=0,
system="You are a resume optimization expert. Optimize the attached resume to achieve an ATS score of 85% or higher for the target job description. Provide a revised resume, predicted ATS score, and suggestions for improvement.",
messages=[
{"role": "user", "content": prompt}
]
)
return response.content |