Commit 5321d25
committed
docs(api+laws): align verbs with OpenAI public API + fix env-layer ordering
INDEX.md sec 2 (API surface):
- /v1/mcp Method was 'filesystem' (not an HTTP verb). Corrected to GET
and re-marked as a MiOS extension (the public OpenAI surface invokes
MCP via POST /v1/responses with tools=[{type:'mcp', server_url:...}];
/v1/mcp is a MiOS-internal manifest endpoint that populates that
tools array).
- Enumerate the canonical OpenAI endpoints LocalAI serves
(chat/completions, responses, embeddings, models, audio/*) with
per-row spec links to platform.openai.com/docs/api-reference. The
prior table omitted everything except chat/completions + models.
- 'x-mios:' prefix marks rows that are MiOS extensions, so strict
OpenAI clients can ignore them by name.
INDEX.md sec 3 Law 5:
- Replace 'MIOS_AI_KEY, MIOS_AI_MODEL, MIOS_AI_ENDPOINT -> URL' (which
implied all three vars equal the URL) with role-explicit wording:
ENDPOINT is the OpenAI-SDK base_url slot, MODEL is the default model
id, KEY is the api_key (empty for the local proxy).
- Add /etc/profile.d/mios-env.sh and /usr/bin/mios-env to the
enforcement column -- they are the canonical resolver + CLI now.
INDEX.md sec 4 + etc/profile.d/mios-env.sh + /usr/bin/mios-env:
- Reorder the environment-layer overlay so legacy ~/.env.mios sits
between vendor defaults and admin/host layers (was at the bottom in
INDEX.md, just-below-current in the resolver -- both wrong).
Correct precedence (lowest -> highest):
1. /usr/share/mios/env.defaults
2. ~/.env.mios (legacy)
3. /etc/mios/env.d/*.env
4. /etc/mios/install.env
5. ~/.config/mios/env
This guarantees a stale legacy file cannot override a fresher
install.env or env.d entry, while still honoring legacy values when
no fresher source supplies them.
- Reorder the LAYERS array in /usr/bin/mios-env to match.
- Fix INDEX.md prose: list now reads lowest -> highest with that
direction stated explicitly, since the previous '1 = highest' framing
was the source of the inconsistency.1 parent 7b56947 commit 5321d25
3 files changed
Lines changed: 53 additions & 29 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
25 | 37 | | |
26 | 38 | | |
27 | 39 | | |
| |||
31 | 43 | | |
32 | 44 | | |
33 | 45 | | |
34 | | - | |
| 46 | + | |
35 | 47 | | |
36 | 48 | | |
37 | 49 | | |
| |||
48 | 60 | | |
49 | 61 | | |
50 | 62 | | |
51 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
52 | 73 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
| 74 | + | |
| 75 | + | |
58 | 76 | | |
59 | 77 | | |
60 | 78 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
9 | 10 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
14 | 19 | | |
15 | 20 | | |
16 | 21 | | |
| |||
41 | 46 | | |
42 | 47 | | |
43 | 48 | | |
44 | | - | |
| 49 | + | |
45 | 50 | | |
46 | 51 | | |
47 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
48 | 57 | | |
49 | 58 | | |
50 | 59 | | |
51 | 60 | | |
52 | 61 | | |
53 | 62 | | |
54 | 63 | | |
55 | | - | |
| 64 | + | |
56 | 65 | | |
57 | 66 | | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
| 67 | + | |
62 | 68 | | |
63 | 69 | | |
64 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
36 | | - | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
0 commit comments