Archived
abi: a request's words for the plugin (RadBatch::plugin_words), ABI 32
This commit is contained in:
1 parent
d60da58732
commit
5a2732f063
15 files changed
+207
-8
No files matched your search
@@ -111,6 +111,8 @@ struct RadBuilder {
|
||||
* output (rad_declare_pooled). */
|
||||
rad_buf logits = 0;
|
||||
rad_buf pooled = 0;
|
||||
/* The words a request may hand the plugin (rad_declare_plugin_words). */
|
||||
int64_t plugin_words = 0;
|
||||
|
||||
/* The draft head's declaration (rad_declare_drafter), and whether it keeps no cache of its
|
||||
* own (rad_drafter_shared_kv) and at which rotary offset. */
|
||||
@@ -294,6 +296,13 @@ extern "C" int rad_declare_pooled(RadBuilder* b, rad_buf pooled) {
|
||||
return RAD_OK;
|
||||
}
|
||||
|
||||
/* The words a request may hand the plugin, recorded as the core records them. */
|
||||
extern "C" int rad_declare_plugin_words(RadBuilder* b, int64_t max_words) {
|
||||
if (!b || max_words < 0) return RAD_E_INVAL;
|
||||
b->plugin_words = max_words;
|
||||
return RAD_OK;
|
||||
}
|
||||
|
||||
/* An image generator's declaration, recorded whole; it too excludes logits. */
|
||||
extern "C" int rad_declare_generator(RadBuilder* b, const RadGeneratorDecl* d) {
|
||||
if (!b || !d || !d->image_out || b->logits || b->pooled) return RAD_E_INVAL;
|
||||
|
||||
Reference in new issue
Block a user