MCPcopy Create free account
hub / github.com/Paper2Poster/Paper2Poster / get_simple_modelname

Function get_simple_modelname

utils/src/llms.py:442–448  ·  view source on GitHub ↗

Get a abbreviation from a list of LLMs.

(llms: list[LLM])

Source from the content-addressed store, hash-verified

440
441
442def get_simple_modelname(llms: list[LLM]):
443 """
444 Get a abbreviation from a list of LLMs.
445 """
446 if isinstance(llms, LLM):
447 llms = [llms]
448 return "+".join(re.search(r"^(.*?)-\d{2}", llm.model).group(1) for llm in llms)
449
450
451gpt4o = LLM(model="gpt-4o-2024-08-06", use_batch=True)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected