fix prompt structure (I am retarded)
This commit is contained in:
		| @ -72,9 +72,7 @@ const storePromptData = async ( | ||||
|     await prisma.response.create({ | ||||
|       data: { | ||||
|         response: ollamaResponseBody.response, | ||||
|         request: `${notification.status.account.fqn} asks: ${striptags( | ||||
|           notification.status.content | ||||
|         )}`, | ||||
|         request: striptags(notification.status.content), | ||||
|         to: notification.account.fqn, | ||||
|         pleromaNotificationId: notification.status.id, | ||||
|       }, | ||||
| @ -110,7 +108,9 @@ const generateOllamaRequest = async ( | ||||
|       const ollamaRequestBody: OllamaRequest = { | ||||
|         model: process.env.OLLAMA_MODEL as string, | ||||
|         system: process.env.OLLAMA_SYSTEM_PROMPT as string, | ||||
|         prompt: striptags(notification.status.content), | ||||
|         prompt: `${notification.status.account.fqn} asks: ${striptags( | ||||
|           notification.status.content | ||||
|         )}`, | ||||
|         stream: false, | ||||
|       }; | ||||
|       const response = await fetch(`${process.env.OLLAMA_URL}/api/generate`, { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user