bedrust is a neat way to invoke models on Amazon Bedrock.
Currently supporting the following models:
- Claude V2
- Claude V3 Sonnet
- Claude V3 Haiku
- Llama2 70B
- Cohere Command
- Jurrasic 2 Ultra
- Titan Text Express V1
- Mistral AI models (Mixtral, Mistral7b and Mistral Large)
*/*: Fix many Rust ports to run without COMPAT11
RISCV does not include COMPAT11 by default. But Rust's libc bound the
compat-11 symbols until version 0.2.176. Patch a great many Rust ports
to use a newer version of libc, to eliminate the dependency on COMPAT11.
Explicitly patching Cargo.lock isn't usually necessarily, since within
the build jail cargo is forced to use whichever crates Makefile.crates
installs there.
Notes on specific ports:
* textproc/bookokrat: Rework bookokrat's existing patch to be more
robust. Also, report the issue upstream:
https://github.com/bugzmanov/bookokrat/issues/182
(Only the first 15 lines of the commit message are shown above )
misc/bedrust: fix build on powerpc64
Little-endian is misdetected:
/wrkdirs/usr/ports/misc/bedrust/work/bedrust-0.8.8/cargo-crates/aws-lc-sys-0.27.1/aws-lc/crypto/fipsmodule/sha/sha1-altivec.c:107:5:
error: call to undeclared function 'vec_vsx_ld'; ISO C99 and later do not
support implicit function declarations [-Wimplicit-function-declaration]
107 | vec_vsx_ld(0, (const unsigned char*) data);
| ^
/wrkdirs/usr/ports/misc/bedrust/work/bedrust-0.8.8/cargo-crates/aws-lc-sys-0.27.1/aws-lc/crypto/fipsmodule/sha/sha1-altivec.c:106:30:
error: initializing '__vector unsigned char const' (vector of 16 'unsigned char'
values) with an expression of incompatible type 'int'
106 | const vector unsigned char unaligned_data =
| ^
107 | vec_vsx_ld(0, (const unsigned char*) data);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 errors generated.
*/*: remove STRIP_CMD calls in rust based ports
This is not needed after bc4fedc1fec0d359365c04d43be9e32bf101a50e
PR: 246993
Differential Revision: https://reviews.freebsd.org/D46503