scale-gp-beta 0.1.0a24__tar.gz → 0.1.0a25__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.
- scale_gp_beta-0.1.0a25/.release-please-manifest.json +3 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/CHANGELOG.md +33 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/PKG-INFO +41 -1
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/README.md +36 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/api.md +16 -2
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/bin/check-release-environment +1 -1
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/pyproject.toml +4 -1
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/requirements-dev.lock +29 -2
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/requirements.lock +29 -2
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/__init__.py +2 -1
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/_base_client.py +22 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/_client.py +19 -1
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/_version.py +1 -1
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/lib/tracing/types.py +1 -3
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/resources/__init__.py +14 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/resources/chat/completions.py +4 -2
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/resources/models.py +2 -0
- scale_gp_beta-0.1.0a25/src/scale_gp_beta/resources/questions.py +693 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/resources/spans.py +124 -92
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/__init__.py +4 -1
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/chat/chat_completion.py +1 -1
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/chat/chat_completion_chunk.py +1 -1
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/chat/completion_models_params.py +1 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/chat/model_definition.py +1 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/inference_model.py +1 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/model_list_params.py +1 -0
- scale_gp_beta-0.1.0a25/src/scale_gp_beta/types/question.py +175 -0
- scale_gp_beta-0.1.0a25/src/scale_gp_beta/types/question_create_params.py +121 -0
- scale_gp_beta-0.1.0a24/src/scale_gp_beta/types/span_search_response.py → scale_gp_beta-0.1.0a25/src/scale_gp_beta/types/question_list.py +4 -4
- scale_gp_beta-0.1.0a25/src/scale_gp_beta/types/question_list_params.py +17 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/span.py +1 -3
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/span_batch_params.py +1 -3
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/span_create_params.py +1 -3
- scale_gp_beta-0.1.0a25/src/scale_gp_beta/types/span_search_params.py +89 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/span_update_params.py +1 -1
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/span_upsert_batch_params.py +1 -3
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/tests/api_resources/chat/test_completions.py +3 -1
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/tests/api_resources/files/test_content.py +3 -1
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/tests/api_resources/test_completions.py +3 -1
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/tests/api_resources/test_dataset_items.py +3 -1
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/tests/api_resources/test_datasets.py +3 -1
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/tests/api_resources/test_evaluation_items.py +3 -1
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/tests/api_resources/test_evaluations.py +3 -1
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/tests/api_resources/test_files.py +3 -1
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/tests/api_resources/test_inference.py +3 -1
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/tests/api_resources/test_models.py +3 -1
- scale_gp_beta-0.1.0a25/tests/api_resources/test_questions.py +673 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/tests/api_resources/test_spans.py +26 -16
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/tests/conftest.py +38 -5
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/tests/test_client.py +2 -0
- scale_gp_beta-0.1.0a24/.release-please-manifest.json +0 -3
- scale_gp_beta-0.1.0a24/src/scale_gp_beta/types/span_search_params.py +0 -77
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/.gitignore +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/CONTRIBUTING.md +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/LICENSE +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/SECURITY.md +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/bin/publish-pypi +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/examples/.keep +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/examples/tracing/0_primitives_fibonacci.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/examples/tracing/1_explicit_use_case.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/examples/tracing/2_direct_upload.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/mypy.ini +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/noxfile.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/release-please-config.json +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp/lib/.keep +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/_compat.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/_constants.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/_exceptions.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/_files.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/_models.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/_qs.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/_resource.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/_response.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/_streaming.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/_types.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/_utils/__init__.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/_utils/_logs.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/_utils/_proxy.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/_utils/_reflection.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/_utils/_resources_proxy.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/_utils/_streams.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/_utils/_sync.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/_utils/_transform.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/_utils/_typing.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/_utils/_utils.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/lib/.keep +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/lib/tracing/__init__.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/lib/tracing/exceptions.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/lib/tracing/scope.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/lib/tracing/span.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/lib/tracing/trace.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/lib/tracing/trace_exporter.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/lib/tracing/trace_queue_manager.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/lib/tracing/tracing.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/lib/tracing/util.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/pagination.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/py.typed +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/resources/chat/__init__.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/resources/chat/chat.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/resources/completions.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/resources/dataset_items.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/resources/datasets.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/resources/evaluation_items.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/resources/evaluations.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/resources/files/__init__.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/resources/files/content.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/resources/files/files.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/resources/inference.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/chat/__init__.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/chat/completion_create_params.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/chat/completion_create_response.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/chat/completion_models_response.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/completion.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/completion_create_params.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/component.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/component_param.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/container.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/container_param.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/dataset.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/dataset_create_params.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/dataset_delete_response.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/dataset_item.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/dataset_item_batch_create_params.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/dataset_item_batch_create_response.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/dataset_item_delete_response.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/dataset_item_list_params.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/dataset_item_retrieve_params.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/dataset_item_update_params.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/dataset_list_params.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/dataset_retrieve_params.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/dataset_update_params.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/evaluation.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/evaluation_create_params.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/evaluation_delete_response.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/evaluation_item.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/evaluation_item_list_params.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/evaluation_item_retrieve_params.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/evaluation_list_params.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/evaluation_retrieve_params.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/evaluation_task.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/evaluation_task_param.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/evaluation_update_params.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/file.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/file_create_params.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/file_delete_response.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/file_list.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/file_list_params.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/file_update_params.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/files/__init__.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/inference_create_params.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/inference_create_response.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/inference_model_list.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/inference_response.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/inference_response_chunk.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/item_locator.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/item_locator_template.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/model_create_params.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/model_delete_response.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/model_update_params.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/span_batch_response.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/types/span_upsert_batch_response.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/sgp_dev/lib/.keep +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/tests/__init__.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/tests/api_resources/__init__.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/tests/api_resources/chat/__init__.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/tests/api_resources/files/__init__.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/tests/lib/tracing/test_span.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/tests/lib/tracing/test_trace.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/tests/lib/tracing/test_trace_exporter.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/tests/lib/tracing/test_tracing.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/tests/sample_file.txt +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/tests/test_deepcopy.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/tests/test_extract_files.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/tests/test_files.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/tests/test_models.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/tests/test_qs.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/tests/test_required_args.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/tests/test_response.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/tests/test_streaming.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/tests/test_transform.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/tests/test_utils/test_proxy.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/tests/test_utils/test_typing.py +0 -0
- {scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/tests/utils.py +0 -0
|
@@ -1,5 +1,38 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.0-alpha.25 (2025-07-08)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.1.0-alpha.24...v0.1.0-alpha.25](https://github.com/scaleapi/sgp-python-beta/compare/v0.1.0-alpha.24...v0.1.0-alpha.25)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([d937386](https://github.com/scaleapi/sgp-python-beta/commit/d937386969965002529ef23275b4a288d2499d99))
|
|
10
|
+
* **api:** api update ([6d1b192](https://github.com/scaleapi/sgp-python-beta/commit/6d1b1928c7a5ebd0f513e0d384314cbed61e30b9))
|
|
11
|
+
* **api:** api update ([3844cb9](https://github.com/scaleapi/sgp-python-beta/commit/3844cb9da4431fd0e6142ee1496338f003155a3d))
|
|
12
|
+
* **api:** api update ([c67aa4a](https://github.com/scaleapi/sgp-python-beta/commit/c67aa4a949bee450e441b68ea2e923c7efb2a20f))
|
|
13
|
+
* **api:** api update ([dedd79c](https://github.com/scaleapi/sgp-python-beta/commit/dedd79c9b8688d55319b3f15793ddb72059aabf2))
|
|
14
|
+
* **api:** api update ([4c1c95c](https://github.com/scaleapi/sgp-python-beta/commit/4c1c95c0c759128dc9252c7eefc3debd3c620df2))
|
|
15
|
+
* **api:** api update ([94b4574](https://github.com/scaleapi/sgp-python-beta/commit/94b457407f359ecf58b4cfe47317764a2d8aa610))
|
|
16
|
+
* **api:** api update ([e736ad9](https://github.com/scaleapi/sgp-python-beta/commit/e736ad9f41f3ac68d3f7ba060e723ee51d47400d))
|
|
17
|
+
* **api:** manual updates ([8cc70c3](https://github.com/scaleapi/sgp-python-beta/commit/8cc70c3398981e1f36d257d66438c9778da71931))
|
|
18
|
+
* **client:** add support for aiohttp ([434a3f5](https://github.com/scaleapi/sgp-python-beta/commit/434a3f5cb69df3fecac702adcd4aef34e028c3c3))
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Bug Fixes
|
|
22
|
+
|
|
23
|
+
* **ci:** correct conditional ([c5f62cb](https://github.com/scaleapi/sgp-python-beta/commit/c5f62cb467a83d0f37127cac3e0dba86d27bd664))
|
|
24
|
+
* **ci:** release-doctor — report correct token name ([d95eac6](https://github.com/scaleapi/sgp-python-beta/commit/d95eac67fb447632b873d19537f1708f23407bb8))
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Chores
|
|
28
|
+
|
|
29
|
+
* **ci:** change upload type ([67827be](https://github.com/scaleapi/sgp-python-beta/commit/67827be9e10d33930494853a052ba3691082f8d8))
|
|
30
|
+
* **ci:** only run for pushes and fork pull requests ([38f3abf](https://github.com/scaleapi/sgp-python-beta/commit/38f3abf82ac72ade0d957b16520ad70885870cdb))
|
|
31
|
+
* **internal:** bump pinned h11 dep ([26726a9](https://github.com/scaleapi/sgp-python-beta/commit/26726a9554265d94f47ccfea4b95130aefe30870))
|
|
32
|
+
* **internal:** codegen related update ([e241cab](https://github.com/scaleapi/sgp-python-beta/commit/e241cabb4fe8251ac8469e47dec7483398a52dc4))
|
|
33
|
+
* **package:** mark python 3.13 as supported ([0e5f57c](https://github.com/scaleapi/sgp-python-beta/commit/0e5f57ca0cc7a40ed9f66f702e9916b26c963b17))
|
|
34
|
+
* **tests:** skip some failing tests on the latest python versions ([918baf4](https://github.com/scaleapi/sgp-python-beta/commit/918baf442cc1add527ea97709f4b791cf5b5afa8))
|
|
35
|
+
|
|
3
36
|
## 0.1.0-alpha.24 (2025-06-20)
|
|
4
37
|
|
|
5
38
|
Full Changelog: [v0.1.0-alpha.23...v0.1.0-alpha.24](https://github.com/scaleapi/sgp-python-beta/compare/v0.1.0-alpha.23...v0.1.0-alpha.24)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: scale-gp-beta
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.0a25
|
|
4
4
|
Summary: The official Python library for the Scale GP API
|
|
5
5
|
Project-URL: Homepage, https://github.com/scaleapi/sgp-python-beta
|
|
6
6
|
Project-URL: Repository, https://github.com/scaleapi/sgp-python-beta
|
|
@@ -18,6 +18,7 @@ Classifier: Programming Language :: Python :: 3.9
|
|
|
18
18
|
Classifier: Programming Language :: Python :: 3.10
|
|
19
19
|
Classifier: Programming Language :: Python :: 3.11
|
|
20
20
|
Classifier: Programming Language :: Python :: 3.12
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
21
22
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
22
23
|
Classifier: Typing :: Typed
|
|
23
24
|
Requires-Python: >=3.8
|
|
@@ -27,6 +28,9 @@ Requires-Dist: httpx<1,>=0.23.0
|
|
|
27
28
|
Requires-Dist: pydantic<3,>=1.9.0
|
|
28
29
|
Requires-Dist: sniffio
|
|
29
30
|
Requires-Dist: typing-extensions<5,>=4.10
|
|
31
|
+
Provides-Extra: aiohttp
|
|
32
|
+
Requires-Dist: aiohttp; extra == 'aiohttp'
|
|
33
|
+
Requires-Dist: httpx-aiohttp>=0.1.6; extra == 'aiohttp'
|
|
30
34
|
Description-Content-Type: text/markdown
|
|
31
35
|
|
|
32
36
|
# Scale GP Python API library
|
|
@@ -345,6 +349,42 @@ asyncio.run(main())
|
|
|
345
349
|
|
|
346
350
|
Functionality between the synchronous and asynchronous clients is otherwise identical.
|
|
347
351
|
|
|
352
|
+
### With aiohttp
|
|
353
|
+
|
|
354
|
+
By default, the async client uses `httpx` for HTTP requests. However, for improved concurrency performance you may also use `aiohttp` as the HTTP backend.
|
|
355
|
+
|
|
356
|
+
You can enable this by installing `aiohttp`:
|
|
357
|
+
|
|
358
|
+
```sh
|
|
359
|
+
# install from PyPI
|
|
360
|
+
pip install --pre scale-gp-beta[aiohttp]
|
|
361
|
+
```
|
|
362
|
+
|
|
363
|
+
Then you can enable it by instantiating the client with `http_client=DefaultAioHttpClient()`:
|
|
364
|
+
|
|
365
|
+
```python
|
|
366
|
+
import os
|
|
367
|
+
import asyncio
|
|
368
|
+
from scale_gp_beta import DefaultAioHttpClient
|
|
369
|
+
from scale_gp_beta import AsyncSGPClient
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
async def main() -> None:
|
|
373
|
+
async with AsyncSGPClient(
|
|
374
|
+
account_id="My Account ID",
|
|
375
|
+
api_key=os.environ.get("SGP_API_KEY"), # This is the default and can be omitted
|
|
376
|
+
http_client=DefaultAioHttpClient(),
|
|
377
|
+
) as client:
|
|
378
|
+
completion = await client.chat.completions.create(
|
|
379
|
+
messages=[{"foo": "bar"}],
|
|
380
|
+
model="model",
|
|
381
|
+
top_k=2,
|
|
382
|
+
)
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
asyncio.run(main())
|
|
386
|
+
```
|
|
387
|
+
|
|
348
388
|
## Streaming responses
|
|
349
389
|
|
|
350
390
|
We provide support for streaming responses using Server Side Events (SSE).
|
|
@@ -314,6 +314,42 @@ asyncio.run(main())
|
|
|
314
314
|
|
|
315
315
|
Functionality between the synchronous and asynchronous clients is otherwise identical.
|
|
316
316
|
|
|
317
|
+
### With aiohttp
|
|
318
|
+
|
|
319
|
+
By default, the async client uses `httpx` for HTTP requests. However, for improved concurrency performance you may also use `aiohttp` as the HTTP backend.
|
|
320
|
+
|
|
321
|
+
You can enable this by installing `aiohttp`:
|
|
322
|
+
|
|
323
|
+
```sh
|
|
324
|
+
# install from PyPI
|
|
325
|
+
pip install --pre scale-gp-beta[aiohttp]
|
|
326
|
+
```
|
|
327
|
+
|
|
328
|
+
Then you can enable it by instantiating the client with `http_client=DefaultAioHttpClient()`:
|
|
329
|
+
|
|
330
|
+
```python
|
|
331
|
+
import os
|
|
332
|
+
import asyncio
|
|
333
|
+
from scale_gp_beta import DefaultAioHttpClient
|
|
334
|
+
from scale_gp_beta import AsyncSGPClient
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
async def main() -> None:
|
|
338
|
+
async with AsyncSGPClient(
|
|
339
|
+
account_id="My Account ID",
|
|
340
|
+
api_key=os.environ.get("SGP_API_KEY"), # This is the default and can be omitted
|
|
341
|
+
http_client=DefaultAioHttpClient(),
|
|
342
|
+
) as client:
|
|
343
|
+
completion = await client.chat.completions.create(
|
|
344
|
+
messages=[{"foo": "bar"}],
|
|
345
|
+
model="model",
|
|
346
|
+
top_k=2,
|
|
347
|
+
)
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
asyncio.run(main())
|
|
351
|
+
```
|
|
352
|
+
|
|
317
353
|
## Streaming responses
|
|
318
354
|
|
|
319
355
|
We provide support for streaming responses using Server Side Events (SSE).
|
|
@@ -43,6 +43,20 @@ Methods:
|
|
|
43
43
|
|
|
44
44
|
- <code title="post /v5/inference">client.inference.<a href="./src/scale_gp_beta/resources/inference.py">create</a>(\*\*<a href="src/scale_gp_beta/types/inference_create_params.py">params</a>) -> <a href="./src/scale_gp_beta/types/inference_create_response.py">InferenceCreateResponse</a></code>
|
|
45
45
|
|
|
46
|
+
# Questions
|
|
47
|
+
|
|
48
|
+
Types:
|
|
49
|
+
|
|
50
|
+
```python
|
|
51
|
+
from scale_gp_beta.types import Question, QuestionList
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Methods:
|
|
55
|
+
|
|
56
|
+
- <code title="post /v5/questions">client.questions.<a href="./src/scale_gp_beta/resources/questions.py">create</a>(\*\*<a href="src/scale_gp_beta/types/question_create_params.py">params</a>) -> <a href="./src/scale_gp_beta/types/question.py">Question</a></code>
|
|
57
|
+
- <code title="get /v5/questions/{question_id}">client.questions.<a href="./src/scale_gp_beta/resources/questions.py">retrieve</a>(question_id) -> <a href="./src/scale_gp_beta/types/question.py">Question</a></code>
|
|
58
|
+
- <code title="get /v5/questions">client.questions.<a href="./src/scale_gp_beta/resources/questions.py">list</a>(\*\*<a href="src/scale_gp_beta/types/question_list_params.py">params</a>) -> <a href="./src/scale_gp_beta/types/question.py">SyncCursorPage[Question]</a></code>
|
|
59
|
+
|
|
46
60
|
# Files
|
|
47
61
|
|
|
48
62
|
Types:
|
|
@@ -157,7 +171,7 @@ Methods:
|
|
|
157
171
|
Types:
|
|
158
172
|
|
|
159
173
|
```python
|
|
160
|
-
from scale_gp_beta.types import Span, SpanBatchResponse,
|
|
174
|
+
from scale_gp_beta.types import Span, SpanBatchResponse, SpanUpsertBatchResponse
|
|
161
175
|
```
|
|
162
176
|
|
|
163
177
|
Methods:
|
|
@@ -166,5 +180,5 @@ Methods:
|
|
|
166
180
|
- <code title="get /v5/spans/{span_id}">client.spans.<a href="./src/scale_gp_beta/resources/spans.py">retrieve</a>(span_id) -> <a href="./src/scale_gp_beta/types/span.py">Span</a></code>
|
|
167
181
|
- <code title="patch /v5/spans/{span_id}">client.spans.<a href="./src/scale_gp_beta/resources/spans.py">update</a>(span_id, \*\*<a href="src/scale_gp_beta/types/span_update_params.py">params</a>) -> <a href="./src/scale_gp_beta/types/span.py">Span</a></code>
|
|
168
182
|
- <code title="post /v5/spans/batch">client.spans.<a href="./src/scale_gp_beta/resources/spans.py">batch</a>(\*\*<a href="src/scale_gp_beta/types/span_batch_params.py">params</a>) -> <a href="./src/scale_gp_beta/types/span_batch_response.py">SpanBatchResponse</a></code>
|
|
169
|
-
- <code title="post /v5/spans/search">client.spans.<a href="./src/scale_gp_beta/resources/spans.py">search</a>(\*\*<a href="src/scale_gp_beta/types/span_search_params.py">params</a>) -> <a href="./src/scale_gp_beta/types/
|
|
183
|
+
- <code title="post /v5/spans/search">client.spans.<a href="./src/scale_gp_beta/resources/spans.py">search</a>(\*\*<a href="src/scale_gp_beta/types/span_search_params.py">params</a>) -> <a href="./src/scale_gp_beta/types/span.py">SyncCursorPage[Span]</a></code>
|
|
170
184
|
- <code title="put /v5/spans/batch">client.spans.<a href="./src/scale_gp_beta/resources/spans.py">upsert_batch</a>(\*\*<a href="src/scale_gp_beta/types/span_upsert_batch_params.py">params</a>) -> <a href="./src/scale_gp_beta/types/span_upsert_batch_response.py">SpanUpsertBatchResponse</a></code>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
errors=()
|
|
4
4
|
|
|
5
5
|
if [ -z "${PYPI_TOKEN}" ]; then
|
|
6
|
-
errors+=("The
|
|
6
|
+
errors+=("The PYPI_TOKEN secret has not been set. Please set it in either this repository's secrets or your organization secrets.")
|
|
7
7
|
fi
|
|
8
8
|
|
|
9
9
|
lenErrors=${#errors[@]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "scale-gp-beta"
|
|
3
|
-
version = "0.1.0-alpha.
|
|
3
|
+
version = "0.1.0-alpha.25"
|
|
4
4
|
description = "The official Python library for the Scale GP API"
|
|
5
5
|
dynamic = ["readme"]
|
|
6
6
|
license = "Apache-2.0"
|
|
@@ -24,6 +24,7 @@ classifiers = [
|
|
|
24
24
|
"Programming Language :: Python :: 3.10",
|
|
25
25
|
"Programming Language :: Python :: 3.11",
|
|
26
26
|
"Programming Language :: Python :: 3.12",
|
|
27
|
+
"Programming Language :: Python :: 3.13",
|
|
27
28
|
"Operating System :: OS Independent",
|
|
28
29
|
"Operating System :: POSIX",
|
|
29
30
|
"Operating System :: MacOS",
|
|
@@ -37,6 +38,8 @@ classifiers = [
|
|
|
37
38
|
Homepage = "https://github.com/scaleapi/sgp-python-beta"
|
|
38
39
|
Repository = "https://github.com/scaleapi/sgp-python-beta"
|
|
39
40
|
|
|
41
|
+
[project.optional-dependencies]
|
|
42
|
+
aiohttp = ["aiohttp", "httpx_aiohttp>=0.1.6"]
|
|
40
43
|
|
|
41
44
|
[tool.rye]
|
|
42
45
|
managed = true
|
|
@@ -10,6 +10,13 @@
|
|
|
10
10
|
# universal: false
|
|
11
11
|
|
|
12
12
|
-e file:.
|
|
13
|
+
aiohappyeyeballs==2.6.1
|
|
14
|
+
# via aiohttp
|
|
15
|
+
aiohttp==3.12.8
|
|
16
|
+
# via httpx-aiohttp
|
|
17
|
+
# via scale-gp-beta
|
|
18
|
+
aiosignal==1.3.2
|
|
19
|
+
# via aiohttp
|
|
13
20
|
annotated-types==0.6.0
|
|
14
21
|
# via pydantic
|
|
15
22
|
anyio==4.4.0
|
|
@@ -17,6 +24,10 @@ anyio==4.4.0
|
|
|
17
24
|
# via scale-gp-beta
|
|
18
25
|
argcomplete==3.1.2
|
|
19
26
|
# via nox
|
|
27
|
+
async-timeout==5.0.1
|
|
28
|
+
# via aiohttp
|
|
29
|
+
attrs==25.3.0
|
|
30
|
+
# via aiohttp
|
|
20
31
|
certifi==2023.7.22
|
|
21
32
|
# via httpcore
|
|
22
33
|
# via httpx
|
|
@@ -34,16 +45,23 @@ execnet==2.1.1
|
|
|
34
45
|
# via pytest-xdist
|
|
35
46
|
filelock==3.12.4
|
|
36
47
|
# via virtualenv
|
|
37
|
-
|
|
48
|
+
frozenlist==1.6.2
|
|
49
|
+
# via aiohttp
|
|
50
|
+
# via aiosignal
|
|
51
|
+
h11==0.16.0
|
|
38
52
|
# via httpcore
|
|
39
|
-
httpcore==1.0.
|
|
53
|
+
httpcore==1.0.9
|
|
40
54
|
# via httpx
|
|
41
55
|
httpx==0.28.1
|
|
56
|
+
# via httpx-aiohttp
|
|
42
57
|
# via respx
|
|
43
58
|
# via scale-gp-beta
|
|
59
|
+
httpx-aiohttp==0.1.8
|
|
60
|
+
# via scale-gp-beta
|
|
44
61
|
idna==3.4
|
|
45
62
|
# via anyio
|
|
46
63
|
# via httpx
|
|
64
|
+
# via yarl
|
|
47
65
|
importlib-metadata==7.0.0
|
|
48
66
|
iniconfig==2.0.0
|
|
49
67
|
# via pytest
|
|
@@ -51,6 +69,9 @@ markdown-it-py==3.0.0
|
|
|
51
69
|
# via rich
|
|
52
70
|
mdurl==0.1.2
|
|
53
71
|
# via markdown-it-py
|
|
72
|
+
multidict==6.4.4
|
|
73
|
+
# via aiohttp
|
|
74
|
+
# via yarl
|
|
54
75
|
mypy==1.14.1
|
|
55
76
|
mypy-extensions==1.0.0
|
|
56
77
|
# via mypy
|
|
@@ -65,6 +86,9 @@ platformdirs==3.11.0
|
|
|
65
86
|
# via virtualenv
|
|
66
87
|
pluggy==1.5.0
|
|
67
88
|
# via pytest
|
|
89
|
+
propcache==0.3.1
|
|
90
|
+
# via aiohttp
|
|
91
|
+
# via yarl
|
|
68
92
|
pydantic==2.10.3
|
|
69
93
|
# via scale-gp-beta
|
|
70
94
|
pydantic-core==2.27.1
|
|
@@ -97,6 +121,7 @@ tomli==2.0.2
|
|
|
97
121
|
# via pytest
|
|
98
122
|
typing-extensions==4.12.2
|
|
99
123
|
# via anyio
|
|
124
|
+
# via multidict
|
|
100
125
|
# via mypy
|
|
101
126
|
# via pydantic
|
|
102
127
|
# via pydantic-core
|
|
@@ -104,5 +129,7 @@ typing-extensions==4.12.2
|
|
|
104
129
|
# via scale-gp-beta
|
|
105
130
|
virtualenv==20.24.5
|
|
106
131
|
# via nox
|
|
132
|
+
yarl==1.20.0
|
|
133
|
+
# via aiohttp
|
|
107
134
|
zipp==3.17.0
|
|
108
135
|
# via importlib-metadata
|
|
@@ -10,11 +10,22 @@
|
|
|
10
10
|
# universal: false
|
|
11
11
|
|
|
12
12
|
-e file:.
|
|
13
|
+
aiohappyeyeballs==2.6.1
|
|
14
|
+
# via aiohttp
|
|
15
|
+
aiohttp==3.12.8
|
|
16
|
+
# via httpx-aiohttp
|
|
17
|
+
# via scale-gp-beta
|
|
18
|
+
aiosignal==1.3.2
|
|
19
|
+
# via aiohttp
|
|
13
20
|
annotated-types==0.6.0
|
|
14
21
|
# via pydantic
|
|
15
22
|
anyio==4.4.0
|
|
16
23
|
# via httpx
|
|
17
24
|
# via scale-gp-beta
|
|
25
|
+
async-timeout==5.0.1
|
|
26
|
+
# via aiohttp
|
|
27
|
+
attrs==25.3.0
|
|
28
|
+
# via aiohttp
|
|
18
29
|
certifi==2023.7.22
|
|
19
30
|
# via httpcore
|
|
20
31
|
# via httpx
|
|
@@ -22,15 +33,28 @@ distro==1.8.0
|
|
|
22
33
|
# via scale-gp-beta
|
|
23
34
|
exceptiongroup==1.2.2
|
|
24
35
|
# via anyio
|
|
25
|
-
|
|
36
|
+
frozenlist==1.6.2
|
|
37
|
+
# via aiohttp
|
|
38
|
+
# via aiosignal
|
|
39
|
+
h11==0.16.0
|
|
26
40
|
# via httpcore
|
|
27
|
-
httpcore==1.0.
|
|
41
|
+
httpcore==1.0.9
|
|
28
42
|
# via httpx
|
|
29
43
|
httpx==0.28.1
|
|
44
|
+
# via httpx-aiohttp
|
|
45
|
+
# via scale-gp-beta
|
|
46
|
+
httpx-aiohttp==0.1.8
|
|
30
47
|
# via scale-gp-beta
|
|
31
48
|
idna==3.4
|
|
32
49
|
# via anyio
|
|
33
50
|
# via httpx
|
|
51
|
+
# via yarl
|
|
52
|
+
multidict==6.4.4
|
|
53
|
+
# via aiohttp
|
|
54
|
+
# via yarl
|
|
55
|
+
propcache==0.3.1
|
|
56
|
+
# via aiohttp
|
|
57
|
+
# via yarl
|
|
34
58
|
pydantic==2.10.3
|
|
35
59
|
# via scale-gp-beta
|
|
36
60
|
pydantic-core==2.27.1
|
|
@@ -40,6 +64,9 @@ sniffio==1.3.0
|
|
|
40
64
|
# via scale-gp-beta
|
|
41
65
|
typing-extensions==4.12.2
|
|
42
66
|
# via anyio
|
|
67
|
+
# via multidict
|
|
43
68
|
# via pydantic
|
|
44
69
|
# via pydantic-core
|
|
45
70
|
# via scale-gp-beta
|
|
71
|
+
yarl==1.20.0
|
|
72
|
+
# via aiohttp
|
|
@@ -37,7 +37,7 @@ from ._exceptions import (
|
|
|
37
37
|
UnprocessableEntityError,
|
|
38
38
|
APIResponseValidationError,
|
|
39
39
|
)
|
|
40
|
-
from ._base_client import DefaultHttpxClient, DefaultAsyncHttpxClient
|
|
40
|
+
from ._base_client import DefaultHttpxClient, DefaultAioHttpClient, DefaultAsyncHttpxClient
|
|
41
41
|
from ._utils._logs import setup_logging as _setup_logging
|
|
42
42
|
|
|
43
43
|
__all__ = [
|
|
@@ -80,6 +80,7 @@ __all__ = [
|
|
|
80
80
|
"DEFAULT_CONNECTION_LIMITS",
|
|
81
81
|
"DefaultHttpxClient",
|
|
82
82
|
"DefaultAsyncHttpxClient",
|
|
83
|
+
"DefaultAioHttpClient",
|
|
83
84
|
]
|
|
84
85
|
|
|
85
86
|
if not _t.TYPE_CHECKING:
|
|
@@ -1289,6 +1289,24 @@ class _DefaultAsyncHttpxClient(httpx.AsyncClient):
|
|
|
1289
1289
|
super().__init__(**kwargs)
|
|
1290
1290
|
|
|
1291
1291
|
|
|
1292
|
+
try:
|
|
1293
|
+
import httpx_aiohttp
|
|
1294
|
+
except ImportError:
|
|
1295
|
+
|
|
1296
|
+
class _DefaultAioHttpClient(httpx.AsyncClient):
|
|
1297
|
+
def __init__(self, **_kwargs: Any) -> None:
|
|
1298
|
+
raise RuntimeError("To use the aiohttp client you must have installed the package with the `aiohttp` extra")
|
|
1299
|
+
else:
|
|
1300
|
+
|
|
1301
|
+
class _DefaultAioHttpClient(httpx_aiohttp.HttpxAiohttpClient): # type: ignore
|
|
1302
|
+
def __init__(self, **kwargs: Any) -> None:
|
|
1303
|
+
kwargs.setdefault("timeout", DEFAULT_TIMEOUT)
|
|
1304
|
+
kwargs.setdefault("limits", DEFAULT_CONNECTION_LIMITS)
|
|
1305
|
+
kwargs.setdefault("follow_redirects", True)
|
|
1306
|
+
|
|
1307
|
+
super().__init__(**kwargs)
|
|
1308
|
+
|
|
1309
|
+
|
|
1292
1310
|
if TYPE_CHECKING:
|
|
1293
1311
|
DefaultAsyncHttpxClient = httpx.AsyncClient
|
|
1294
1312
|
"""An alias to `httpx.AsyncClient` that provides the same defaults that this SDK
|
|
@@ -1297,8 +1315,12 @@ if TYPE_CHECKING:
|
|
|
1297
1315
|
This is useful because overriding the `http_client` with your own instance of
|
|
1298
1316
|
`httpx.AsyncClient` will result in httpx's defaults being used, not ours.
|
|
1299
1317
|
"""
|
|
1318
|
+
|
|
1319
|
+
DefaultAioHttpClient = httpx.AsyncClient
|
|
1320
|
+
"""An alias to `httpx.AsyncClient` that changes the default HTTP transport to `aiohttp`."""
|
|
1300
1321
|
else:
|
|
1301
1322
|
DefaultAsyncHttpxClient = _DefaultAsyncHttpxClient
|
|
1323
|
+
DefaultAioHttpClient = _DefaultAioHttpClient
|
|
1302
1324
|
|
|
1303
1325
|
|
|
1304
1326
|
class AsyncHttpxClientWrapper(DefaultAsyncHttpxClient):
|
|
@@ -21,7 +21,17 @@ from ._types import (
|
|
|
21
21
|
)
|
|
22
22
|
from ._utils import is_given, get_async_library
|
|
23
23
|
from ._version import __version__
|
|
24
|
-
from .resources import
|
|
24
|
+
from .resources import (
|
|
25
|
+
spans,
|
|
26
|
+
models,
|
|
27
|
+
datasets,
|
|
28
|
+
inference,
|
|
29
|
+
questions,
|
|
30
|
+
completions,
|
|
31
|
+
evaluations,
|
|
32
|
+
dataset_items,
|
|
33
|
+
evaluation_items,
|
|
34
|
+
)
|
|
25
35
|
from ._streaming import Stream as Stream, AsyncStream as AsyncStream
|
|
26
36
|
from ._exceptions import APIStatusError, SGPClientError
|
|
27
37
|
from ._base_client import (
|
|
@@ -54,6 +64,7 @@ class SGPClient(SyncAPIClient):
|
|
|
54
64
|
completions: completions.CompletionsResource
|
|
55
65
|
chat: chat.ChatResource
|
|
56
66
|
inference: inference.InferenceResource
|
|
67
|
+
questions: questions.QuestionsResource
|
|
57
68
|
files: files.FilesResource
|
|
58
69
|
models: models.ModelsResource
|
|
59
70
|
datasets: datasets.DatasetsResource
|
|
@@ -157,6 +168,7 @@ class SGPClient(SyncAPIClient):
|
|
|
157
168
|
self.completions = completions.CompletionsResource(self)
|
|
158
169
|
self.chat = chat.ChatResource(self)
|
|
159
170
|
self.inference = inference.InferenceResource(self)
|
|
171
|
+
self.questions = questions.QuestionsResource(self)
|
|
160
172
|
self.files = files.FilesResource(self)
|
|
161
173
|
self.models = models.ModelsResource(self)
|
|
162
174
|
self.datasets = datasets.DatasetsResource(self)
|
|
@@ -281,6 +293,7 @@ class AsyncSGPClient(AsyncAPIClient):
|
|
|
281
293
|
completions: completions.AsyncCompletionsResource
|
|
282
294
|
chat: chat.AsyncChatResource
|
|
283
295
|
inference: inference.AsyncInferenceResource
|
|
296
|
+
questions: questions.AsyncQuestionsResource
|
|
284
297
|
files: files.AsyncFilesResource
|
|
285
298
|
models: models.AsyncModelsResource
|
|
286
299
|
datasets: datasets.AsyncDatasetsResource
|
|
@@ -384,6 +397,7 @@ class AsyncSGPClient(AsyncAPIClient):
|
|
|
384
397
|
self.completions = completions.AsyncCompletionsResource(self)
|
|
385
398
|
self.chat = chat.AsyncChatResource(self)
|
|
386
399
|
self.inference = inference.AsyncInferenceResource(self)
|
|
400
|
+
self.questions = questions.AsyncQuestionsResource(self)
|
|
387
401
|
self.files = files.AsyncFilesResource(self)
|
|
388
402
|
self.models = models.AsyncModelsResource(self)
|
|
389
403
|
self.datasets = datasets.AsyncDatasetsResource(self)
|
|
@@ -509,6 +523,7 @@ class SGPClientWithRawResponse:
|
|
|
509
523
|
self.completions = completions.CompletionsResourceWithRawResponse(client.completions)
|
|
510
524
|
self.chat = chat.ChatResourceWithRawResponse(client.chat)
|
|
511
525
|
self.inference = inference.InferenceResourceWithRawResponse(client.inference)
|
|
526
|
+
self.questions = questions.QuestionsResourceWithRawResponse(client.questions)
|
|
512
527
|
self.files = files.FilesResourceWithRawResponse(client.files)
|
|
513
528
|
self.models = models.ModelsResourceWithRawResponse(client.models)
|
|
514
529
|
self.datasets = datasets.DatasetsResourceWithRawResponse(client.datasets)
|
|
@@ -523,6 +538,7 @@ class AsyncSGPClientWithRawResponse:
|
|
|
523
538
|
self.completions = completions.AsyncCompletionsResourceWithRawResponse(client.completions)
|
|
524
539
|
self.chat = chat.AsyncChatResourceWithRawResponse(client.chat)
|
|
525
540
|
self.inference = inference.AsyncInferenceResourceWithRawResponse(client.inference)
|
|
541
|
+
self.questions = questions.AsyncQuestionsResourceWithRawResponse(client.questions)
|
|
526
542
|
self.files = files.AsyncFilesResourceWithRawResponse(client.files)
|
|
527
543
|
self.models = models.AsyncModelsResourceWithRawResponse(client.models)
|
|
528
544
|
self.datasets = datasets.AsyncDatasetsResourceWithRawResponse(client.datasets)
|
|
@@ -537,6 +553,7 @@ class SGPClientWithStreamedResponse:
|
|
|
537
553
|
self.completions = completions.CompletionsResourceWithStreamingResponse(client.completions)
|
|
538
554
|
self.chat = chat.ChatResourceWithStreamingResponse(client.chat)
|
|
539
555
|
self.inference = inference.InferenceResourceWithStreamingResponse(client.inference)
|
|
556
|
+
self.questions = questions.QuestionsResourceWithStreamingResponse(client.questions)
|
|
540
557
|
self.files = files.FilesResourceWithStreamingResponse(client.files)
|
|
541
558
|
self.models = models.ModelsResourceWithStreamingResponse(client.models)
|
|
542
559
|
self.datasets = datasets.DatasetsResourceWithStreamingResponse(client.datasets)
|
|
@@ -551,6 +568,7 @@ class AsyncSGPClientWithStreamedResponse:
|
|
|
551
568
|
self.completions = completions.AsyncCompletionsResourceWithStreamingResponse(client.completions)
|
|
552
569
|
self.chat = chat.AsyncChatResourceWithStreamingResponse(client.chat)
|
|
553
570
|
self.inference = inference.AsyncInferenceResourceWithStreamingResponse(client.inference)
|
|
571
|
+
self.questions = questions.AsyncQuestionsResourceWithStreamingResponse(client.questions)
|
|
554
572
|
self.files = files.AsyncFilesResourceWithStreamingResponse(client.files)
|
|
555
573
|
self.models = models.AsyncModelsResourceWithStreamingResponse(client.models)
|
|
556
574
|
self.datasets = datasets.AsyncDatasetsResourceWithStreamingResponse(client.datasets)
|
|
@@ -13,7 +13,7 @@ SpanInputParam = Dict[str, Any]
|
|
|
13
13
|
SpanOutputParam = Dict[str, Any]
|
|
14
14
|
SpanMetadataParam = Dict[str, Any]
|
|
15
15
|
|
|
16
|
-
SpanStatusLiterals = Literal["SUCCESS", "ERROR"]
|
|
16
|
+
SpanStatusLiterals = Literal["SUCCESS", "ERROR", "CANCELED"]
|
|
17
17
|
|
|
18
18
|
SpanTypeLiterals = Literal[
|
|
19
19
|
"TEXT_INPUT",
|
|
@@ -30,8 +30,6 @@ SpanTypeLiterals = Literal[
|
|
|
30
30
|
"DOCUMENT_SEARCH",
|
|
31
31
|
"DOCUMENT_PROMPT",
|
|
32
32
|
"CUSTOM",
|
|
33
|
-
"INPUT_GUARDRAIL",
|
|
34
|
-
"OUTPUT_GUARDRAIL",
|
|
35
33
|
"CODE_EXECUTION",
|
|
36
34
|
"DATA_MANIPULATION",
|
|
37
35
|
"EVALUATION",
|
|
@@ -48,6 +48,14 @@ from .inference import (
|
|
|
48
48
|
InferenceResourceWithStreamingResponse,
|
|
49
49
|
AsyncInferenceResourceWithStreamingResponse,
|
|
50
50
|
)
|
|
51
|
+
from .questions import (
|
|
52
|
+
QuestionsResource,
|
|
53
|
+
AsyncQuestionsResource,
|
|
54
|
+
QuestionsResourceWithRawResponse,
|
|
55
|
+
AsyncQuestionsResourceWithRawResponse,
|
|
56
|
+
QuestionsResourceWithStreamingResponse,
|
|
57
|
+
AsyncQuestionsResourceWithStreamingResponse,
|
|
58
|
+
)
|
|
51
59
|
from .completions import (
|
|
52
60
|
CompletionsResource,
|
|
53
61
|
AsyncCompletionsResource,
|
|
@@ -100,6 +108,12 @@ __all__ = [
|
|
|
100
108
|
"AsyncInferenceResourceWithRawResponse",
|
|
101
109
|
"InferenceResourceWithStreamingResponse",
|
|
102
110
|
"AsyncInferenceResourceWithStreamingResponse",
|
|
111
|
+
"QuestionsResource",
|
|
112
|
+
"AsyncQuestionsResource",
|
|
113
|
+
"QuestionsResourceWithRawResponse",
|
|
114
|
+
"AsyncQuestionsResourceWithRawResponse",
|
|
115
|
+
"QuestionsResourceWithStreamingResponse",
|
|
116
|
+
"AsyncQuestionsResourceWithStreamingResponse",
|
|
103
117
|
"FilesResource",
|
|
104
118
|
"AsyncFilesResource",
|
|
105
119
|
"FilesResourceWithRawResponse",
|
{scale_gp_beta-0.1.0a24 → scale_gp_beta-0.1.0a25}/src/scale_gp_beta/resources/chat/completions.py
RENAMED
|
@@ -536,6 +536,7 @@ class CompletionsResource(SyncAPIResource):
|
|
|
536
536
|
"model_zoo",
|
|
537
537
|
"bedrock",
|
|
538
538
|
"xai",
|
|
539
|
+
"fireworks_ai",
|
|
539
540
|
]
|
|
540
541
|
| NotGiven = NOT_GIVEN,
|
|
541
542
|
sort_order: Literal["asc", "desc"] | NotGiven = NOT_GIVEN,
|
|
@@ -548,7 +549,7 @@ class CompletionsResource(SyncAPIResource):
|
|
|
548
549
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
549
550
|
) -> CompletionModelsResponse:
|
|
550
551
|
"""
|
|
551
|
-
Chat
|
|
552
|
+
List Chat Completion Models
|
|
552
553
|
|
|
553
554
|
Args:
|
|
554
555
|
extra_headers: Send extra headers
|
|
@@ -1090,6 +1091,7 @@ class AsyncCompletionsResource(AsyncAPIResource):
|
|
|
1090
1091
|
"model_zoo",
|
|
1091
1092
|
"bedrock",
|
|
1092
1093
|
"xai",
|
|
1094
|
+
"fireworks_ai",
|
|
1093
1095
|
]
|
|
1094
1096
|
| NotGiven = NOT_GIVEN,
|
|
1095
1097
|
sort_order: Literal["asc", "desc"] | NotGiven = NOT_GIVEN,
|
|
@@ -1102,7 +1104,7 @@ class AsyncCompletionsResource(AsyncAPIResource):
|
|
|
1102
1104
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
1103
1105
|
) -> CompletionModelsResponse:
|
|
1104
1106
|
"""
|
|
1105
|
-
Chat
|
|
1107
|
+
List Chat Completion Models
|
|
1106
1108
|
|
|
1107
1109
|
Args:
|
|
1108
1110
|
extra_headers: Send extra headers
|
|
@@ -317,6 +317,7 @@ class ModelsResource(SyncAPIResource):
|
|
|
317
317
|
"model_zoo",
|
|
318
318
|
"bedrock",
|
|
319
319
|
"xai",
|
|
320
|
+
"fireworks_ai",
|
|
320
321
|
]
|
|
321
322
|
| NotGiven = NOT_GIVEN,
|
|
322
323
|
name: str | NotGiven = NOT_GIVEN,
|
|
@@ -689,6 +690,7 @@ class AsyncModelsResource(AsyncAPIResource):
|
|
|
689
690
|
"model_zoo",
|
|
690
691
|
"bedrock",
|
|
691
692
|
"xai",
|
|
693
|
+
"fireworks_ai",
|
|
692
694
|
]
|
|
693
695
|
| NotGiven = NOT_GIVEN,
|
|
694
696
|
name: str | NotGiven = NOT_GIVEN,
|