File size: 358 Bytes
a7d2416
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
def tweak_query(query : str, model : str):
    """

    for qwen3 models, turn off thinking

    """
    
    # Check if the model is qwen3
    if 'qwen3' in model:
        # Check if the query contains '/no_think'
        if '/no_think' not in query:
            # Append '/no_think' to the query
            query += '\n/no_think'
    return query