CodeGeeX4-ALL-9B, a versatile model for all AI software development scenarios, including code completion, code interpreter, web search, function calling, repository-level Q&A and much more.
{
"model": "codegeex4",
"messages": [
{
"role": "user",
"content": "###LANGUAGE:Python\n###MODE:BLOCK\n<|code_suffix|>\n<|code_prefix|>def parse_nested_parens(paren_string: str) -> List[int]:\n \"\"\" Input to this function is a string represented multiple groups for nested parentheses separated by spaces.\n For each of the group, output the deepest level of nesting of parentheses.\n E.g. (()()) has maximum two levels of nesting while ((())) has three.\n\n >>> parse_nested_parens('(()()) ((())) () ((())()())')\n [2, 3, 1, 3]\n\"\"\"\n<|code_middle|>"
}
],
"temperature": 0.2,
"top_p": 0.95,
"max_tokens": 64,
"presence_penalty": 1,
"stream": false,
"stop": []
}
使用ollama本地运行codegeex4 请求补全的接口
curl -s http://localhost:62333/v1/completions -d @/tmp/p3.json|jq .
请求的body
响应
"finish_reason": "load"
,没有生成text
是何原因?