Merge branch 'master' of github.com:khoj-ai/khoj into features/include-full-file-in-convo-with-filter

This commit is contained in:
sabaimran
2024-11-07 17:18:23 -08:00
9 changed files with 217 additions and 18 deletions

View File

@@ -607,7 +607,7 @@ export const ChatInputArea = forwardRef<HTMLTextAreaElement, ChatInputProps>((pr
disabled={props.sendDisabled || recording}
/>
</div>
<div className="flex items-center">
<div className="flex items-end pb-2">
{recording ? (
<TooltipProvider>
<Tooltip>

View File

@@ -49,7 +49,7 @@ def normalize_filename(filename):
normalized_filename = f"~/{relpath(filename, start=Path.home())}"
else:
normalized_filename = filename
escaped_filename = f"{normalized_filename}".replace("[", "\[").replace("]", "\]")
escaped_filename = f"{normalized_filename}".replace("[", r"\[").replace("]", r"\]")
return escaped_filename

View File

@@ -92,6 +92,8 @@ def extract_questions_anthropic(
messages.append(ChatMessage(content=prompt, role="user"))
messages, system_prompt = format_messages_for_anthropic(messages, system_prompt)
response = anthropic_completion_with_backoff(
messages=messages,
system_prompt=system_prompt,