Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,7 @@
## [0.2.7] - 2025-03-07

- Fixed generation update and model field in traces.

## [0.2.8] - 2025-23-07

- Prompt management
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
llm_eval_ruby (0.2.7)
llm_eval_ruby (0.2.8)
httparty (~> 0.22.0)
liquid (~> 5.5.0)

Expand Down
11 changes: 11 additions & 0 deletions lib/llm_eval_ruby/api_clients/langfuse.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,17 @@ def fetch_prompt(name:, version:)
response["prompt"]
end

# query:
# name
# label
# tag
# page
# limit
def get_prompts(query={})
response = self.class.get("/v2/prompts", { query: query })
response["data"]
end

# We are using the same method for updating trace
# Langfuse does an upsert if id is given
def create_trace(params = {})
Expand Down
2 changes: 1 addition & 1 deletion lib/llm_eval_ruby/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module LlmEvalRuby
VERSION = "0.2.7"
VERSION = "0.2.8"
end
Loading