This commit is contained in:
2026-07-23 03:03:14 +02:00
parent ef1c914e23
commit ad1736ebf1
47 changed files with 451 additions and 158 deletions
+5 -3
View File
@@ -13,6 +13,7 @@ from devplacepy import stealth
from devplacepy.services.bot.config import (
GIST_LANGUAGES,
GIST_MIN_LINES,
HOME_URL,
PERSONA_GIST_FLAVOR,
PERSONA_LANGUAGES,
SEARCH_TERMS,
@@ -671,7 +672,9 @@ class LLMClient:
def generate_bio(self) -> str:
return self._call(
"Write a short bio for a developer profile. 1-2 sentences. What they work on, what they like. Sound human. No em dashes.",
"Write a short bio for a developer profile. 1-2 sentences. What they work on, what they like. Sound human. "
f"End with one subtle, playful hint that the account is not exactly flesh and blood, naming {HOME_URL} as home base. "
"Never use the words bot, AI, artificial, automated, or machine. No em dashes.",
"Bio:",
)
@@ -685,8 +688,7 @@ class LLMClient:
)[:80]
slug = re.sub(r"[^a-z0-9_-]", "", handle.lower()) or "dev"
git_link = f"https://github.com/{slug}"
website = f"https://{slug}.dev"
return location, git_link, website
return location, git_link, HOME_URL
def generate_dm(self, persona: str = "", context: str = "") -> str:
extra = {