bots-garden/mini-mepublic Fork
⑂ v1.0.3
Commits
⬇ Clone ▾
git clone https://git.rickub.com/bots-garden/mini-me.git
git clone ssh://git@rickub.com/bots-garden/mini-me.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Download ZIP
🛟 Updated. d8543e4 · on v1.0.3 · k33g · 27d ago
v1.0.3.en.md · 64 lines · 4.5 KBmarkdown
Blame HistoryOpen raw

mini-me v1.0.3

Version française

mm init writes agents for any OpenAI-compatible service — it asks the endpoint and the API key's variable, then lists the service's models or lets you type one — and its text answers can be edited with the arrow keys.

New

mm init for OpenAI-compatible services (#177)

provider: openai is mm's way to any OpenAI-compatible service: OpenAI, Mistral AI, Cerebras, Hugging Face… mm init now treats it that way.

  • Two more questions, for openai only, between the server and the model:
    • the endpoint, https://api.openai.com/v1 by default (--base-url);
    • the environment variable that holds the API key, OPENAI_API_KEY by default, or MISTRAL_API_KEY, CEREBRAS_API_KEY, HF_TOKEN… (new flag --api-key-env).
  • The model question depends on the key:
    • when the variable is set, it lists the service's models, asked with that key;
    • when the variable is not set, nothing is requested and you type the model's ID. The question says why: Model ID? (MISTRAL_API_KEY is not set: no list — type it).
    • when the list is refused or times out, the question shows the error, in the window as in the line mode. Before, the window showed an empty list with no reason.
  • A longer wait for a remote list: 20 s for openai, instead of 5 s. A user saw no model on a first mm init with OpenAI and the whole list on the second; a cold first connection is the likely cause (not reproduced). Local servers keep 5 s.
  • The written file:
    • baseUrl and apiKeyEnv when they are not the defaults;
    • a comment naming the key's variable;
    • a commented reasoning_effort: none in sampling. Uncomment it if the API answers "Function tools with reasoning_effort are not supported" (seen with gpt-6-luna): mm uses /v1/chat/completions and always sends tools. This turns the model's reasoning off. Keeping reasoning and tools together needs OpenAI's Responses API: ticket 178, not started.
  • Tried by the author with OpenAI and Mistral AI: it works. Also checked against a local fake service:
    • without the key, you type the ID;
    • with the key, the models are listed;
    • the written files load.

Text answers in the mm init window can be edited (#177)

The endpoint, the key's variable, the agent's name and the file name are edited where the cursor is:

  • ← → move the cursor, and typing inserts there;
  • Home End (or Ctrl-A Ctrl-E) go to the start and the end;
  • Backspace deletes before the cursor, Delete after it;
  • Ctrl-U clears the answer.

Before, you could only type or delete at the end.

Fixed

  • install.sh failed when mm was not installed yet: it removed /usr/local/bin/mm before building, and the missing file stopped the script. It now uses rm -f.

Demos

  • demos/open-ai-compliant/: the mm init steps and two agent files written that way, for OpenAI and for Mistral AI (ministral-8b-2512, with apiKeyEnv: MISTRAL_API_KEY).

Documentation

  • How to create an agent with mm init (EN, FR): a variant for OpenAI-compatible services, and the editing keys of text answers.
  • How to run with an OpenAI-compatible server (EN, FR): what mm init asks for such a service, and a variant for "Function tools with reasoning_effort are not supported".
  • Command line reference (EN, FR): the --base-url, --api-key-env and --model rows of mm init, and the window's keys.
  • Keyboard shortcuts of the window (EN, FR): editing a text answer of mm init.
  • README:
    • links to the step-by-step install guides for macOS, Linux and Windows;
    • seven entries the feature list was missing since v1.0.0: decision models, messages queued during an answer, struggle signals, autoPull, models taking turns in memory, using mm from another program, and testing a model;
    • three demos added to the table.

Upgrading

  • Nothing changes in how mm reads an agent file. Files written by an earlier mm init load as they are.
  • mm init with openai asks two more questions. In scripts, give them with --base-url and --api-key-env, or keep --yes to take the defaults: the OpenAI API, OPENAI_API_KEY.
  • The correction for provider: openai sampling (#176) shipped in v1.0.2: see its notes.
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# mini-me v1.0.3

*[Version française](v1.0.3.fr.md)*

`mm init` writes agents for any OpenAI-compatible service — it asks the endpoint and the API key's variable, then lists the service's models or lets you type one — and its text answers can be edited with the arrow keys.

## New

### `mm init` for OpenAI-compatible services (#177)

`provider: openai` is mm's way to any OpenAI-compatible service: OpenAI, Mistral AI, Cerebras, Hugging Face… `mm init` now treats it that way.

- **Two more questions**, for `openai` only, between the server and the model:
  - **the endpoint**, `https://api.openai.com/v1` by default (`--base-url`);
  - **the environment variable that holds the API key**, `OPENAI_API_KEY` by default, or `MISTRAL_API_KEY`, `CEREBRAS_API_KEY`, `HF_TOKEN`… (new flag `--api-key-env`).
- **The model question depends on the key:**
  - when the variable is set, it lists the service's models, asked with that key;
  - when the variable is not set, nothing is requested and you type the model's ID. The question says why: `Model ID? (MISTRAL_API_KEY is not set: no list — type it)`.
  - when the list is refused or times out, the question shows the error, in the window as in the line mode. Before, the window showed an empty list with no reason.
- **A longer wait for a remote list**: 20 s for `openai`, instead of 5 s. A user saw no model on a first `mm init` with OpenAI and the whole list on the second; a cold first connection is the likely cause (not reproduced). Local servers keep 5 s.
- **The written file**:
  - `baseUrl` and `apiKeyEnv` when they are not the defaults;
  - a comment naming the key's variable;
  - a commented `reasoning_effort: none` in `sampling`. Uncomment it if the API answers "Function tools with reasoning_effort are not supported" (seen with `gpt-6-luna`): mm uses `/v1/chat/completions` and always sends tools. This turns the model's reasoning off. Keeping reasoning and tools together needs OpenAI's Responses API: ticket 178, not started.
- **Tried by the author with OpenAI and Mistral AI**: it works. Also checked against a local fake service:
  - without the key, you type the ID;
  - with the key, the models are listed;
  - the written files load.

### Text answers in the `mm init` window can be edited (#177)

The endpoint, the key's variable, the agent's name and the file name are edited where the cursor is:

- `←` `→` move the cursor, and typing inserts there;
- `Home` `End` (or `Ctrl-A` `Ctrl-E`) go to the start and the end;
- `Backspace` deletes before the cursor, `Delete` after it;
- `Ctrl-U` clears the answer.

Before, you could only type or delete at the end.

## Fixed

- **`install.sh` failed when mm was not installed yet**: it removed `/usr/local/bin/mm` before building, and the missing file stopped the script. It now uses `rm -f`.

## Demos

- [`demos/open-ai-compliant/`](../demos/open-ai-compliant/README.md): the `mm init` steps and two agent files written that way, for OpenAI and for Mistral AI (`ministral-8b-2512`, with `apiKeyEnv: MISTRAL_API_KEY`).

## Documentation

- **[How to create an agent with `mm init`](../docs/en/how-to/create-an-agent.md)** (EN, FR): a variant for OpenAI-compatible services, and the editing keys of text answers.
- **[How to run with an OpenAI-compatible server](../docs/en/how-to/run-with-an-openai-compatible-server.md)** (EN, FR): what `mm init` asks for such a service, and a variant for "Function tools with reasoning_effort are not supported".
- **[Command line reference](../docs/en/reference/cli.md)** (EN, FR): the `--base-url`, `--api-key-env` and `--model` rows of `mm init`, and the window's keys.
- **Keyboard shortcuts of the window** ([EN](../guides/tui-keyboard-shortcuts.md), [FR](../guides/raccourcis-clavier-tui.md)): editing a text answer of `mm init`.
- **README**:
  - links to the step-by-step install guides for macOS, Linux and Windows;
  - seven entries the feature list was missing since v1.0.0: decision models, messages queued during an answer, struggle signals, `autoPull`, models taking turns in memory, using mm from another program, and testing a model;
  - three demos added to the table.

## Upgrading

- **Nothing changes in how mm reads an agent file.** Files written by an earlier `mm init` load as they are.
- `mm init` with `openai` asks two more questions. In scripts, give them with `--base-url` and `--api-key-env`, or keep `--yes` to take the defaults: the OpenAI API, `OPENAI_API_KEY`.
- The correction for `provider: openai` sampling (#176) shipped in v1.0.2: see [its notes](v1.0.2.en.md).