legends810 commited on
Commit
6345b4d
·
verified ·
1 Parent(s): e085591

Update app/actions/rewrite-prompt.ts

Browse files
Files changed (1) hide show
  1. app/actions/rewrite-prompt.ts +1 -4
app/actions/rewrite-prompt.ts CHANGED
@@ -5,7 +5,7 @@ const END_REWRITE_PROMPT = ">>>>>>> END PROMPT >>>>>>";
5
 
6
  export const callAiRewritePrompt = async (
7
  prompt: string,
8
- { token, billTo }: { token: string; billTo?: string | null }
9
  ) => {
10
  try {
11
  // Use the provided token as the API key, or fall back to environment variable
@@ -50,9 +50,6 @@ Make sure to return the prompt in the same language as the prompt you are given.
50
  return rewrittenPrompt || prompt;
51
  }
52
 
53
- // billTo parameter is kept for API compatibility but not used in Gemini API
54
- console.log(`API call made${billTo ? ` with billing to ${billTo}` : ''}`);
55
-
56
  // If markers are not found, return the original prompt as a fallback
57
  return prompt;
58
 
 
5
 
6
  export const callAiRewritePrompt = async (
7
  prompt: string,
8
+ { token }: { token: string } // 'billTo' को यहां से remove कर दिया गया है
9
  ) => {
10
  try {
11
  // Use the provided token as the API key, or fall back to environment variable
 
50
  return rewrittenPrompt || prompt;
51
  }
52
 
 
 
 
53
  // If markers are not found, return the original prompt as a fallback
54
  return prompt;
55