Skip to content

[OpenaiChat] nodriver stopped working and 'g4f.errors.NoValidHarFileError: No .har file found or "No proof_token found in .har files"' #3369

@iG8R

Description

@iG8R

Before submitting
☑️ I checked Known Issues
☑️ I searched existing issues

Configuration
(Required)

  • Model: gpt-4o-mini
  • Provider: OpenaiChat
  • Interface: API

Bug description
Clear steps to reproduce:

  1. Run
    .\venv\Scripts\activate
    g4f api --debug
  2. Try using OpenaiChat via http://127.0.0.1:1337/v1/chat/completions?provider=OpenaiChat
  3. Get the following
Image Image

Environment location
Local

Observed behavior vs expected
Almost 8 hours ago it worked just fine, if there was no har-file or auth_OpenaiChat.json in the har_and_cookies dir, then nodriver started working. For now, any nodriver window doesn't appear and immediately the error occurs.

Environment

  • Python version: 3.14.3
  • OS: Microsoft Windows [Version 10.0.19045.2673]
  • Relevant dependencies: pip freeze | grep -E 'g4f|requests'

Additional context
Proxy/VPN usage? - No
Special config? - No
Other providers working? - Yes. E.g. Gemini, as it can be seen in the screenshots.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions