liuweiqing
liuweiqing
 

nginx配置: user www-data; worker_processes auto; pid /run/nginx.pid; include /etc/nginx/modules-enabled/*.conf; events { worker_connections 1024; } http { sendfile on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 65; types_hash_max_size 2048; include /etc/nginx/mime.types; default_type application/octet-stream;...
代码: 1.定义: ``` def ask_chatgpt(prompt, model, message_id, parent_message_id, conversation_id=None, stream=True): data = { "prompt": prompt, "model": model, "message_id": message_id, "parent_message_id": parent_message_id, "conversation_id": conversation_id, "stream": stream } response = requests.post(f"{base_url}/api/conversation/talk", json=data)...
api documentations:https://github.com/pengzhile/pandora/blob/master/doc/HTTP-API.md