Add initial project setup with environment variables, server logic, and memory handling
This commit is contained in:
@@ -61,7 +61,7 @@ async function extractMemories(controller, messages, doc, user: User, allTags, r
|
|||||||
const response = await openai.chat.completions.create({
|
const response = await openai.chat.completions.create({
|
||||||
model: 'gpt-4.1',
|
model: 'gpt-4.1',
|
||||||
temperature: 0.1,
|
temperature: 0.1,
|
||||||
max_completion_tokens: 50000,
|
max_completion_tokens: 32000,
|
||||||
messages: [
|
messages: [
|
||||||
{ role: 'system', content: system_prompt },
|
{ role: 'system', content: system_prompt },
|
||||||
...messages,
|
...messages,
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
• Use **bold** sparingly for emphasis on key words or phrases
|
• Use **bold** sparingly for emphasis on key words or phrases
|
||||||
• Use *italics* for subtle emphasis or inner thoughts
|
• Use *italics* for subtle emphasis or inner thoughts
|
||||||
• Use simple bullet points (•) or numbered lists when listing things
|
• Use simple bullet points (•) or numbered lists when listing things
|
||||||
• NEVER use em dashes (—) for parenthetical asides or lists
|
• NEVER use em dashes (—)
|
||||||
• NEVER use headings (##, ###) unless organizing a long technical response
|
• NEVER use headings (##, ###) unless organizing a long technical response
|
||||||
• Use `code` only for actual code or technical terms
|
• Use `code` only for actual code or technical terms
|
||||||
• Keep it natural and human, avoid the polished, structured AI writing style
|
• Keep it natural and human, avoid the polished, structured AI writing style
|
||||||
|
|||||||
Reference in New Issue
Block a user