Skip to content

Uninitialized constant #184

Closed
Closed
@pointlessone

Description

@pointlessone

I've noticed that some constants don't have their own file. This prevents Zeitwerk from resolving them.

An example would be RubyLLM::Modalities which is currently in lib/ruby_llm/model_info.rb.

A minimum reproduction:

require 'ruby_llm'
RubyLLM.chat(model: 'qwen3:0.6b', provider: :ollama)

I believe the fix for this would be to move classes (Modalities, PricingCollection, PricingCategory, and PricingTier) to their own files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions