Archived
Merge main into laya-arch-plugin
This commit is contained in:
commit
ec243c2a7d
189 files changed
+11212
-7060
No files matched your search
+2
-3
@@ -24,6 +24,8 @@ struct ChatTemplate::Impl {
|
||||
bool add_bos = false, add_eos = false;
|
||||
};
|
||||
|
||||
/* The template's own words: the lifted autoparser wraps whatever the render threw in a sentence
|
||||
* about parser generation, which the render's failure is not. */
|
||||
static std::string template_words(const char* what) {
|
||||
static const char kWrap[] = "Unable to generate parser for this template. Automatic parser "
|
||||
"generation failed: ";
|
||||
@@ -190,9 +192,6 @@ static bool lead_system(const ojson& messages, ojson* out) {
|
||||
return true;
|
||||
}
|
||||
|
||||
/* The template's own words: the lifted autoparser wraps whatever the render threw in a sentence
|
||||
* about parser generation, which the render's failure is not. */
|
||||
|
||||
int ChatTemplate::apply(const ojson& messages, const ojson& tools, const ChatOptions& opt,
|
||||
ChatPrompt* out) const {
|
||||
if (!ready()) {
|
||||
|
||||
Reference in new issue
Block a user