Class: Cline::Model

Inherits:
Schema
  • Object
show all
Defined in:
lib/cline/model.rb

Overview

Cline model information

Defined Under Namespace

Classes: ThinkingConfig

Instance Attribute Summary

Attributes inherited from Schema

#extra_attributes

Public API collapse

Methods inherited from Schema

#==, as_hash, cast, cline_snake_attributes, of_hash, #to_cline_json, #to_hash

Instance Method Details

#cache_reads_priceFloat?

Returns Cache reads price per million tokens.

Returns:

  • (Float, nil)

    Cache reads price per million tokens



28
# File 'lib/cline/model.rb', line 28

attribute :cache_reads_price, :float

#cache_writes_priceFloat?

Returns Cache writes price per million tokens.

Returns:

  • (Float, nil)

    Cache writes price per million tokens



31
# File 'lib/cline/model.rb', line 31

attribute :cache_writes_price, :float

#context_windowInteger

Returns Context window size in tokens.

Returns:

  • (Integer)

    Context window size in tokens



13
# File 'lib/cline/model.rb', line 13

attribute :context_window, :integer

#descriptionString?

Returns Model description.

Returns:

  • (String, nil)

    Model description



34
# File 'lib/cline/model.rb', line 34

attribute :description, :string

#input_priceFloat

Returns Input price per million tokens.

Returns:

  • (Float)

    Input price per million tokens



22
# File 'lib/cline/model.rb', line 22

attribute :input_price, :float

#max_tokensInteger

Returns Maximum tokens output for this model.

Returns:

  • (Integer)

    Maximum tokens output for this model



10
# File 'lib/cline/model.rb', line 10

attribute :max_tokens, :integer

#nameString

Returns Model display name.

Returns:

  • (String)

    Model display name



7
# File 'lib/cline/model.rb', line 7

attribute :name, :string

#output_priceFloat

Returns Output price per million tokens.

Returns:

  • (Float)

    Output price per million tokens



25
# File 'lib/cline/model.rb', line 25

attribute :output_price, :float

#supports_imagesBoolean

Returns True if this model supports image inputs.

Returns:

  • (Boolean)

    True if this model supports image inputs



16
# File 'lib/cline/model.rb', line 16

attribute :supports_images, :boolean

#supports_prompt_cacheBoolean

Returns True if this model supports prompt caching.

Returns:

  • (Boolean)

    True if this model supports prompt caching



19
# File 'lib/cline/model.rb', line 19

attribute :supports_prompt_cache, :boolean

#thinking_configThinkingConfig?

Returns Thinking configuration.

Returns:



45
# File 'lib/cline/model.rb', line 45

attribute :thinking_config, ThinkingConfig