clean up some shit
This commit is contained in:
		| @ -41,6 +41,9 @@ export const envConfig = { | ||||
|     : 3600000, | ||||
|   botAccountId: process.env.PLEROMA_ACCOUNT_ID, | ||||
|   replyWithContext: process.env.REPLY_WITH_CONTEXT === "true" ? true : false, | ||||
|   adHocPostInstructions: process.env.AD_HOC_POST_INSTRUCTIONS | ||||
|     ? process.env.AD_HOC_POST_INSTRUCTIONS | ||||
|     : "Say something.", | ||||
| }; | ||||
|  | ||||
| const ollamaConfig: OllamaConfigOptions = { | ||||
| @ -258,15 +261,15 @@ const createTimelinePost = async () => { | ||||
|     ollamaSystemPrompt, | ||||
|     ollamaUrl, | ||||
|     pleromaInstanceUrl, | ||||
|     adHocPostInstructions, | ||||
|   } = envConfig; | ||||
|   const ollamaRequestBody: OllamaChatRequest = { | ||||
|     model: ollamaModel, | ||||
|     messages: [ | ||||
|       { role: "system", content: ollamaSystemPrompt as string }, | ||||
|       { role: "system", content: ollamaSystemPrompt }, | ||||
|       { | ||||
|         role: "user", | ||||
|         content: | ||||
|           "Make a post about something. Keep your tone authentic, as if you are a real person making a post about a topic that interests you on a microblogging platform. This can be about anything like politics, gardening, homesteading, your favorite animal, a fun fact, what happened during your day, seeking companionship, baking, cooking, et cetera. Do not format the post with a title or quotes, nor sign the post with your name. It will be posted to your timeline so everyone will know you said it.", | ||||
|         content: adHocPostInstructions, | ||||
|       }, | ||||
|     ], | ||||
|     stream: false, | ||||
|  | ||||
		Reference in New Issue
	
	Block a user