payi 0.1.0a78__tar.gz → 0.1.0a80__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of payi might be problematic. Click here for more details.
- payi-0.1.0a80/.release-please-manifest.json +3 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/CHANGELOG.md +16 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/PKG-INFO +1 -1
- {payi-0.1.0a78 → payi-0.1.0a80}/pyproject.toml +1 -1
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/_version.py +1 -1
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/lib/AnthropicInstrumentor.py +14 -10
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/lib/GoogleGenAiInstrumentor.py +7 -2
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/lib/OpenAIInstrumentor.py +35 -23
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/lib/VertexInstrumentor.py +7 -2
- payi-0.1.0a78/.release-please-manifest.json +0 -3
- {payi-0.1.0a78 → payi-0.1.0a80}/.gitignore +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/CONTRIBUTING.md +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/LICENSE +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/README.md +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/SECURITY.md +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/api.md +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/bin/check-release-environment +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/bin/publish-pypi +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/examples/.keep +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/mypy.ini +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/noxfile.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/release-please-config.json +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/requirements-dev.lock +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/requirements.lock +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/__init__.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/_base_client.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/_client.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/_compat.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/_constants.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/_exceptions.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/_files.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/_models.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/_qs.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/_resource.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/_response.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/_streaming.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/_types.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/_utils/__init__.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/_utils/_logs.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/_utils/_proxy.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/_utils/_reflection.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/_utils/_resources_proxy.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/_utils/_streams.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/_utils/_sync.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/_utils/_transform.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/_utils/_typing.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/_utils/_utils.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/lib/.keep +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/lib/BedrockInstrumentor.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/lib/Stopwatch.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/lib/helpers.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/lib/instrument.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/pagination.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/py.typed +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/resources/__init__.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/resources/categories/__init__.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/resources/categories/categories.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/resources/categories/resources.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/resources/experiences/__init__.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/resources/experiences/experiences.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/resources/experiences/properties.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/resources/experiences/types/__init__.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/resources/experiences/types/limit_config.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/resources/experiences/types/types.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/resources/ingest.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/resources/limits/__init__.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/resources/limits/limits.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/resources/limits/tags.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/resources/requests/__init__.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/resources/requests/properties.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/resources/requests/requests.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/resources/requests/result.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/resources/use_cases/__init__.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/resources/use_cases/definitions/__init__.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/resources/use_cases/definitions/definitions.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/resources/use_cases/definitions/kpis.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/resources/use_cases/definitions/limit_config.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/resources/use_cases/definitions/version.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/resources/use_cases/kpis.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/resources/use_cases/properties.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/resources/use_cases/use_cases.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/__init__.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/bulk_ingest_response.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/categories/__init__.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/categories/resource_create_params.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/categories/resource_list_params.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/category_delete_resource_response.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/category_delete_response.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/category_list_params.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/category_list_resources_params.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/category_resource_response.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/category_response.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/cost_data.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/cost_details.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/default_response.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/experience_instance_response.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/experiences/__init__.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/experiences/experience_type.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/experiences/property_create_params.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/experiences/type_create_params.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/experiences/type_list_params.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/experiences/type_update_params.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/experiences/types/__init__.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/experiences/types/limit_config_create_params.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/ingest_bulk_params.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/ingest_event_param.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/ingest_response.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/ingest_units_params.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/limit_create_params.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/limit_history_response.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/limit_list_params.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/limit_list_response.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/limit_reset_params.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/limit_response.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/limit_update_params.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/limits/__init__.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/limits/limit_tags.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/limits/tag_create_params.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/limits/tag_create_response.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/limits/tag_delete_response.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/limits/tag_list_response.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/limits/tag_remove_params.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/limits/tag_remove_response.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/limits/tag_update_params.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/limits/tag_update_response.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/pay_i_common_models_api_router_header_info_param.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/requests/__init__.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/requests/property_create_params.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/requests/request_result.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/requests_data.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/shared/__init__.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/shared/evaluation_response.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/shared/ingest_units.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/shared/pay_i_common_models_budget_management_cost_details_base.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/shared/pay_i_common_models_budget_management_create_limit_base.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/shared/properties_response.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/shared/xproxy_error.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/shared/xproxy_result.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/shared_params/__init__.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/shared_params/ingest_units.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/shared_params/pay_i_common_models_budget_management_create_limit_base.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/total_cost_data.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/use_case_instance_response.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/use_cases/__init__.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/use_cases/definition_create_params.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/use_cases/definition_list_params.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/use_cases/definition_update_params.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/use_cases/definitions/__init__.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/use_cases/definitions/kpi_create_params.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/use_cases/definitions/kpi_create_response.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/use_cases/definitions/kpi_delete_response.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/use_cases/definitions/kpi_list_params.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/use_cases/definitions/kpi_list_response.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/use_cases/definitions/kpi_retrieve_response.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/use_cases/definitions/kpi_update_params.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/use_cases/definitions/kpi_update_response.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/use_cases/definitions/limit_config_create_params.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/use_cases/kpi_create_params.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/use_cases/kpi_list_params.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/use_cases/kpi_list_response.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/use_cases/kpi_update_params.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/use_cases/property_create_params.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/use_cases/use_case_definition.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/tests/__init__.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/tests/api_resources/__init__.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/tests/api_resources/categories/__init__.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/tests/api_resources/categories/test_resources.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/tests/api_resources/experiences/__init__.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/tests/api_resources/experiences/test_properties.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/tests/api_resources/experiences/test_types.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/tests/api_resources/experiences/types/__init__.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/tests/api_resources/experiences/types/test_limit_config.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/tests/api_resources/limits/__init__.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/tests/api_resources/limits/test_tags.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/tests/api_resources/requests/__init__.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/tests/api_resources/requests/test_properties.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/tests/api_resources/requests/test_result.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/tests/api_resources/test_categories.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/tests/api_resources/test_experiences.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/tests/api_resources/test_ingest.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/tests/api_resources/test_limits.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/tests/api_resources/test_use_cases.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/tests/api_resources/use_cases/__init__.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/tests/api_resources/use_cases/definitions/__init__.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/tests/api_resources/use_cases/definitions/test_kpis.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/tests/api_resources/use_cases/definitions/test_limit_config.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/tests/api_resources/use_cases/definitions/test_version.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/tests/api_resources/use_cases/test_definitions.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/tests/api_resources/use_cases/test_kpis.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/tests/api_resources/use_cases/test_properties.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/tests/conftest.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/tests/sample_file.txt +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/tests/test_client.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/tests/test_deepcopy.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/tests/test_extract_files.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/tests/test_files.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/tests/test_models.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/tests/test_qs.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/tests/test_required_args.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/tests/test_response.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/tests/test_streaming.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/tests/test_transform.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/tests/test_utils/test_proxy.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/tests/test_utils/test_typing.py +0 -0
- {payi-0.1.0a78 → payi-0.1.0a80}/tests/utils.py +0 -0
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.0-alpha.80 (2025-06-04)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.1.0-alpha.79...v0.1.0-alpha.80](https://github.com/Pay-i/pay-i-python/compare/v0.1.0-alpha.79...v0.1.0-alpha.80)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
* tiktoken fallback failure ([#310](https://github.com/Pay-i/pay-i-python/issues/310)) ([76f6a31](https://github.com/Pay-i/pay-i-python/commit/76f6a318f514da2dc5b4e9fbe7927cc6f28a7b27))
|
|
10
|
+
|
|
11
|
+
## 0.1.0-alpha.79 (2025-06-04)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v0.1.0-alpha.78...v0.1.0-alpha.79](https://github.com/Pay-i/pay-i-python/compare/v0.1.0-alpha.78...v0.1.0-alpha.79)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* optional response_id for vertexai, google.genai sync response ([#308](https://github.com/Pay-i/pay-i-python/issues/308)) ([a3d1207](https://github.com/Pay-i/pay-i-python/commit/a3d1207f26db9b40d849bfb8402d4e8142845c3c))
|
|
18
|
+
|
|
3
19
|
## 0.1.0-alpha.78 (2025-06-03)
|
|
4
20
|
|
|
5
21
|
Full Changelog: [v0.1.0-alpha.77...v0.1.0-alpha.78](https://github.com/Pay-i/pay-i-python/compare/v0.1.0-alpha.77...v0.1.0-alpha.78)
|
|
@@ -190,16 +190,20 @@ class _AnthropicProviderRequest(_ProviderRequest):
|
|
|
190
190
|
estimated_token_count = 0
|
|
191
191
|
has_image = False
|
|
192
192
|
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
193
|
+
try:
|
|
194
|
+
enc = tiktoken.get_encoding("cl100k_base")
|
|
195
|
+
for message in messages:
|
|
196
|
+
msg_has_image, msg_prompt_tokens = has_image_and_get_texts(enc, message.get('content', ''))
|
|
197
|
+
if msg_has_image:
|
|
198
|
+
has_image = True
|
|
199
|
+
estimated_token_count += msg_prompt_tokens
|
|
200
|
+
|
|
201
|
+
if has_image and estimated_token_count > 0:
|
|
202
|
+
self._estimated_prompt_tokens = estimated_token_count
|
|
203
|
+
|
|
204
|
+
except Exception:
|
|
205
|
+
logging.warning("Error getting encoding for cl100k_base")
|
|
206
|
+
|
|
203
207
|
return True
|
|
204
208
|
|
|
205
209
|
@override
|
|
@@ -279,8 +279,13 @@ class _GoogleGenAiRequest(_ProviderRequest):
|
|
|
279
279
|
kwargs: Any) -> Any:
|
|
280
280
|
response_dict = response.to_json_dict()
|
|
281
281
|
|
|
282
|
-
|
|
283
|
-
|
|
282
|
+
id: Optional[str] = response_dict.get("response_id", None)
|
|
283
|
+
if id:
|
|
284
|
+
self._ingest["provider_response_id"] = id
|
|
285
|
+
|
|
286
|
+
model: Optional[str] = response_dict.get("model_version", None)
|
|
287
|
+
if model:
|
|
288
|
+
self._ingest["resource"] = "google." + model
|
|
284
289
|
|
|
285
290
|
self._compute_usage(response_dict)
|
|
286
291
|
|
|
@@ -364,20 +364,26 @@ class _OpenAiChatProviderRequest(_OpenAiProviderRequest):
|
|
|
364
364
|
if messages:
|
|
365
365
|
estimated_token_count = 0
|
|
366
366
|
has_image = False
|
|
367
|
+
enc: Optional[tiktoken.Encoding] = None
|
|
367
368
|
|
|
368
369
|
try:
|
|
369
370
|
enc = tiktoken.encoding_for_model(kwargs.get("model")) # type: ignore
|
|
370
|
-
except
|
|
371
|
-
|
|
371
|
+
except Exception:
|
|
372
|
+
try:
|
|
373
|
+
enc = tiktoken.get_encoding("o200k_base") # type: ignore
|
|
374
|
+
except Exception:
|
|
375
|
+
logging.warning("Error getting encoding for fallback o200k_base")
|
|
376
|
+
enc = None
|
|
372
377
|
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
+
if enc:
|
|
379
|
+
for message in messages:
|
|
380
|
+
msg_has_image, msg_prompt_tokens = self.has_image_and_get_texts(enc, message.get('content', ''))
|
|
381
|
+
if msg_has_image:
|
|
382
|
+
has_image = True
|
|
383
|
+
estimated_token_count += msg_prompt_tokens
|
|
378
384
|
|
|
379
|
-
|
|
380
|
-
|
|
385
|
+
if has_image and estimated_token_count > 0:
|
|
386
|
+
self._estimated_prompt_tokens = estimated_token_count
|
|
381
387
|
|
|
382
388
|
stream: bool = kwargs.get("stream", False)
|
|
383
389
|
if stream:
|
|
@@ -436,11 +442,16 @@ class _OpenAiResponsesProviderRequest(_OpenAiProviderRequest):
|
|
|
436
442
|
|
|
437
443
|
estimated_token_count = 0
|
|
438
444
|
has_image = False
|
|
445
|
+
enc: Optional[tiktoken.Encoding] = None
|
|
439
446
|
|
|
440
447
|
try:
|
|
441
448
|
enc = tiktoken.encoding_for_model(kwargs.get("model")) # type: ignore
|
|
442
|
-
except
|
|
443
|
-
|
|
449
|
+
except Exception:
|
|
450
|
+
try:
|
|
451
|
+
enc = tiktoken.get_encoding("o200k_base") # type: ignore
|
|
452
|
+
except Exception:
|
|
453
|
+
logging.warning("Error getting encoding for fallback o200k_base")
|
|
454
|
+
enc = None
|
|
444
455
|
|
|
445
456
|
# find each content..type="input_text" and count tokens
|
|
446
457
|
# input=[{
|
|
@@ -456,18 +467,19 @@ class _OpenAiResponsesProviderRequest(_OpenAiProviderRequest):
|
|
|
456
467
|
# },
|
|
457
468
|
# ],
|
|
458
469
|
# }]
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
if
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
470
|
+
if enc:
|
|
471
|
+
for item in input: # type: ignore
|
|
472
|
+
if isinstance(item, dict):
|
|
473
|
+
for key, value in item.items(): # type: ignore
|
|
474
|
+
if key == "content":
|
|
475
|
+
if isinstance(value, list):
|
|
476
|
+
msg_has_image, msg_prompt_tokens = self.has_image_and_get_texts(enc, value, image_type="input_image", text_type="input_text") # type: ignore
|
|
477
|
+
if msg_has_image:
|
|
478
|
+
has_image = True
|
|
479
|
+
estimated_token_count += msg_prompt_tokens
|
|
480
|
+
|
|
481
|
+
if has_image and estimated_token_count > 0:
|
|
482
|
+
self._estimated_prompt_tokens = estimated_token_count
|
|
471
483
|
|
|
472
484
|
return True
|
|
473
485
|
|
|
@@ -225,8 +225,13 @@ class _GoogleVertexRequest(_ProviderRequest):
|
|
|
225
225
|
kwargs: Any) -> Any:
|
|
226
226
|
response_dict = response.to_dict()
|
|
227
227
|
|
|
228
|
-
|
|
229
|
-
|
|
228
|
+
id: Optional[str] = response_dict.get("response_id", None)
|
|
229
|
+
if id:
|
|
230
|
+
self._ingest["provider_response_id"] = id
|
|
231
|
+
|
|
232
|
+
model: Optional[str] = response_dict.get("model_version", None)
|
|
233
|
+
if model:
|
|
234
|
+
self._ingest["resource"] = "google." + model
|
|
230
235
|
|
|
231
236
|
self._compute_usage(response_dict)
|
|
232
237
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/experiences/types/limit_config_create_params.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/pay_i_common_models_api_router_header_info_param.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/use_cases/definitions/kpi_retrieve_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{payi-0.1.0a78 → payi-0.1.0a80}/src/payi/types/use_cases/definitions/limit_config_create_params.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{payi-0.1.0a78 → payi-0.1.0a80}/tests/api_resources/use_cases/definitions/test_limit_config.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|