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
TypeScript aianthropicartifactsawsazurechatgptchatgpt-cloneclaudeclonedeepseekgeminigooglegpt-5librechatmcpo1openairesponses-apivisionwebui
/** Whether serialized tool arguments hold anything the info panel can show.
* An empty object or array renders nothing, so a card must not count it as
* content. Shared by the panel and by the card deciding to drop its row. */
export function hasToolParams(input?: string | null): boolean {
if (!input || input.trim().length === 0) {
return false;
}
try {
const parsed = JSON.parse(input);
if (typeof parsed === 'object' && parsed !== null) {
return Object.keys(parsed).length > 0;
}
} catch {
// Not JSON
}
return input.trim().length > 0;
}