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

Method prompt_visible_start

examples/server/server.py:15705–15709  ·  view source on GitHub ↗
(self, prompt_plan: PromptPlan)

Source from the content-addressed store, hash-verified

15703 return prompt_text, PromptPlan.from_tokens(prompt_text, prompt_tokens)
15704
15705 def prompt_visible_start(self, prompt_plan: PromptPlan) -> int:
15706 model = self.scheduler.model
15707 if prompt_plan.text_tokens and prompt_plan.text_tokens[0] == model.bos_token:
15708 return 1
15709 return 0
15710
15711 def initial_prompt_records(
15712 self,

Callers 1

request_from_preparedMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected