refactor: Update GroqModel to use consistent variable names and improve code readability

This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-06-19 20:30:35 -03:00
commit 951fb82c71

View file

@ -93,12 +93,12 @@ class GroqModel(LCModelComponent):
stream = self.stream
output = ChatGroq(
model_name=model_name,
model=model_name,
max_tokens=max_tokens or None,
temperature=temperature,
groq_api_base=groq_api_base,
base_url=groq_api_base,
n=n or 1,
groq_api_key=SecretStr(groq_api_key),
api_key=SecretStr(groq_api_key),
streaming=stream,
)