Files
llm-in-text/backend/__pycache__/prompt.cpython-313.pyc

26 lines
1.5 KiB
Plaintext
Raw Normal View History

<EFBFBD>
-ƍi<C68D><00><00>.<00>SSKrSSKJr S\S\S\4Sjrg)<07>N)<01>Tuple<6C>prefix<69>suffix<69>returnc<00><00>SnU(aUSnX-nUSSnURS5nU(aURS5O/nSRXB*S5nSRUSS5nSUSUS 3nUR5$)
uo
改进后的提示词构建函数。
使用更明确的指令来引导模型生成高质量的续写内容。
<EFBFBD>r<00>N<>
<EFBFBD>u<>You are an expert writing assistant. Continue the text naturally.
CONTEXT:
⟨CURSOR⟩ marks where to continue.
- Before ⟨CURSOR⟩: existing text
- After ⟨CURSOR⟩: following context (if any)
RULES:
- Match existing style, tone, and terminology
- Maintain logical flow
- Write only the continuation, nothing else
- IMPORTANT: Start continuation directly from ⟨CURSOR⟩ position
TEXT:
u ⟨CURSOR⟩z
CONTINUATION:)<03>split<69>join<69>strip) rr<00>MAX_CONTEXT_LINES<45>
first_char<EFBFBD> prefix_lines<65> suffix_lines<65> recent_prefix<69> recent_suffix<69>prompts <20>./Users/allenyuan/llm-in-text/backend/prompt.py<70> build_promptrs<><00><00>
<1B><15><0E><1B>A<EFBFBD>Y<EFBFBD>
<EFBFBD><17>$<24><06><17><01><02><1A><06><19><<3C><<3C><04>%<25>L<EFBFBD>)/<2F>6<EFBFBD><<3C><<3C><04>%<25>R<EFBFBD>L<EFBFBD><18>I<EFBFBD>I<EFBFBD>l<EFBFBD>+=<3D>+><3E>?<3F>@<40>M<EFBFBD><18>I<EFBFBD>I<EFBFBD>l<EFBFBD>2<EFBFBD>A<EFBFBD>.<2E>/<2F>M<EFBFBD><01><0F><0F>|<7C>M<EFBFBD>?<3F>+<0E><11>F<EFBFBD>$ <12><<3C><<3C>><3E><19>)<05>os<6F>typingr<00>strr<00>rr<00><module>rs%<00><01> <09><18>%<1A><13>%<1A>c<EFBFBD>%<1A>c<EFBFBD>%r