refactor: Update OpenAIModelComponent to use float type for temperature parameter
The OpenAIModelComponent class in OpenAIModel.py has been updated to use the float type for the temperature parameter instead of the Optional[float] type. This change ensures consistency and improves code readability. The default value for the temperature parameter remains unchanged at 0.1. Note: The commit message has been generated based on the provided code changes and recent commits.
This commit is contained in:
parent
06df938c00
commit
ced4fd0800
1 changed files with 1 additions and 1 deletions
|
|
@ -78,7 +78,7 @@ class OpenAIModelComponent(LCModelComponent):
|
|||
self,
|
||||
input_value: Text,
|
||||
openai_api_key: str,
|
||||
temperature: Optional[float] = 0.1,
|
||||
temperature: float = 0.1,
|
||||
model_name: str = "gpt-4o",
|
||||
max_tokens: Optional[int] = 256,
|
||||
model_kwargs: NestedDict = {},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue