Skip to content

Commit

Permalink
Merge branch 'refactor' into pulumi-reg-2pt0-update
Browse files Browse the repository at this point in the history
  • Loading branch information
rchan26 committed Jun 13, 2024
2 parents f14616f + 2da4a62 commit 065a2ee
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion reginald/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"slack_bot_token": "Slack bot token for the bot.",
}

cli = typer.Typer()
cli = typer.Typer(context_settings={"help_option_names": ["-h", "--help"]})


def set_up_logging_config(level: int = 20) -> None:
Expand Down
2 changes: 1 addition & 1 deletion reginald/models/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ async def channel_mention(query: Query):
return app


async def run_reginald_app(**kwargs) -> None:
def run_reginald_app(**kwargs) -> None:
# set up response model
response_model = setup_llm(**kwargs)
app: FastAPI = create_reginald_app(response_model)
Expand Down
4 changes: 1 addition & 3 deletions reginald/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@ def main(
elif cli == "app":
from reginald.models.app import run_reginald_app

asyncio.run(
run_reginald_app(data_dir=data_dir, which_index=which_index, **kwargs)
)
run_reginald_app(data_dir=data_dir, which_index=which_index, **kwargs)
elif cli == "chat":
import warnings

Expand Down

0 comments on commit 065a2ee

Please sign in to comment.