Class: ActiveHarness::Pricing::Source::PricingData
- Inherits:
-
Struct
- Object
- Struct
- ActiveHarness::Pricing::Source::PricingData
- Defined in:
- lib/active_harness/pricing/source.rb
Instance Attribute Summary collapse
-
#context_window ⇒ Object
Returns the value of attribute context_window.
-
#input_per_1m ⇒ Object
Returns the value of attribute input_per_1m.
-
#key ⇒ Object
Returns the value of attribute key.
-
#name ⇒ Object
Returns the value of attribute name.
-
#output_per_1m ⇒ Object
Returns the value of attribute output_per_1m.
-
#source ⇒ Object
Returns the value of attribute source.
-
#time_to_first_token ⇒ Object
Returns the value of attribute time_to_first_token.
-
#tokens_per_second ⇒ Object
Returns the value of attribute tokens_per_second.
Instance Method Summary collapse
Instance Attribute Details
#context_window ⇒ Object
Returns the value of attribute context_window
27 28 29 |
# File 'lib/active_harness/pricing/source.rb', line 27 def context_window @context_window end |
#input_per_1m ⇒ Object
Returns the value of attribute input_per_1m
27 28 29 |
# File 'lib/active_harness/pricing/source.rb', line 27 def input_per_1m @input_per_1m end |
#key ⇒ Object
Returns the value of attribute key
27 28 29 |
# File 'lib/active_harness/pricing/source.rb', line 27 def key @key end |
#name ⇒ Object
Returns the value of attribute name
27 28 29 |
# File 'lib/active_harness/pricing/source.rb', line 27 def name @name end |
#output_per_1m ⇒ Object
Returns the value of attribute output_per_1m
27 28 29 |
# File 'lib/active_harness/pricing/source.rb', line 27 def output_per_1m @output_per_1m end |
#source ⇒ Object
Returns the value of attribute source
27 28 29 |
# File 'lib/active_harness/pricing/source.rb', line 27 def source @source end |
#time_to_first_token ⇒ Object
Returns the value of attribute time_to_first_token
27 28 29 |
# File 'lib/active_harness/pricing/source.rb', line 27 def time_to_first_token @time_to_first_token end |
#tokens_per_second ⇒ Object
Returns the value of attribute tokens_per_second
27 28 29 |
# File 'lib/active_harness/pricing/source.rb', line 27 def tokens_per_second @tokens_per_second end |
Instance Method Details
#inspect ⇒ Object
38 39 40 41 |
# File 'lib/active_harness/pricing/source.rb', line 38 def inspect "#<PricingData source=#{source} key=#{key.inspect}" \ " in=$#{input_per_1m}/M out=$#{output_per_1m}/M>" end |