Skip to content

Commit 5140536

Browse files
committed
fix: Update ChatOpenAI model initialization parameter
Change 'name' parameter to 'model' in get_llm() function for correct OpenAI model instantiation
1 parent b1a6585 commit 5140536

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

llm_utils/llm_factory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def get_llm(
1616
"""
1717
if model_type == "openai":
1818
return ChatOpenAI(
19-
name=model_name,
19+
model=model_name,
2020
openai_api_key=openai_api_key,
2121
**kwargs,
2222
)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
setup(
88
name="lang2sql", # 패키지 이름
9-
version="0.1.5", # 버전
9+
version="0.1.6", # 버전
1010
author="ehddnr301",
1111
author_email="[email protected]",
1212
url="https://github.com/ehddnr301/lang2sql",

0 commit comments

Comments
 (0)