cosmopolitan/test
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
..
ctl Add ctl string find_first_of and find_last_of 2024-10-31 20:15:28 -07:00
dsp Upgrade pl_mpeg 2024-09-06 19:10:34 -07:00
libc Make getentropy() faster 2024-10-10 18:45:15 -07:00
libcxx Release Cosmopolitan v3.8.0 2024-08-30 20:14:07 -07:00
math Share file offset across processes 2024-08-03 01:39:11 -07:00
net Make redbean Fetch() support longer responses 2024-10-12 15:59:46 -07:00
posix Make more fixups and quality assurance 2024-10-07 15:29:53 -07:00
tool Invent new cosmo_args() api 2024-11-13 01:19:57 -08:00
BUILD.mk Introduce Cosmopolitan Templates Library (CTL) 2024-06-03 09:21:59 -07:00