Skip to main content

Module config_migrate

Module config_migrate 

Source
Expand description

One-shot migration of the legacy conversations model fields.

conversations.{ask,compact,rollup} used to carry a bare model-name string plus an ollama_endpoint, and resolution fabricated an Ollama backend from them. This converts those into explicit BackendConfig overrides so the fields can be deleted.

Operates on raw YAML text, NOT on the typed Config: by the time this runs the struct no longer has the legacy fields, so a typed load would silently drop exactly the values we need to read.

Functions§

migrate_conversations_yaml
Convert legacy conversations.* model fields into explicit backend overrides. Returns None when there was nothing to migrate — including when the input does not parse, so a syntactically broken config is left untouched rather than replaced.