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

Method _response_item_status

examples/server/server.py:9181–9186  ·  view source on GitHub ↗
(
        finish_reason: Optional[str],
    )

Source from the content-addressed store, hash-verified

9179
9180 @staticmethod
9181 def _response_item_status(
9182 finish_reason: Optional[str],
9183 ) -> str:
9184 if finish_reason == "length":
9185 return "incomplete"
9186 return "completed"
9187
9188 def _add_response_stream_item(
9189 self,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected