Skip to content

Commit

Permalink
Merge branch 'github/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
drazvan committed Oct 6, 2023
2 parents 118b227 + 5f2541e commit 9655169
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nemoguardrails/llm/providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def get_llm_provider(model_config: Model) -> Type[BaseLanguageModel]:
raise RuntimeError(f"Could not find LLM provider '{model_config.engine}'")

# For OpenAI, we use a different provider depending on whether it's a chat model or not
if model_config.model == "openai" and (
if model_config.engine == "openai" and (
"gpt-3.5" in model_config.model or "gpt-4" in model_config.model
):
return ChatOpenAI
Expand Down

0 comments on commit 9655169

Please sign in to comment.