{%- comment -%} Tells readers of the 1.x docs, which keep their Just the Docs layout, that they are not reading the stable docs. docs/bin/prepare_version.rb adds it to that layout; the theme shows its own banner in the other versions. {%- endcomment -%} {%- assign channel = site.docs_channel -%} {%- if channel == 'next' or channel == 'v1' -%} {%- assign stable = site.data.versions.items | where: 'id', 'stable' | first -%} {%- assign stable_version = stable.title | remove: ' (stable)' -%}

{% if channel == 'next' %}You're reading the docs for unreleased RubyLLM from main.{% else %}You're reading the docs for RubyLLM 1.x.{% endif %} Read the {% if stable_version == 'Stable' %}stable{% else %}{{ stable_version }}{% endif %} docs

{%- if include.fixed %} {%- endif %} {%- endif -%}