Skip to content

[Bug]: model and error fields not consistently set in database #10937

@WhammyLeaf

Description

@WhammyLeaf

What happened?

The model and error fields are not consistently set on the message record in the database. This is, amongst other things, a problem when scraping metrics using the librechat_exporter companion app.

Version Information

More information as well as a full solution to this bug is provided here: #10919

Steps to Reproduce

  1. spin up librechat and a librechat_exporter server
  2. write messages in librechat that result in valid responses and errors
  3. create a grafana dashboard visualizing certain metrics related to errors or input tokens.
  4. No data is shown

What browsers are you seeing the problem on?

No response

Relevant log output

not relevant

Screenshots

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions