Agent docs upd

1. Added a page about interacting with agent API.
2. Added a page about interacting with agent webhooks.
3. Fixed small bug with /api/answer
This commit is contained in:
Pavel
2025-06-24 16:48:12 +02:00
parent f0908af3c0
commit 327ae35420
4 changed files with 389 additions and 2 deletions

View File

@@ -614,7 +614,7 @@ class Answer(Resource):
try:
question = data["question"]
history = limit_chat_history(
json.loads(data.get("history", [])), gpt_model=gpt_model
json.loads(data.get("history", "[]")), gpt_model=gpt_model
)
conversation_id = data.get("conversation_id")
prompt_id = data.get("prompt_id", "default")