MCPcopy Create free account
hub / github.com/IyadhKhalfallah/Code2Flowchart / async_generate_output

Function async_generate_output

code2flowchart/generators.py:18–26  ·  view source on GitHub ↗
(file_name, code)

Source from the content-addressed store, hash-verified

16
17
18async def async_generate_output(file_name, code):
19 llm = OpenAI(temperature=0.9)
20
21 prompt = flowchart_template(
22 f"""
23 {code}
24 """)
25 res = await llm.agenerate([prompt])
26 return generate_flowchart(file_name, res.generations[0][0].text.replace('```', ''))
27
28

Callers 1

async_generateMethod · 0.90

Calls 2

flowchart_templateFunction · 0.90
generate_flowchartFunction · 0.90

Tested by

no test coverage detected