feat: add reasoning_effort parameter to LiteLLMAPIBackend and LLMSett… (#754)

* feat: Add reasoning_effort parameter to LiteLLMAPIBackend and LLMSettings

* style: Use consistent quotation marks for reasoning_effort literals
This commit is contained in:
you-n-g
2025-04-04 19:37:40 +08:00
committed by GitHub
parent be29254345
commit 121628173f
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -88,6 +88,7 @@ class LiteLLMAPIBackend(APIBackend):
stream=LITELLM_SETTINGS.chat_stream,
temperature=LITELLM_SETTINGS.chat_temperature,
max_tokens=LITELLM_SETTINGS.chat_max_tokens,
reasoning_effort=LITELLM_SETTINGS.reasoning_effort,
**kwargs,
)
logger.info(
+3
View File
@@ -1,6 +1,7 @@
from __future__ import annotations
from pathlib import Path
from typing import Literal
from pydantic import Field
@@ -14,6 +15,8 @@ class LLMSettings(ExtendedBaseSettings):
chat_model: str = "gpt-4-turbo"
embedding_model: str = "text-embedding-3-small"
reasoning_effort: Literal["low", "medium", "high"] | None = None
# TODO: most of the settings are only used on deprec.DeprecBackend.
# So they should move the settings to that folder.