Skip to content

docs: move provider setup to docs/providers.md - #270

Merged
goldbarth merged 1 commit into
mainfrom
docs/providers
Sep 29, 2026
Merged

goldbarth merged 1 commit into
mainfrom
docs/providers

Conversation

@goldbarth

Copy link
Copy Markdown
Owner

Follows #269 and #265. Updated when the Anthropic comparison runs in chartula-evals exist: the Claude model ids are listed as "pending" until then.

  • Why: setting up a provider other than the default took four sections of docs/configuration.md and knowledge found nowhere: that OpenAI itself needs Chartula__Llm__BaseUrl=https://api.openai.com/v1, which key variable each case reads, and what the run prints to confirm it. The model comparison of 2026-09-25 hit exactly these gaps (evaluation, decision memo item 3).
  • One recipe per case: Anthropic, OpenAI, a hosted compatible endpoint (Groq) and a local server (Ollama). Each has the chartula.yaml lines, the export lines and the header line the run prints (EndpointNotice.cs), so a user can tell the setup took effect before the first request.
  • One home for credential variables: a table of what each provider needs, with the reason openai-compatible has no default endpoint, not even OpenAI's.
  • The local recipe recommends no model: qwen3:14b failed the comparison as renderer and as checker, and granite4.1-guardian:8b as checker. The recipe uses <model> instead of qwen3:8b, says that no local model has passed, and asks for a line-by-line read of local output.
  • The context window and the thorough check move in, rewritten to the current behavior. The token figure per call comes from the comparison (about 11,000 for 18 changes).
  • Choosing a model: tested ids with the date they were compared, prices only as links to the providers, and a dated summary that names its limits (three runs, one release, flags are not text quality).
  • thinking moves in with its translation table and the values models reject. The measurement tables of 2026-07-31 and 2026-09-17 are not carried over; measured figures come from the structured comparison only.
  • Every link to a moved section follows: README, docs/changelog-json.md, ADR 0003, docs/run-metrics.md, chartula.example.yaml, and the message in CallValidity.cs that points to the context window section.
  • The README cost line loses its link to "the documented rate", since prices are no longer documented.

Left for later steps: the README credentials section and chartula.example.yaml still show qwen3:8b (2.7, 2.8); the faithfulness section of docs/configuration.md still cites a thinking measurement that is no longer on any page (3.2).

Verified: every relative link and anchor in the repository's Markdown resolves. The recipes match LlmProviderDefaults.cs, EndpointNotice.cs, ThinkingMode.cs and ClaudeThinkingSupport.cs; the comparison figures match sweeps/servicedesklite-v1.9.0-evaluation.md.

Tests: no test changed. Full suite 830 passing, build without warnings.

@goldbarth goldbarth self-assigned this Sep 29, 2026
@goldbarth
goldbarth merged commit d0457ef into main Sep 29, 2026
4 checks passed
@goldbarth
goldbarth deleted the docs/providers branch September 29, 2026 19:55
goldbarth added a commit that referenced this pull request Oct 1, 2026
…rd decided, recorded and amended (#318)

Follows #264, which moved the ADRs to `docs/development/adr/`, and #317,
which ruled out the claim that the audiences "cannot disagree".

- **Why:** the ADRs had one `Date` line that mixed when a decision was
taken with what changed later ("2026-07-16 (#45), extended by #96"), no
record of when each file was written, and no list of their own;
CONTRIBUTING kept the only list. ADR 0003 did not mention #235, which
added a refusal to the decision it records, and ADR 0002's title named
the tools rather than the decision.
- **`docs/development/adr/README.md`** holds the index, when to write an
ADR, and a template with separate fields: **Decided** (when it took
effect in the code, which can precede the record), **Recorded** (when
the file was written), and **Amended** (every later change to the
decision or to a fact in it, each dated with its pull request). A moved
file, a fixed link or a reworded sentence is not an amendment, so the
list stays a record of meaning.
- **0001** gives the date and pull request of each part: facts first on
2026-07-16 (#45), and the structure of a rendering on 2026-09-16 (#129,
for #96), which the Decision now marks as its own paragraph with the
reason #96 found. Amended here: "so they cannot disagree on what
happened" becomes what a shared fact base actually gives, the same
changes, categories and breaking status, and says why texts can still
disagree.
- **0002** is retitled to its decision, "Dependencies that keep a
native-AOT build reachable", and the file renamed to match; the Decision
opens on the rule the bullets implement. #268's correction of the
platform count is listed as its amendment.
- **0003** records #235: a model endpoint on the API host of the other
provider is refused before any request, with the reason (a key sent
there must be rotated) and why the list of hosts stays short. Dated
2026-09-23, the day of #235, and marked as recorded here.
- **CONTRIBUTING** links the index instead of listing the ADRs, and the
README's "Contribute" table gains a row for it, so the list exists in
one place.

**Verified:**
- Every date and number was taken from GitHub: the merge dates of #42,
#43, #45, #129, #166, #216, #235 and #268, and the issues each closes
(#3, #4, #6, #96, #158, #184, #233).
- What #268 changed in 0002 was read from its diff: the platform count,
nothing else. #264, #270 and #316 only moved the files or changed a
link, so they are not amendments.
- The rule 0003 now states was checked against `ProviderHost.cs` and
#235's description.
- Every relative link and anchor in all Markdown files of the repository
resolves (script, with a negative test); the renamed 0002 had no inbound
link besides CONTRIBUTING's list.

Tests: none, documentation only.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant