mirror of
https://github.com/we-promise/sure.git
synced 2026-08-12 11:10:20 +00:00
Add Langfuse-based LLM observability (#86)
* Add Langfuse-based LLM observability * Document Langfuse configuration * Don't hardcode model in use
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
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
|
||||
Reference in New Issue
Block a user