Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: Getting stopped and unable to generate Resume #1083

Open
agvs03 opened this issue Jan 30, 2025 · 5 comments
Open

[BUG]: Getting stopped and unable to generate Resume #1083

agvs03 opened this issue Jan 30, 2025 · 5 comments
Labels
bug Something isn't working

Comments

@agvs03
Copy link

agvs03 commented Jan 30, 2025

Describe the bug

It couldn't create reume

Steps to reproduce

INFO:httpx:HTTP Request: POST https://api.openai.com/v1/chat/completions "HTTP/1.1 200 OK"
DEBUG:httpcore.http11:receive_response_body.started request=<Request [b'POST']>
DEBUG:httpcore.http11:receive_response_body.complete
DEBUG:httpcore.http11:response_closed.started
DEBUG:httpcore.http11:response_closed.complete
DEBUG:httpcore.connection:close.started
DEBUG:httpcore.connection:close.complete
DEBUG:httpcore.connection:close.started
DEBUG:httpcore.connection:close.complete
DEBUG:httpcore.connection:close.started
DEBUG:httpcore.connection:close.complete
DEBUG:httpcore.connection:close.started
DEBUG:httpcore.connection:close.complete
DEBUG:httpcore.connection:close.started
DEBUG:httpcore.connection:close.complete
DEBUG:httpcore.connection:close.started
DEBUG:httpcore.connection:close.complete
DEBUG:openai._base_client:HTTP Response: POST https://api.openai.com/v1/chat/completions "200 OK" Headers([('date', 'Thu, 30 Jan 2025 18:05:10 GMT'), ('content-type', 'application/json'), ('transfer-encoding', 'chunked'), ('connection', 'keep-alive'), ('access-control-expose-headers', 'X-Request-ID'), ('openai-organization', 'user-ha4dn84tcelqqszegdpaubph'), ('openai-processing-ms', '12359'), ('openai-version', '2020-10-01'), ('x-ratelimit-limit-requests', '10000'), ('x-ratelimit-limit-tokens', '200000'), ('x-ratelimit-remaining-requests', '9997'), ('x-ratelimit-remaining-tokens', '198012'), ('x-ratelimit-reset-requests', '25.909s'), ('x-ratelimit-reset-tokens', '596ms'), ('x-request-id', 'req_b8ddf3991a0bdb0e3cb162ec07611b93'), ('strict-transport-security', 'max-age=31536000; includeSubDomains; preload'), ('cf-cache-status', 'DYNAMIC'), ('set-cookie', '__cf_bm=1DaIJtY_8VbIjMev0AZg3OLSCSpzNgVwsSkb94QlZ94-1738260310-1.0.1.1-9wFS6XJZPGo4bWW0b.cFI1Kk1oWMydYYJhFgy_fINyEoplofshUXdEXwEnKOWKdl9SidSEbPno5SpsGoZ1iXCg; path=/; expires=Thu, 30-Jan-25 18:35:10 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None'), ('x-content-type-options', 'nosniff'), ('set-cookie', '_cfuvid=I6DyczPTGuk7.U8diTNuBhXeKD67eiNsnZEaicBkFt8-1738260310721-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None'), ('server', 'cloudflare'), ('cf-ray', '90a3632febc369e2-DFW'), ('content-encoding', 'gzip'), ('alt-svc', 'h3=":443"; ma=86400')])
DEBUG:openai._base_client:request_id: req_b8ddf3991a0bdb0e3cb162ec07611b93
DEBUG:urllib3.connectionpool:http://localhost:51151 "POST /session/5062e5d5ab9de9a5fbea8ddb861f4c7e/url HTTP/11" 200 0
DEBUG:urllib3.connectionpool:http://localhost:51151 "POST /session/5062e5d5ab9de9a5fbea8ddb861f4c7e/goog/cdp/execute HTTP/11" 200 0
DEBUG:urllib3.connectionpool:http://localhost:51151 "DELETE /session/5062e5d5ab9de9a5fbea8ddb861f4c7e HTTP/11" 200 0
DEBUG:httpcore.connection:close.started
DEBUG:httpcore.connection:close.complete

C:\Jobs_Applier_AI_Agent>

Expected behavior

No response

Actual behavior

No response

Branch

None

Branch name

No response

Python version

No response

LLM Used

No response

Model used

No response

Additional context

No response

@agvs03 agvs03 added the bug Something isn't working label Jan 30, 2025
@agvs03 agvs03 changed the title [BUG]: <Provide a clear, descriptive title> [BUG]: Getting stopped and unable to generate Resume Jan 30, 2025
@diraneyya
Copy link

Hello. Did you setup an API key for OpenAI in the secrets.yml file?

Are you intending on using the OpenAI endpoint or trying to use something different such as DeepSeek.

@marhamam
Copy link

marhamam commented Mar 24, 2025

@diraneyya I'm having the same issue.
here is my config.py file located at the root of the app:

from src.utils.constants import DEBUG, ERROR, LLM_MODEL, OPENAI

LOG_LEVEL = 'ERROR'
LOG_SELENIUM_LEVEL = ERROR
LOG_TO_FILE = False
LOG_TO_CONSOLE = False

MINIMUM_WAIT_TIME_IN_SECONDS = 60

JOB_APPLICATIONS_DIR = "job_applications"
JOB_SUITABILITY_SCORE = 7

JOB_MAX_APPLICATIONS = 5
JOB_MIN_APPLICATIONS = 1

LLM_MODEL_TYPE = 'ollama'
LLM_MODEL = 'llama3.2:1b'
LLM_API_URL = 'http://127.0.0.1:11434/'

Meaning, I'm trying to use ollama. But I keep getting errors regarding openai API request.
Any help? 🙏

@diraneyya
Copy link

Hey there @marhamam the code is quite messy and I ended up having a heavily modified fork which only lives on my computer. Which feature are you mostly interested in? Are you interested in creating customised cover letters or resumes?

@marhamam
Copy link

Thanks for your reply @diraneyya
Well, both features will be very useful in my job searching. Can you help me out with this?

@diraneyya
Copy link

Possibly yes but it is going to be messy. I think the best thing would be if we somehow convert this script to a visual flow using something like Flowise. For a starter you can book an appointment with me from https://orwa.tech (use the calendly link) and we can try to make it work on your computer. It would also help if you have RustDesk installed (an open-source alternative to TeamViewer).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants