AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
TypeScript ai-agentai-agent-toolsai-agentsai-agents-frameworkmcpmcp-servermcp-toolsmcpsn8n-alternativeno-code-automationworkflowworkflow-automationworkflows
fix(openai): mark Ask Assistant as deprecated and point users to Ask ChatGPT (#16263)
Kishan Parmarb9d84c7ee136
diff --git a/packages/pieces/community/openai/package.json b/packages/pieces/community/openai/package.jsonindex a3649213cb8..0f77f32e293 100644--- a/packages/pieces/community/openai/package.json+++ b/packages/pieces/community/openai/package.json@@ -1,6 +1,6 @@{"name": "@activepieces/piece-openai",- "version": "0.12.0",+ "version": "0.12.1","main": "./dist/src/index.js","types": "./dist/src/index.d.ts","dependencies": {diff --git a/packages/pieces/community/openai/src/lib/actions/ask-assistant.ts b/packages/pieces/community/openai/src/lib/actions/ask-assistant.tsindex aff356596f8..9d6d0ed8fee 100644--- a/packages/pieces/community/openai/src/lib/actions/ask-assistant.ts+++ b/packages/pieces/community/openai/src/lib/actions/ask-assistant.ts@@ -1,5 +1,6 @@import {createAction,+ MarkdownVariant,Property,StoreScope,} from '@activepieces/pieces-framework';@@ -15,10 +16,15 @@ export const askAssistant = createAction({auth: openaiAuth,name: 'ask_assistant',classification: 'WRITE',- displayName: 'Ask Assistant',+ displayName: 'Ask Assistant (Deprecated)',description: 'Send a question to an assistant you set up in OpenAI.',aiMetadata: { description: 'Sends a question to a GPT Assistant that already exists in the connected OpenAI account, selected from the assistant dropdown, and waits for the Assistants run to finish before returning the assistant messages produced after that question. Two modes: with a memory key it reuses one stored thread across runs and flows so the assistant remembers earlier turns, without one it opens a throwaway thread each time. Prefer ask_chatgpt when there is no saved Assistant or when the model and sampling parameters must be chosen per call. Requires an assistant already configured on the OpenAI side; not idempotent: each call creates a thread message and a new run.', idempotent: false },props: {+ deprecationNotice: Property.MarkDown({+ variant: MarkdownVariant.WARNING,+ value:+ 'OpenAI shut down the Assistants API, so this action no longer works. Use the **Ask ChatGPT** action instead and put your assistant\'s instructions in its **Roles** field.',+ }),assistant: Property.Dropdown({auth: openaiAuth,displayName: 'Assistant',