Skip to content

Lost braintrust logger. #654

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

Open
HuberTRoy opened this issue Mar 11, 2025 · 3 comments
Open

Lost braintrust logger. #654

HuberTRoy opened this issue Mar 11, 2025 · 3 comments

Comments

@HuberTRoy
Copy link

I following by this doc https://mongodb.github.io/chatbot/quick-start/ for test.
I have set MONGODB_CONNECTION_URI & OPENAI_API_KEY.
When I run npm run dev, the server side report an error when request http://localhost:3000/api/v1.

Encountered error when constructing records to flush
Failed to construct log records to flush after 3 attempts. Dropping batch
{"level":"info","message":"No matching content found","reqId":"67cff220636af398e02cfe06"}
{"level":"warn","message":"Sending static message to user: Unfortunately, I do not know how to respond to your message.\n\nPlease try to rephrase your message. Adding more details can help me respond with a relevant answer.","reqId":"67cff220636af398e02cfe06"}
Encountered error when constructing records to flush. Retrying
Error: Please specify an api key (e.g. by setting BRAINTRUST_API_KEY).

What is BRAINTRUST_API_KEY? Where to get it? I can't find the relative information in the doc.

@mongodben
Copy link
Collaborator

https://braintrust.dev/ is a tool that we use for observability. all braintrust config should be optional. is it possible that you have a dummy value for BRAINTRUST_API_KEY in your .env file?

@mongodben
Copy link
Collaborator

Related to #645

@HuberTRoy
Copy link
Author

@mongodben no, i copied the .env.example. only MongoDB config & OpenAI config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants