22 lines
534 B
Python
22 lines
534 B
Python
from cli.i18n import t
|
|
|
|
ANALYZE_PROMPT = t("prompt.analyze")
|
|
ADVICE_PROMPT = t("prompt.advice")
|
|
SCENARIO_COMPARISON_PROMPT = t("prompt.scenario_comparison")
|
|
|
|
|
|
def format_context(
|
|
model_json: str,
|
|
forecast_json: str,
|
|
months: int = 12,
|
|
base_currency: str = "RUB",
|
|
display_currency: str = "RUB",
|
|
) -> str:
|
|
return ANALYZE_PROMPT.format(
|
|
model_json=model_json,
|
|
forecast_json=forecast_json,
|
|
months=months,
|
|
base_currency=base_currency,
|
|
display_currency=display_currency,
|
|
)
|