mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-31 08:40:05 +00:00
new param arguments_json in ToolCall
This commit is contained in:
parent
37f155e41d
commit
549096b264
10 changed files with 132 additions and 107 deletions
|
|
@ -165,7 +165,10 @@ class PrepareMessagesTests(unittest.IsolatedAsyncioTestCase):
|
|||
request.model = MODEL
|
||||
request.tool_config.tool_prompt_format = ToolPromptFormat.json
|
||||
prompt = await chat_completion_request_to_prompt(request, request.model)
|
||||
self.assertIn('{"type": "function", "name": "custom1", "parameters": {"param1": "value1"}}', prompt)
|
||||
self.assertIn(
|
||||
'{"type": "function", "name": "custom1", "parameters": {"param1": "value1"}}',
|
||||
prompt,
|
||||
)
|
||||
|
||||
async def test_user_provided_system_message(self):
|
||||
content = "Hello !"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue