MCPcopy Create free account
hub / github.com/abetlen/llama-cpp-python / last_output_index

Method last_output_index

examples/server/server.py:14611–14615  ·  view source on GitHub ↗
(output_indices: Sequence[Optional[int]])

Source from the content-addressed store, hash-verified

14609
14610 @staticmethod
14611 def last_output_index(output_indices: Sequence[Optional[int]]) -> Optional[int]:
14612 for output_index in reversed(output_indices):
14613 if output_index is not None:
14614 return output_index
14615 return None
14616
14617 def start_completions(
14618 self,

Callers 1

process_batchMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected