Merge 4f0a128e28
into 86e7299ef5
This commit is contained in:
commit
5ecc95ccb6
1 changed files with 1 additions and 2 deletions
|
@ -464,8 +464,7 @@ static std::vector<json> format_partial_response_oaicompat(json result, const st
|
||||||
if (!result.contains("model") || !result.contains("oaicompat_token_ctr")) {
|
if (!result.contains("model") || !result.contains("oaicompat_token_ctr")) {
|
||||||
return std::vector<json>({result});
|
return std::vector<json>({result});
|
||||||
}
|
}
|
||||||
|
bool first = json_value(result, "oaicompat_token_ctr", 1) == 1;
|
||||||
bool first = json_value(result, "oaicompat_token_ctr", 0) == 0;
|
|
||||||
std::string modelname = json_value(result, "model", std::string(DEFAULT_OAICOMPAT_MODEL));
|
std::string modelname = json_value(result, "model", std::string(DEFAULT_OAICOMPAT_MODEL));
|
||||||
|
|
||||||
bool stopped_word = json_value(result, "stopped_word", false);
|
bool stopped_word = json_value(result, "stopped_word", false);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue