mirror of
https://github.com/ikawrakow/ik_llama.cpp.git
synced 2026-05-01 03:41:53 +00:00
Merge pull request #648 from ikawrakow/fcp/missing_token_ps
Fix missing token per second for webui after function call update
This commit is contained in:
Binary file not shown.
@@ -2889,7 +2889,11 @@ static std::vector<json> format_partial_response_oaicompat(server_task_result ta
|
|||||||
};
|
};
|
||||||
streaming_chunks.push_back(finish_chunk);
|
streaming_chunks.push_back(finish_chunk);
|
||||||
}
|
}
|
||||||
|
if (server_task_result_dict.count(task_result.id) > 0)
|
||||||
|
{
|
||||||
|
for (auto& chunk : streaming_chunks)
|
||||||
|
chunk.push_back({ "timings", server_task_result_dict[task_result.id].timings.to_json() });
|
||||||
|
}
|
||||||
// Return streaming chunks (could be just final chunk if no diffs)
|
// Return streaming chunks (could be just final chunk if no diffs)
|
||||||
if (!streaming_chunks.empty()) {
|
if (!streaming_chunks.empty()) {
|
||||||
return streaming_chunks;
|
return streaming_chunks;
|
||||||
|
|||||||
4
examples/server/webui/dist/index.html
vendored
4
examples/server/webui/dist/index.html
vendored
File diff suppressed because one or more lines are too long
@@ -228,6 +228,26 @@ const SETTING_SECTIONS = (
|
|||||||
localConfig: typeof CONFIG_DEFAULT,
|
localConfig: typeof CONFIG_DEFAULT,
|
||||||
setLocalConfig: (config: typeof CONFIG_DEFAULT) => void
|
setLocalConfig: (config: typeof CONFIG_DEFAULT) => void
|
||||||
): SettingSection[] => [
|
): SettingSection[] => [
|
||||||
|
{
|
||||||
|
title: (
|
||||||
|
<>
|
||||||
|
<BookmarkIcon className={ICON_CLASSNAME} />
|
||||||
|
Presets
|
||||||
|
</>
|
||||||
|
),
|
||||||
|
fields: [
|
||||||
|
{
|
||||||
|
type: SettingInputType.CUSTOM,
|
||||||
|
key: 'custom', // dummy key for presets
|
||||||
|
component: () => (
|
||||||
|
<PresetsManager
|
||||||
|
currentConfig={localConfig}
|
||||||
|
onLoadPreset={setLocalConfig}
|
||||||
|
/>
|
||||||
|
),
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: (
|
title: (
|
||||||
<>
|
<>
|
||||||
@@ -489,26 +509,7 @@ const SETTING_SECTIONS = (
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
|
||||||
title: (
|
|
||||||
<>
|
|
||||||
<BookmarkIcon className={ICON_CLASSNAME} />
|
|
||||||
Presets
|
|
||||||
</>
|
|
||||||
),
|
|
||||||
fields: [
|
|
||||||
{
|
|
||||||
type: SettingInputType.CUSTOM,
|
|
||||||
key: 'custom', // dummy key for presets
|
|
||||||
component: () => (
|
|
||||||
<PresetsManager
|
|
||||||
currentConfig={localConfig}
|
|
||||||
onLoadPreset={setLocalConfig}
|
|
||||||
/>
|
|
||||||
),
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
];
|
];
|
||||||
|
|
||||||
export default function SettingDialog({
|
export default function SettingDialog({
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ html {
|
|||||||
.chat-bubble-base-300 {
|
.chat-bubble-base-300 {
|
||||||
--tw-bg-opacity: 1;
|
--tw-bg-opacity: 1;
|
||||||
--tw-text-opacity: 1;
|
--tw-text-opacity: 1;
|
||||||
@apply bg-base-300 text-base-content;
|
@apply break-words bg-base-300 text-base-content;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Highlight.js */
|
/* Highlight.js */
|
||||||
|
|||||||
Reference in New Issue
Block a user