2
0

go_api_func_llm.py 357 B

1234567891011
  1. from .tool.func import *
  2. async def api_func_llm():
  3. if flask.request.method == 'POST':
  4. other_set = {}
  5. other_set["prompt"] = flask.request.form.get('prompt', '')
  6. other_set["ip"] = ip_check()
  7. return flask.jsonify(await python_to_golang(sys._getframe().f_code.co_name, other_set))
  8. else:
  9. return flask.jsonify({})