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_price ⇒ Float?

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_price ⇒ Float?

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_window ⇒ Integer

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

#description ⇒ String?

Returns Model description.

Returns:

  • (String, nil) —

    Model description



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

attribute :description, :string

#input_price ⇒ Float

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_tokens ⇒ Integer

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

#name ⇒ String

Returns Model display name.

Returns:

  • (String) —

    Model display name



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

attribute :name, :string

#output_price ⇒ Float

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_images ⇒ Boolean

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_cache ⇒ Boolean

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_config ⇒ ThinkingConfig?

Returns Thinking configuration.

Returns:



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

attribute :thinking_config, ThinkingConfig