Class: Cline::GlobalState::Models::OpenRouterModelInfo

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

Overview

OpenRouter 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.

Returns:

  • (Float) —

    Cache reads price



39
# File 'lib/cline/global_state/models.rb', line 39

attribute :cache_reads_price, :float

#context_window ⇒ Integer

Returns Context window size.

Returns:

  • (Integer) —

    Context window size



24
# File 'lib/cline/global_state/models.rb', line 24

attribute :context_window, :integer

#description ⇒ String

Returns Model description.

Returns:

  • (String) —

    Model description



42
# File 'lib/cline/global_state/models.rb', line 42

attribute :description, :string

#input_price ⇒ Float

Returns Input token price.

Returns:

  • (Float) —

    Input token price



33
# File 'lib/cline/global_state/models.rb', line 33

attribute :input_price, :float

#max_tokens ⇒ Integer

Returns Maximum tokens allowed per request.

Returns:

  • (Integer) —

    Maximum tokens allowed per request



21
# File 'lib/cline/global_state/models.rb', line 21

attribute :max_tokens, :integer

#name ⇒ String

Returns Model name.

Returns:

  • (String) —

    Model name



18
# File 'lib/cline/global_state/models.rb', line 18

attribute :name, :string

#output_price ⇒ Float

Returns Output token price.

Returns:

  • (Float) —

    Output token price



36
# File 'lib/cline/global_state/models.rb', line 36

attribute :output_price, :float

#supports_images ⇒ Boolean

Returns Flag indicating image support.

Returns:

  • (Boolean) —

    Flag indicating image support



27
# File 'lib/cline/global_state/models.rb', line 27

attribute :supports_images, :boolean

#supports_prompt_cache ⇒ Boolean

Returns Flag indicating prompt cache support.

Returns:

  • (Boolean) —

    Flag indicating prompt cache support



30
# File 'lib/cline/global_state/models.rb', line 30

attribute :supports_prompt_cache, :boolean

#thinking_config ⇒ ThinkingConfig

Returns Thinking configuration.

Returns:



45
# File 'lib/cline/global_state/models.rb', line 45

attribute :thinking_config, ThinkingConfig