"""The model call — a stand-in. Provided; do not edit.

Flagship F1 swaps this for a real client. It logs through a CHILD logger, ``askcli.backend``,
on purpose: this function never receives a request id, yet its line must carry the right one.
That only works if the id travels in a ``contextvars.ContextVar`` that the formatter reads —
not as an argument, and not in a module-level global.
"""

import logging

log = logging.getLogger("askcli.backend")


def complete(prompt: str, model: str) -> str:
    log.info("model call: model=%s, %d prompt chars", model, len(prompt))
    return f"[{model}] you asked: {prompt}"
