Skip to content

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

🐛 fix: Converted the getter `name` and `description` of Azure AI Search Plugin to a property (#1599)

Naosuke Yokoe3ed6cef58feb
diff --git a/api/app/clients/tools/AzureAiSearch.js b/api/app/clients/tools/AzureAiSearch.js
index 2d74c00543..9b50aa2c43 100644
--- a/api/app/clients/tools/AzureAiSearch.js
+++ b/api/app/clients/tools/AzureAiSearch.js
@@ -16,6 +16,9 @@ class AzureAISearch extends StructuredTool {
constructor(fields = {}) {
super();
+ this.name = 'azure-ai-search';
+ this.description =
+ 'Use the \'azure-ai-search\' tool to retrieve search results relevant to your input';
// Initialize properties using helper function
this.serviceEndpoint = this._initializeField(
@@ -68,15 +71,6 @@ class AzureAISearch extends StructuredTool {
});
}
- // Simplified getter methods
- get name() {
- return 'azure-ai-search';
- }
-
- get description() {
- return 'Use the \'azure-ai-search\' tool to retrieve search results relevant to your input';
- }
-
// Improved error handling and logging
async _call(data) {
const { query } = data;
diff --git a/api/app/clients/tools/structured/AzureAISearch.js b/api/app/clients/tools/structured/AzureAISearch.js
index 2d74c00543..9b50aa2c43 100644
--- a/api/app/clients/tools/structured/AzureAISearch.js
+++ b/api/app/clients/tools/structured/AzureAISearch.js
@@ -16,6 +16,9 @@ class AzureAISearch extends StructuredTool {
constructor(fields = {}) {
super();
+ this.name = 'azure-ai-search';
+ this.description =
+ 'Use the \'azure-ai-search\' tool to retrieve search results relevant to your input';
// Initialize properties using helper function
this.serviceEndpoint = this._initializeField(
@@ -68,15 +71,6 @@ class AzureAISearch extends StructuredTool {
});
}
- // Simplified getter methods
- get name() {
- return 'azure-ai-search';
- }
-
- get description() {
- return 'Use the \'azure-ai-search\' tool to retrieve search results relevant to your input';
- }
-
// Improved error handling and logging
async _call(data) {
const { query } = data;