Fix IHttpLlmFunction.seperated
composing bug.
#119
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 several changes to the codebase to enhance functionality and improve internal handling of schema definitions. The most important changes include version updates, new internal methods, and new test files.
Version Update:
package.json
: Updated the version from2.3.1
to2.3.2
.Internal Methods and Schema Handling:
src/composers/HttpLlmApplicationComposer.ts
: Modified the condition to check ifprops.model
has definitions using the newLlmSchemaComposer.isDefs
method.src/composers/LlmSchemaComposer.ts
: Added a new internal methodisDefs
to check if a model has definitions and a corresponding constantIS_DEFS
with model-specific implementations. [1] [2]src/composers/llm/
: Added theIS_DEFS
constant to multiple schema composer namespaces (ChatGptSchemaComposer
,ClaudeSchemaComposer
,GeminiSchemaComposer
,LlamaSchemaComposer
,LlmSchemaV3Composer
,LlmSchemaV3_1Composer
). [1] [2] [3] [4] [5] [6]New Test Files:
test/examples/chatgpt-structured-output.ts
: Added a new test file for structured output from ChatGPT, including a function to validate member data using OpenAI's API andtypia
.test/features/llm/validate_llm_application_separate.ts
: Added a new test file to validate LLM applications separately for different models, includingchatgpt
,claude
,gemini
,llama
,3.0
, and3.1
.