MCPcopy Create free account
hub / github.com/zai-org/CodeGeeX / process_extra_prompt

Function process_extra_prompt

codegeex/benchmark/utils.py:102–112  ·  view source on GitHub ↗

Processes the extra prompt.

(prompt: str, language_type: str = None)

Source from the content-addressed store, hash-verified

100
101
102def process_extra_prompt(prompt: str, language_type: str = None) -> str:
103 """
104 Processes the extra prompt.
105 """
106 language = language_type.lower()
107 if language in LANGUAGE_TAG:
108 extra_prompt = LANGUAGE_TAG[language] + "\n"
109 else:
110 extra_prompt = ""
111
112 return extra_prompt + prompt
113
114
115def is_code_generation_finished(

Callers 1

serverFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected