Skip to content

Lost braintrust logger.Β #654

@HuberTRoy

Description

@HuberTRoy

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions