Module: LlmCostTracker::TagAccessors
- Included in:
- LlmApiCall
- Defined in:
- lib/llm_cost_tracker/tag_accessors.rb
Instance Method Summary collapse
Instance Method Details
#feature ⇒ Object
15 16 17 |
# File 'lib/llm_cost_tracker/tag_accessors.rb', line 15 def feature ["feature"] end |
#parsed_tags ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/llm_cost_tracker/tag_accessors.rb', line 7 def return .transform_keys(&:to_s) if .is_a?(Hash) JSON.parse( || "{}") rescue JSON::ParserError {} end |
#user_id ⇒ Object
19 20 21 |
# File 'lib/llm_cost_tracker/tag_accessors.rb', line 19 def user_id ["user_id"] end |