mirror of
https://github.com/we-promise/sure.git
synced 2026-04-07 14:31:25 +00:00
* Add Langfuse-based LLM observability * Document Langfuse configuration * Don't hardcode model in use
10 lines
315 B
Ruby
10 lines
315 B
Ruby
require "langfuse"
|
|
|
|
if ENV["LANGFUSE_PUBLIC_KEY"].present? && ENV["LANGFUSE_SECRET_KEY"].present?
|
|
Langfuse.configure do |config|
|
|
config.public_key = ENV["LANGFUSE_PUBLIC_KEY"]
|
|
config.secret_key = ENV["LANGFUSE_SECRET_KEY"]
|
|
config.host = ENV["LANGFUSE_HOST"] if ENV["LANGFUSE_HOST"].present?
|
|
end
|
|
end
|