Fix types & update CI #70
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 introduces several improvements and updates across the codebase, focusing on enhancing the CI workflow, expanding API parameter support, and improving test organization. The most notable changes include a refactor of the GitHub Actions workflow for SDK tests, new and updated interface parameters for API flexibility, and improved test script structure.
CI/CD Workflow Improvements:
.github/workflows/sdk-tests.ymlto split the workflow into separatebuildandtestjobs. The build job now caches dependencies and build artifacts, and the test job runs in parallel for different test types (audio,classification,validate,vision,web), restoring the build cache for efficiency. [1] [2]API Parameter Enhancements:
file_store_keyinTranslateImageParams(src/general/interfaces.ts)stepsinPredictionParams(src/general/interfaces.ts)dimensions,instruction, andqueryinEmbeddingV2Params(src/general/interfaces.ts)nameinPromptCreateParams(src/prompt_engine/interfaces.ts)fine_grainedinVOCRParamsfor high fidelity bounding boxes (src/vision/interfaces.ts)element_promptsto accept a dictionary for element extraction inAIScrapeParams(src/web/interfaces/scrape.ts)Test and Script Organization:
package.jsontest scripts to use a more modular structure, introducing atest:runscript and adding atest:classificationtarget. The maintestscript now delegates totest:allfor easier maintenance and extensibility.tests/web.test.tsto temporarily disable them, likely due to instability or pending fixes. [1] [2]Version Updates:
0.3.8to0.4.0in bothpackage.jsonandjsr.jsonto reflect new features and breaking changes. [1] [2]These changes collectively improve CI efficiency, API usability, and maintainability of test scripts, while preparing the package for a new minor release.