Test empty parameters' function calling cases #114
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes various changes to the
examples/function-calling/schemas/llama.sale.schema.json
file and adds new test cases for function calling with different language models. The most important changes include reordering JSON schema properties, adding new test cases for function calling with ChatGPT, Claude, Gemini, and Llama, and updating the Llama model version.Changes to JSON schema:
examples/function-calling/schemas/llama.sale.schema.json
: Reordered therequired
property to maintain consistency in the schema. [1] [2] [3]New test cases for function calling:
test/features/llm/chatgpt/test_chatgpt_function_calling_empty.ts
: Added a new test case for ChatGPT function calling to validate theprint
function call.test/features/llm/claude/test_claude_function_calling_empty.ts
: Added a new test case for Claude function calling to validate theprint
function call.test/features/llm/gemini/test_gemini_function_calling_empty.ts
: Added a new test case for Gemini function calling to validate theprint
function call.test/features/llm/llama/test_llama_function_calling_empty.ts
: Added a new test case for Llama function calling to validate theprint
function call.Model version update:
test/utils/LlamaFunctionCaller.ts
: Updated the Llama model version fromllama3.2-90b-vision
tollama3.3-70b
.