Spaces:
Paused

dushyantsingh0 commited on
Commit
c4f2de9
·
1 Parent(s): 29cafce

backend stabilization

Browse files
Files changed (1) hide show
  1. core/llm.py +2 -1
core/llm.py CHANGED
@@ -25,7 +25,8 @@ def get_llm(provider: str = None, model: str = None, use_fast_model: bool = Fals
25
  tracer = trace.get_tracer(__name__)
26
 
27
  with tracer.start_as_current_span("factory.get_llm"):
28
- provider = provider or settings.AI_PROVIDER
 
29
  if use_fast_model:
30
  model = model or settings.AI_FAST_MODEL
31
  else:
 
25
  tracer = trace.get_tracer(__name__)
26
 
27
  with tracer.start_as_current_span("factory.get_llm"):
28
+ provider = (provider or settings.AI_PROVIDER)
29
+ if provider: provider = provider.strip()
30
  if use_fast_model:
31
  model = model or settings.AI_FAST_MODEL
32
  else: