From 83b403d086dd043354d50f83e3f93a4bc037d7bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elias=20Sj=C3=B6green?= Date: Sat, 9 Aug 2025 13:17:53 +0200 Subject: [PATCH] fix(tandoor): Change `AI_RATELIMIT` to str type --- tandoor_recipes/DOCS.md | 2 +- tandoor_recipes/README.md | 2 +- tandoor_recipes/config.json | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tandoor_recipes/DOCS.md b/tandoor_recipes/DOCS.md index 9fe774519..4126c582e 100644 --- a/tandoor_recipes/DOCS.md +++ b/tandoor_recipes/DOCS.md @@ -16,7 +16,7 @@ Optional : "POSTGRES_DB": "str?" # Needed for postgresql_external "AI_MODEL_NAME": "str?", # Used when configuring llm integration "AI_API_KEY": "str?", # Used when configuring llm integration - "AI_RATELIMIT": "int?", # Used when configuring llm integration + "AI_RATELIMIT": "str?", # Used when configuring llm integration "externalfiles_folder": "str?" # a folder that you want to map in to tandoor. Not needed as /share/ and /media/ are mapped. This folder will be created if it doesn't already exist. ``` This add-on now uses Tandoor's integrated Nginx server and exposes port 80 (mapped to 9928 by default). diff --git a/tandoor_recipes/README.md b/tandoor_recipes/README.md index a6d569ad8..513bceae8 100644 --- a/tandoor_recipes/README.md +++ b/tandoor_recipes/README.md @@ -48,7 +48,7 @@ Complete documentation: https://docs.tandoor.dev/install/docker/ | `POSTGRES_DB` | str | | PostgreSQL database name (required for postgresql_external) | | `AI_MODEL_NAME` | str | | Used for configuring LLMs, supported providers can be found [here](https://docs.litellm.ai/docs/providers/) | | `AI_API_KEY` | str | | API key for accessing LLMs | -| `AI_RATELIMIT` | int | | Ratelimit for LLM access | +| `AI_RATELIMIT` | str | | Ratelimit for LLM access, specified with [DRF syntax](https://www.django-rest-framework.org/api-guide/throttling/) | ### Example Configuration diff --git a/tandoor_recipes/config.json b/tandoor_recipes/config.json index 7aadd316b..c0bedf57e 100644 --- a/tandoor_recipes/config.json +++ b/tandoor_recipes/config.json @@ -109,7 +109,7 @@ "SECRET_KEY": "str", "AI_MODEL_NAME": "str?", "AI_API_KEY": "str?", - "AI_RATELIMIT": "int?", + "AI_RATELIMIT": "str?", "externalfiles_folder": "str?" }, "services": [ @@ -118,6 +118,6 @@ "slug": "tandoor_recipes", "udev": true, "url": "https://github.com/alexbelgium/hassio-addons", - "version": "2.0.1-2", + "version": "2.0.1-3", "webui": "http://[HOST]:[PORT:80]" }