Title: Fix types by Khurdhula-Harshavardhan · Pull Request #77 · JigsawStack/jigsawstack-python · GitHub
Open Graph Title: Fix types by Khurdhula-Harshavardhan · Pull Request #77 · JigsawStack/jigsawstack-python
X Title: Fix types by Khurdhula-Harshavardhan · Pull Request #77 · JigsawStack/jigsawstack-python
Description: This pull request introduces several enhancements and improvements to the API parameter handling across multiple modules. The main changes include expanding the use of NotRequired for optional parameters, adding new fields for greater flexibility, and improving documentation for several TypedDicts. These updates make the API more robust and easier to use, allowing for more granular control and clearer parameter expectations. API Parameter Enhancements Added new optional fields (dimensions, instruction, query) to EmbeddingV2Params in jigsawstack/embedding_v2.py to support advanced embedding configurations. Updated PredictionParams in jigsawstack/prediction.py so that steps is now optional, with improved documentation for valid ranges and defaults. Added name as an optional field to PromptEngineCreateParams in jigsawstack/prompt_engine.py for better prompt identification. Added max_results as an optional parameter to SearchParams in jigsawstack/search.py, along with logic to include it in search requests. [1] [2] [3] Added fine_grained as an optional parameter to VOCRParams in jigsawstack/vision.py to enable high-fidelity word-level bounding boxes. Type and Documentation Improvements Expanded element_prompts in AIScrapeParams (jigsawstack/web.py) to accept either a list or a dictionary, with detailed documentation on limits and usage. Updated imports to use NotRequired from typing_extensions in relevant files for consistency. Minor Refactoring Improved method signatures for better readability and consistency in embedding_v2.py and prompt_engine.py. [1] [2] [3] [4]
Open Graph Description: This pull request introduces several enhancements and improvements to the API parameter handling across multiple modules. The main changes include expanding the use of NotRequired for optional para...
X Description: This pull request introduces several enhancements and improvements to the API parameter handling across multiple modules. The main changes include expanding the use of NotRequired for optional para...
Opengraph URL: https://github.com/JigsawStack/jigsawstack-python/pull/77
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:d1607717-2df5-a3f4-9409-5b41fd4e61ea |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | 9F68:281D19:B3028B:E69436:69917D4B |
| html-safe-nonce | 23215e898ae78f70dfe387ea0ff054d98ef814c6b843527d261b4b4a3784bcdd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RjY4OjI4MUQxOTpCMzAyOEI6RTY5NDM2OjY5OTE3RDRCIiwidmlzaXRvcl9pZCI6IjcxMTE0MTY2NjkzMzYwNzU1OTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d305da27a09873e4f93effffde2518201054f04b2981023f3eebbabd6c6f0b62 |
| hovercard-subject-tag | pull_request:3055139784 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/JigsawStack/jigsawstack-python/pull/77/checks |
| twitter:image | https://avatars.githubusercontent.com/u/60458750?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/60458750?s=400&v=4 |
| og:image:alt | This pull request introduces several enhancements and improvements to the API parameter handling across multiple modules. The main changes include expanding the use of NotRequired for optional para... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/JigsawStack/jigsawstack-python git https://github.com/JigsawStack/jigsawstack-python.git |
| octolytics-dimension-user_id | 157771398 |
| octolytics-dimension-user_login | JigsawStack |
| octolytics-dimension-repository_id | 837755588 |
| octolytics-dimension-repository_nwo | JigsawStack/jigsawstack-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 837755588 |
| octolytics-dimension-repository_network_root_nwo | JigsawStack/jigsawstack-python |
| turbo-body-classes | logged-out env-production page-responsive full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width