File size: 364 Bytes
cc93c47
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from agent import prompts, llm_utils
from config import Config

CFG = Config()

def english_polishing(content):
    prompt = prompts.generate_english_polishing_prompt(content)
    messages = [{
        "role": "user",
        "content": prompt,
    }]
    
    yield from llm_utils.llm_stream_response(
        model=CFG.fast_llm_model,
        messages=messages)