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 bfd56ee + ced92a5 commit b680eab
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 11 deletions.
4 changes: 2 additions & 2 deletions azure/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ You will need to source this file before deploying in the next step.
4. Deploy with Pulumi

```bash
> source .secrets (if this exists)
> AZURE_KEYVAULT_AUTH_VIA_CLI=true pulumi up
source .secrets
AZURE_KEYVAULT_AUTH_VIA_CLI=true pulumi up
```
13 changes: 7 additions & 6 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ authors = ["Evelina Gabasova <[email protected]>",
"David Beavan <[email protected]>",
"Levan Bokeria <[email protected]>",
"Martin O'Reilly <[email protected]>",
"Oliver Strickson <[email protected]>"]
"Oliver Strickson <[email protected]>",
"Katriona Goldmann <[email protected]>",
"Griffith Rees <[email protected]>"]
readme = "README.md"

[tool.poetry.dependencies]
Expand Down
10 changes: 8 additions & 2 deletions reginald/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ def main(

asyncio.run(
run_full_pipeline(
data_dir=data_dir,
which_index=which_index,
slack_app_token=slack_app_token,
slack_bot_token=slack_bot_token,
**kwargs,
Expand All @@ -38,15 +40,19 @@ def main(
elif cli == "app":
from reginald.models.app import run_reginald_app

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

warnings.filterwarnings("ignore")

from reginald.models.chat_interact import run_chat_interact

run_chat_interact(streaming=streaming, **kwargs)
run_chat_interact(
streaming=streaming, data_dir=data_dir, which_index=which_index, **kwargs
)
elif cli == "create_index":
from reginald.models.create_index import create_index

Expand Down

0 comments on commit b680eab

Please sign in to comment.