Skip to content

[Feature] I hope the error messages during demo runtime can be more prominent #247

@Ethereal-O

Description

@Ethereal-O

Search before asking

  • I had searched in the feature and found no similar feature requirement.

Feature Description (功能描述)

When I run the demo program hugegraph_1lm.demo.rag_demo.app, I complete the LLM configuration and receive a prompt stating that it has been successfully configured. My account limit is insufficient to meet the request, so an error occurred when making the request. However, the error only told me 'str object has no attribute 'usage' ', which took me some time to discover the real reason.

Another method that is relatively easy to replicate is to try modifying the api_mase address and removing the suffix '/v1'. The application configuration still shows a success message, but an error message will be generated during runtime. The error message does not clearly indicate that there may be a configuration issue.

I hope to display the information returned by the LLM interface, whether in the log or on the frontend interface. This may help users better identify configuration issues.

Image

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions