Skip to content

Commit

Permalink
🛠️ fix: fix indentation issue in receiver_client.py and util_func.py
Browse files Browse the repository at this point in the history
Fix indentation issue in receiver_client.py and util_func.py files.
  • Loading branch information
sudoskys committed May 21, 2024
1 parent 935593c commit 546ad8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/receiver/function.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ async def run_pending_task(task: TaskHeader, pending_task: ToolCall):
if len(task.task_sign.tool_calls_pending) == 0:
if not has_been_called_recently(userid=task.receiver.uid, n_seconds=3):
credentials = await read_user_credential(user_id=task.receiver.uid)
if global_credential:
if global_credential and not credentials:
credentials = global_credential
logic = LLMLogic(
api_key=credentials.api_key,
Expand Down
2 changes: 1 addition & 1 deletion app/receiver/receiver_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ async def _flash(
try:
try:
credentials = await read_user_credential(user_id=task.receiver.uid)
if global_credential:
if global_credential and not credentials:
credentials = global_credential
assert credentials, "You need to /login first"
llm_result = await llm.request_openai(
Expand Down

0 comments on commit 546ad8b

Please sign in to comment.