mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-18 01:10:14 +01:00
✨ feat: Enhance form submission for touch screens (#7198)
* ✨ feat: Enhance form submission for touch screens
* chore: add comment
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* chore: add comment
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* chore: linting in AnthropicClient
* chore: Add anthropic model outputs for Claude 3.7
* refactor: Simplify touch-screen detection in message submission
* fix: Correct button rendering order for chat collapse/expand icons
* Revert "refactor: Simplify touch-screen detection in message submission"
This reverts commit 8638442a4c.
* refactor: Improve touchscreen detection for focus handling in ChatForm and useFocusChatEffect
* chore: EditMessage linting
* refactor: Reorder dropdown items in ExportAndShareMenu
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Danny Avila <danny@librechat.ai>
This commit is contained in:
parent
6e663b2480
commit
fc6e14efe2
7 changed files with 35 additions and 24 deletions
|
|
@ -396,13 +396,13 @@ class AnthropicClient extends BaseClient {
|
|||
const formattedMessages = orderedMessages.map((message, i) => {
|
||||
const formattedMessage = this.useMessages
|
||||
? formatMessage({
|
||||
message,
|
||||
endpoint: EModelEndpoint.anthropic,
|
||||
})
|
||||
message,
|
||||
endpoint: EModelEndpoint.anthropic,
|
||||
})
|
||||
: {
|
||||
author: message.isCreatedByUser ? this.userLabel : this.assistantLabel,
|
||||
content: message?.content ?? message.text,
|
||||
};
|
||||
author: message.isCreatedByUser ? this.userLabel : this.assistantLabel,
|
||||
content: message?.content ?? message.text,
|
||||
};
|
||||
|
||||
const needsTokenCount = this.contextStrategy && !orderedMessages[i].tokenCount;
|
||||
/* If tokens were never counted, or, is a Vision request and the message has files, count again */
|
||||
|
|
@ -680,7 +680,7 @@ class AnthropicClient extends BaseClient {
|
|||
}
|
||||
|
||||
getCompletion() {
|
||||
logger.debug('AnthropicClient doesn\'t use getCompletion (all handled in sendCompletion)');
|
||||
logger.debug("AnthropicClient doesn't use getCompletion (all handled in sendCompletion)");
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -888,7 +888,7 @@ class AnthropicClient extends BaseClient {
|
|||
}
|
||||
|
||||
getBuildMessagesOptions() {
|
||||
logger.debug('AnthropicClient doesn\'t use getBuildMessagesOptions');
|
||||
logger.debug("AnthropicClient doesn't use getBuildMessagesOptions");
|
||||
}
|
||||
|
||||
getEncoding() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue