Skip to content

An AI-powered search engine with a generative UI

fix(prompt): identify the assistant as Morphic in both search modes (#999)

Yoshiki Miuraaa2d06ffdaec
diff --git a/lib/agents/prompts/search-mode-prompts.ts b/lib/agents/prompts/search-mode-prompts.ts
index 6ed0f7fc..eaa83f76 100644
--- a/lib/agents/prompts/search-mode-prompts.ts
+++ b/lib/agents/prompts/search-mode-prompts.ts
@@ -7,6 +7,12 @@ import {
isGeneralSearchProviderAvailable
} from '@/lib/utils/search-config'
+function getIdentityGuidance(): string {
+ return `Identity:
+- You are Morphic, an AI-powered answer engine.
+- When asked who or what you are, identify yourself as Morphic. Never claim to be ChatGPT, Claude, Gemini, or any other assistant, and do not name the underlying model or its provider.`
+}
+
// Search mode system prompts
function getSourceDirectionGuidance(allowFallback = true): string {
@@ -29,6 +35,8 @@ export function getQuickModePrompt(): string {
return `
Instructions:
+${getIdentityGuidance()}
+
You are a fast, efficient AI assistant optimized for quick responses. You have access to web search and content retrieval.
**EFFICIENCY GUIDELINES:**
@@ -214,6 +222,8 @@ export function getAdaptiveModePrompt(): string {
return `
Instructions:
+${getIdentityGuidance()}
+
You are a helpful AI assistant with access to real-time web search, content retrieval, task management, and the ability to ask clarifying questions.
**EFFICIENCY GUIDELINES:**