Skip to content

Commit

Permalink
DH-5776/fixing black
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammadrezaPourreza committed May 10, 2024
1 parent 5347382 commit ba2da33
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dataherald/services/sql_generations.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ def update_the_initial_sql_generation(
initial_sql_generation.intermediate_steps = sql_generation.intermediate_steps
return self.sql_generation_repository.update(initial_sql_generation)

def create( # noqa: PLR0912
def create( # noqa: PLR0912
self, prompt_id: str, sql_generation_request: SQLGenerationRequest
) -> SQLGeneration: # noqa: PLR0912
) -> SQLGeneration: # noqa: PLR0912
initial_sql_generation = SQLGeneration(
prompt_id=prompt_id,
created_at=datetime.now(),
Expand Down
2 changes: 1 addition & 1 deletion dataherald/sql_generator/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def stream_agent_steps( # noqa: PLR0912, C901
sql_generation_repository: SQLGenerationRepository,
queue: Queue,
metadata: dict = None,
): # noqa: PLR0912
): # noqa: PLR0912
try:
with get_openai_callback() as cb:
for chunk in agent_executor.stream(
Expand Down
4 changes: 2 additions & 2 deletions dataherald/sql_generator/dataherald_sqlagent.py
Original file line number Diff line number Diff line change
Expand Up @@ -710,13 +710,13 @@ def create_sql_agent(
)

@override
def generate_response( # noqa: PLR0912
def generate_response( # noqa: PLR0912
self,
user_prompt: Prompt,
database_connection: DatabaseConnection,
context: List[dict] = None,
metadata: dict = None,
) -> SQLGeneration: # noqa: PLR0912
) -> SQLGeneration: # noqa: PLR0912
context_store = self.system.instance(ContextStore)
storage = self.system.instance(DB)
response = SQLGeneration(
Expand Down

0 comments on commit ba2da33

Please sign in to comment.