mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-06-16 19:10:53 +02:00
Remove unnecessary LLM settings
This commit is contained in:
parent
0a165aae0b
commit
1a4df1d65e
@ -187,11 +187,6 @@ class DefaultMultiLLM(LLM):
|
|||||||
"""Uses Litellm library to allow easy configuration to use a multitude of LLMs
|
"""Uses Litellm library to allow easy configuration to use a multitude of LLMs
|
||||||
See https://python.langchain.com/docs/integrations/chat/litellm"""
|
See https://python.langchain.com/docs/integrations/chat/litellm"""
|
||||||
|
|
||||||
DEFAULT_MODEL_PARAMS: dict[str, Any] = {
|
|
||||||
"frequency_penalty": 0,
|
|
||||||
"presence_penalty": 0,
|
|
||||||
}
|
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
api_key: str | None,
|
api_key: str | None,
|
||||||
@ -224,9 +219,7 @@ class DefaultMultiLLM(LLM):
|
|||||||
for k, v in custom_config.items():
|
for k, v in custom_config.items():
|
||||||
os.environ[k] = v
|
os.environ[k] = v
|
||||||
|
|
||||||
model_kwargs = (
|
model_kwargs: dict[str, Any] = {}
|
||||||
DefaultMultiLLM.DEFAULT_MODEL_PARAMS if model_provider == "openai" else {}
|
|
||||||
)
|
|
||||||
if extra_headers:
|
if extra_headers:
|
||||||
model_kwargs.update({"extra_headers": extra_headers})
|
model_kwargs.update({"extra_headers": extra_headers})
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user