We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ba5413 commit fb85276Copy full SHA for fb85276
src/shelloracle/shelloracle.py
@@ -71,14 +71,14 @@ async def shelloracle() -> None:
71
:returns: None
72
:raises KeyboardInterrupt: if the user presses CTRL+C
73
"""
74
- config = get_config()
75
- provider = get_provider(config.provider)()
76
-
77
if not (prompt := get_query_from_pipe()):
78
default_prompt = os.environ.get("SHOR_DEFAULT_PROMPT")
79
prompt = await prompt_user(default_prompt)
80
logger.info("user prompt: %s", prompt)
81
+ config = get_config()
+ provider = get_provider(config.provider)()
+
82
shell_command = ""
83
with create_app_session_from_tty(), patch_stdout(raw=True), spinner() as sp:
84
async for token in provider.generate(prompt):
0 commit comments