export llama_timings as struct and expose them in server
This commit is contained in:
parent
a76ce02a6c
commit
30d973dc42
7 changed files with 1631 additions and 1309 deletions
|
@ -72,6 +72,9 @@ export async function* llama(prompt, params = {}, config = {}) {
|
|||
|
||||
// if we got a stop token from server, we will break here
|
||||
if (result.data.stop) {
|
||||
if (result.data.generation_settings) {
|
||||
generation_settings = result.data.generation_settings;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue