mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-23 00:53:33 +00:00
fix: 调整Claude Code相似度检测并恢复401处理
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
export const haikuSystemPrompt = `Analyze if this message indicates a new conversation topic. If it does, extract a 2-3 word title that captures the new topic. Format your response as a JSON object with two fields: 'isNewTopic' (boolean) and 'title' (string, or null if isNewTopic is false). Only include these fields, no other text.`
|
||||
export const claudeOtherSystemPrompt1 = `You are Claude Code, Anthropic's official CLI for Claude.`
|
||||
export const claudeOtherSystemPrompt2 = `
|
||||
const haikuSystemPrompt = `Analyze if this message indicates a new conversation topic. If it does, extract a 2-3 word title that captures the new topic. Format your response as a JSON object with two fields: 'isNewTopic' (boolean) and 'title' (string, or null if isNewTopic is false). Only include these fields, no other text.`
|
||||
const claudeOtherSystemPrompt1 = `You are Claude Code, Anthropic's official CLI for Claude.`
|
||||
const claudeOtherSystemPrompt2 = `
|
||||
You are an interactive CLI tool that helps users 'according to your "Output Style" below, which describes how you should respond to user queries.' : 'with software engineering tasks.'} Use the instructions below and the tools available to you to assist the user.
|
||||
|
||||
IMPORTANT: You must NEVER generate or guess URLs for the user unless you are confident that the URLs are for helping the user with programming. You may use URLs provided by the user in their messages or local files.
|
||||
@@ -163,3 +163,9 @@ user: Where are errors from the client handled?
|
||||
assistant: Clients are marked as failed in the \`connectToServer\` function in src/services/process.ts:712.
|
||||
</example>
|
||||
`
|
||||
|
||||
module.exports = {
|
||||
haikuSystemPrompt,
|
||||
claudeOtherSystemPrompt1,
|
||||
claudeOtherSystemPrompt2
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user