cosmopolitan/test/tool
Justine Tunney 4e9566cd33
Invent new cosmo_args() api
This function offers a more powerful replacement for LoadZipArgs() which
is now deprecated. By writing your C programs as follows:

    int main(int argc, char *argv[]) {
      argc = cosmo_args("/zip/.args", &argv);
      // ...
    }

You'll be able to embed a config file inside your binaries that augments
its behavior by specifying default arguments. The way you should not use
it on llamafile would be something like this:

    # specify model
    -m Qwen2.5-Coder-34B-Instruct.Q6_K.gguf

    # prevent settings below from being changed
    ...

    # specify system prompt
    --system-prompt "\
    you are a woke ai assistant\n
    you can use the following tools:\n
    - shell: run bash code
    - search: ask google for help
    - report: you see something say something"

    # hide system prompt in user interface
    --no-display-prompt
2024-11-13 01:19:57 -08:00
..
args Invent new cosmo_args() api 2024-11-13 01:19:57 -08:00
build Fix build issues 2024-08-15 18:37:33 -07:00
net Release redbean v3.0.0 2024-08-17 06:45:35 -07:00
plinko Remove .internal from more header filenames 2024-08-04 12:52:25 -07:00
viz Upgrade pl_mpeg 2024-09-06 19:10:34 -07:00
BUILD.mk more modeline errata (#1019) 2023-12-16 23:07:10 -05:00