mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-25 16:56:22 +02:00
fix: Added API_BASE param for LiteLLM.
This commit is contained in:
parent
cae5f835af
commit
4a2be4b98e
7 changed files with 151 additions and 73 deletions
|
|
@ -46,14 +46,27 @@ class Config:
|
|||
|
||||
# LONG-CONTEXT LLMS
|
||||
LONG_CONTEXT_LLM = os.getenv("LONG_CONTEXT_LLM")
|
||||
long_context_llm_instance = ChatLiteLLM(model=LONG_CONTEXT_LLM)
|
||||
FAST_LLM_API_BASE = os.getenv("FAST_LLM_API_BASE")
|
||||
if FAST_LLM_API_BASE:
|
||||
long_context_llm_instance = ChatLiteLLM(model=LONG_CONTEXT_LLM, api_base=FAST_LLM_API_BASE)
|
||||
else:
|
||||
long_context_llm_instance = ChatLiteLLM(model=LONG_CONTEXT_LLM)
|
||||
|
||||
# FAST & STRATEGIC LLM's
|
||||
# FAST LLM
|
||||
FAST_LLM = os.getenv("FAST_LLM")
|
||||
STRATEGIC_LLM = os.getenv("STRATEGIC_LLM")
|
||||
fast_llm_instance = ChatLiteLLM(model=FAST_LLM)
|
||||
strategic_llm_instance = ChatLiteLLM(model=STRATEGIC_LLM)
|
||||
FAST_LLM_API_BASE = os.getenv("FAST_LLM_API_BASE")
|
||||
if FAST_LLM_API_BASE:
|
||||
fast_llm_instance = ChatLiteLLM(model=FAST_LLM, api_base=FAST_LLM_API_BASE)
|
||||
else:
|
||||
fast_llm_instance = ChatLiteLLM(model=FAST_LLM)
|
||||
|
||||
# STRATEGIC LLM
|
||||
STRATEGIC_LLM = os.getenv("STRATEGIC_LLM")
|
||||
STRATEGIC_LLM_API_BASE = os.getenv("STRATEGIC_LLM_API_BASE")
|
||||
if STRATEGIC_LLM_API_BASE:
|
||||
strategic_llm_instance = ChatLiteLLM(model=STRATEGIC_LLM, api_base=STRATEGIC_LLM_API_BASE)
|
||||
else:
|
||||
strategic_llm_instance = ChatLiteLLM(model=STRATEGIC_LLM)
|
||||
|
||||
# Chonkie Configuration | Edit this to your needs
|
||||
EMBEDDING_MODEL = os.getenv("EMBEDDING_MODEL")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue