shairubin / fun_with_ast

let's have fun manipulating ASTs in Python
Apache License 2.0
0 stars 1 forks source link

fail to match """ #329

Closed shairubin closed 4 months ago

shairubin commented 4 months ago

` class EndpointLoadBalancer:

@staticmethod
def get_endpoint_priorities(secrets: dict,
                            gpt_endpoint_table_name: str,
                            model_name: str):
    with db_conn.cursor() as cursor:
        cursor.execute(f"""
                        SELECT endpoint
                        FROM {gpt_endpoint_table_name}
                        WHERE runtime = (SELECT MAX(runtime) FROM {gpt_endpoint_table_name} WHERE modelname='{model_name}') and modelname='{model_name}'
                        ORDER BY avgtime ASC
         """)

`