Skip to content

Logging LLM Call history #1080

Closed Answered by ElishaKay
naufalso asked this question in Q&A
Jan 17, 2025 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Welcome @naufalso,

A) Langsmith can help:

https://smith.langchain.com/

You'll get an API key there.

If you set these 2 env variables, you should get logs on cost and errors within your Langsmith Dashboard (calculated per LLM call or grouped by project)

LANGCHAIN_TRACING_V2=true
LANGCHAIN_API_KEY=Set this to your API key

B) regarding the GPTR flow logs:

https://docs.gptr.dev/docs/gpt-researcher/gptr/handling-logs-as-they-stream

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@naufalso
Comment options

Answer selected by naufalso
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants