mini-me v1.0.3
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
openaionly, between the server and the model:- the endpoint,
https://api.openai.com/v1by default (--base-url); - the environment variable that holds the API key,
OPENAI_API_KEYby default, orMISTRAL_API_KEY,CEREBRAS_API_KEY,HF_TOKEN… (new flag--api-key-env).
- the endpoint,
- 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 firstmm initwith 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:
baseUrlandapiKeyEnvwhen they are not the defaults;- a comment naming the key's variable;
- a commented
reasoning_effort: noneinsampling. Uncomment it if the API answers "Function tools with reasoning_effort are not supported" (seen withgpt-6-luna): mm uses/v1/chat/completionsand 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;HomeEnd(orCtrl-ACtrl-E) go to the start and the end;Backspacedeletes before the cursor,Deleteafter it;Ctrl-Uclears the answer.
Before, you could only type or delete at the end.
Fixed
install.shfailed when mm was not installed yet: it removed/usr/local/bin/mmbefore building, and the missing file stopped the script. It now usesrm -f.
Demos
demos/open-ai-compliant/: themm initsteps and two agent files written that way, for OpenAI and for Mistral AI (ministral-8b-2512, withapiKeyEnv: 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 initasks 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-envand--modelrows ofmm 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 initload as they are. mm initwithopenaiasks two more questions. In scripts, give them with--base-urland--api-key-env, or keep--yesto take the defaults: the OpenAI API,OPENAI_API_KEY.- The correction for
provider: openaisampling (#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 |
|