shukdevdatta123 commited on
Commit
578a129
·
verified ·
1 Parent(s): 7a19b20

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -18,7 +18,7 @@ def get_diagram_code(prompt, diagram_type, api_key):
18
  {"role": "system", "content": "You are a helpful assistant."},
19
  {"role": "user", "content": f"Generate a {diagram_type} diagram in Mermaid.js syntax based on the following prompt: {prompt}"}
20
  ],
21
- max_tokens=500
22
  )
23
 
24
  return response['choices'][0]['message']['content'].strip()
 
18
  {"role": "system", "content": "You are a helpful assistant."},
19
  {"role": "user", "content": f"Generate a {diagram_type} diagram in Mermaid.js syntax based on the following prompt: {prompt}"}
20
  ],
21
+ max_tokens=2048
22
  )
23
 
24
  return response['choices'][0]['message']['content'].strip()