45
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2026-04-16 21:15:47 +10:00
parent e8adda9621
commit 6211267fe8

View File

@@ -211,9 +211,9 @@ def gpt_response_message(content: str, name_promt: str):
contentGPT = wp.get_promt(name_promt).replace('{content}', content)
# url = 'http://45.129.78.228:8484' #10.8.0.14:5500
url = 'http://45.129.78.228:8484' #10.8.0.14:5500
# url = 'http://217.11.166.147:8484'
url = 'http://127.0.0.1:8484'
# url = 'http://127.0.0.1:8484'
params = {'text': contentGPT}
# Ограничение количества попыток
@@ -633,5 +633,6 @@ async def get_logs():
lines = file.readlines()[-10:] # последние 10 строк
return {"logs": lines}
if __name__ == "__main__":
uvicorn.run("main:app", port=8001, reload=True)
# if __name__ == "__main__":
# uvicorn.run("main:app", port=8001, reload=True)