mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-13 04:33:42 +08:00
feat: claude function call
This commit is contained in:
@@ -69,6 +69,7 @@ import {
|
||||
isVisionModel,
|
||||
isFirefox,
|
||||
isSupportRAGModel,
|
||||
isFunctionCallModel,
|
||||
} from "../utils";
|
||||
|
||||
import { uploadImage as uploadImageRemote } from "@/app/utils/chat";
|
||||
@@ -636,19 +637,17 @@ export function ChatActions(props: {
|
||||
text={Locale.Chat.InputActions.Masks}
|
||||
icon={<MaskIcon />}
|
||||
/>
|
||||
{config.pluginConfig.enable &&
|
||||
/^gpt(?!.*03\d{2}$).*$/.test(currentModel) &&
|
||||
currentModel != "gpt-4-vision-preview" && (
|
||||
<ChatAction
|
||||
onClick={switchUsePlugins}
|
||||
text={
|
||||
usePlugins
|
||||
? Locale.Chat.InputActions.DisablePlugins
|
||||
: Locale.Chat.InputActions.EnablePlugins
|
||||
}
|
||||
icon={usePlugins ? <EnablePluginIcon /> : <DisablePluginIcon />}
|
||||
/>
|
||||
)}
|
||||
{config.pluginConfig.enable && isFunctionCallModel(currentModel) && (
|
||||
<ChatAction
|
||||
onClick={switchUsePlugins}
|
||||
text={
|
||||
usePlugins
|
||||
? Locale.Chat.InputActions.DisablePlugins
|
||||
: Locale.Chat.InputActions.EnablePlugins
|
||||
}
|
||||
icon={usePlugins ? <EnablePluginIcon /> : <DisablePluginIcon />}
|
||||
/>
|
||||
)}
|
||||
|
||||
<ChatAction
|
||||
onClick={() => setShowModelSelector(true)}
|
||||
|
||||
Reference in New Issue
Block a user