refactor: Update GroqModel to use consistent variable names and improve code readability
This commit is contained in:
parent
8defb43e1c
commit
951fb82c71
1 changed files with 3 additions and 3 deletions
|
|
@ -93,12 +93,12 @@ class GroqModel(LCModelComponent):
|
||||||
stream = self.stream
|
stream = self.stream
|
||||||
|
|
||||||
output = ChatGroq(
|
output = ChatGroq(
|
||||||
model_name=model_name,
|
model=model_name,
|
||||||
max_tokens=max_tokens or None,
|
max_tokens=max_tokens or None,
|
||||||
temperature=temperature,
|
temperature=temperature,
|
||||||
groq_api_base=groq_api_base,
|
base_url=groq_api_base,
|
||||||
n=n or 1,
|
n=n or 1,
|
||||||
groq_api_key=SecretStr(groq_api_key),
|
api_key=SecretStr(groq_api_key),
|
||||||
streaming=stream,
|
streaming=stream,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue