MCPcopy Index your code
hub / github.com/evalplus/evalplus / is_direct_completion

Method is_direct_completion

evalplus/provider/vllm.py:39–40  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

37 self.llm = LLM(model=name, max_model_len=2048, **kwargs)
38
39 def is_direct_completion(self) -> bool:
40 return self.force_base_prompt or self.tokenizer.chat_template is None
41
42 def codegen(
43 self, prompt: str, do_sample: bool = True, num_samples: int = 200

Callers 2

__init__Method · 0.95
codegenMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected