@@ -28,7 +28,7 @@ def test_generate_prompts_with_additional_prompts() -> None:
28
28
]
29
29
additional_prompts = ["Welcome to the chat!" , "How can I help you today?" ]
30
30
31
- mock_chat_model = BaseChatLanguageModel (endpoint_id = "123" , messages = messages )
31
+ mock_chat_model = BaseChatLanguageModel (model = "123" , messages = messages )
32
32
# Act
33
33
result = mock_chat_model .generate_prompts (
34
34
messages , additional_system_prompts = additional_prompts
@@ -46,7 +46,7 @@ def test_generate_prompts_without_template():
46
46
ArkMessage (role = "user" , content = "Hello" ),
47
47
ArkMessage (role = "assistant" , content = "Hi there!" ),
48
48
]
49
- mock_chat_model = BaseChatLanguageModel (endpoint_id = "123" , messages = messages )
49
+ mock_chat_model = BaseChatLanguageModel (model = "123" , messages = messages )
50
50
mock_chat_model .template = None
51
51
52
52
# Act
@@ -63,7 +63,7 @@ def test_generate_prompts_with_formatting() -> None:
63
63
ArkMessage (role = "user" , content = "Hello" ),
64
64
ArkMessage (role = "assistant" , content = "Hi there!" ),
65
65
]
66
- mock_chat_model = BaseChatLanguageModel (endpoint_id = "123" , messages = messages )
66
+ mock_chat_model = BaseChatLanguageModel (model = "123" , messages = messages )
67
67
additional_prompts = ["Welcome to the chat!" , "How can I help you today?" ]
68
68
69
69
# Act
@@ -82,7 +82,7 @@ async def test_base_chat_llm_with_unseen_tools() -> None:
82
82
llm = BaseChatLanguageModel (
83
83
client = MockAsyncArk (message = get_tool_call_reply ()),
84
84
messages = [ArkMessage (role = "user" , content = "hi" )],
85
- endpoint_id = "abc" ,
85
+ model = "abc" ,
86
86
)
87
87
resp = await llm .arun ()
88
88
assert isinstance (resp , ArkChatResponse )
@@ -103,7 +103,7 @@ async def adder(a: int, b: int) -> int:
103
103
llm = BaseChatLanguageModel (
104
104
client = MockAsyncArk (message = get_tool_call_reply ()),
105
105
messages = [ArkMessage (role = "user" , content = "hi" )],
106
- endpoint_id = "abc" ,
106
+ model = "abc" ,
107
107
)
108
108
resp = await llm .arun (functions = [adder ])
109
109
assert isinstance (resp , ArkChatResponse )
0 commit comments