mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-02 21:19:12 +00:00
Merge branch 'master' of github.com:khoj-ai/khoj into features/add-chat-controls
This commit is contained in:
@@ -1913,7 +1913,7 @@ def scheduled_chat(
|
||||
raw_response = requests.post(url, headers=headers, json=json_payload, allow_redirects=False)
|
||||
|
||||
# Handle redirect manually if necessary
|
||||
if raw_response.status_code in [301, 302]:
|
||||
if raw_response.status_code in [301, 302, 308]:
|
||||
redirect_url = raw_response.headers["Location"]
|
||||
logger.info(f"Redirecting to {redirect_url}")
|
||||
raw_response = requests.post(redirect_url, headers=headers, json=json_payload)
|
||||
|
||||
@@ -355,7 +355,7 @@ command_descriptions = {
|
||||
|
||||
command_descriptions_for_agent = {
|
||||
ConversationCommand.General: "Agent can use the agents knowledge base and general knowledge.",
|
||||
ConversationCommand.Notes: "Agent can search the users knowledge base for information.",
|
||||
ConversationCommand.Notes: "Agent can search the personal knowledge base for information, as well as its own.",
|
||||
ConversationCommand.Online: "Agent can search the internet for information.",
|
||||
ConversationCommand.Webpage: "Agent can read suggested web pages for information.",
|
||||
ConversationCommand.Summarize: "Agent can read an entire document. Agents knowledge base must be a single document.",
|
||||
|
||||
Reference in New Issue
Block a user