From 9590546ca85e234a48d022ca5ee990ad7a30a50e Mon Sep 17 00:00:00 2001 From: Chengxi Li Date: Wed, 20 May 2026 23:40:08 -0700 Subject: [PATCH 1/3] chore: remove Stainless dependencies + fix autorelease single source of truth This PR completes the de-Stainless migration: * Strip the "File generated from our OpenAPI spec by Stainless" header comment from every auto-generated .py file (248 files). * Rename wire-protocol HTTP headers: X-Stainless-* -> X-Fireworks-* in _base_client.py, _client.py, _constants.py, _utils/_utils.py, and the matching test assertions. The X-Fireworks-Lang/-Package-Version/-OS/ -Arch/-Runtime/-Async/-Retry-Count/-Read-Timeout/-Raw-Response headers ship on every request; server-side will be updated to read the new prefix. * Rename internal token "____stainless_override_cast_to" -> "____fireworks_override_cast_to" and "stainless-python-retry-..." retry id prefix -> "fireworks-python-retry-...". * Delete the release-please pipeline artefacts: .release-please-manifest.json, release-please-config.json, .stats.yml. The version-bump tool now reads pyproject.toml directly as the single source of truth. * release-tag.yml now reads the version from pyproject.toml on the merged commit. No commit-subject regex, no dispatch-input override, no manifest fallback. Single source of truth. The "Mark release PR as tagged" step also drops its || true masks: a missing PR association or a failed label flip is a loud error, not silently swallowed. * release-doctor.yml branch-name filter switched from "release-please" to "autorelease/" prefix; companion PR in staging renames the release PR branch to autorelease/next. * Strip remaining Stainless mentions from README.md, CLAUDE.md, llms.txt, pyproject.toml comments, lib/.keep markers, and _legacy_compat.py docstring. * SECURITY.md: drop Stainless contact, consolidate on security@fireworks.ai as the sole reporting address for this SDK. CHANGELOG.md historical entries that reference Stainless are preserved as-is (history, not current state). --- .github/workflows/release-doctor.yml | 2 +- .github/workflows/release-tag.yml | 80 ++++++++----------- .release-please-manifest.json | 3 - .stats.yml | 4 - CLAUDE.md | 2 +- README.md | 4 +- SECURITY.md | 20 +---- llms.txt | 2 +- pyproject.toml | 2 +- release-please-config.json | 66 --------------- src/fireworks/__init__.py | 2 - src/fireworks/_base_client.py | 22 ++--- src/fireworks/_client.py | 6 +- src/fireworks/_constants.py | 6 +- src/fireworks/_exceptions.py | 2 - src/fireworks/_resource.py | 2 - src/fireworks/_utils/_utils.py | 2 +- src/fireworks/_version.py | 2 - src/fireworks/lib/.keep | 5 +- src/fireworks/lib/_legacy_compat.py | 2 +- src/fireworks/pagination.py | 2 - src/fireworks/resources/__init__.py | 2 - src/fireworks/resources/accounts.py | 2 - src/fireworks/resources/api_keys.py | 2 - .../resources/batch_inference_jobs.py | 2 - src/fireworks/resources/chat/__init__.py | 2 - src/fireworks/resources/chat/chat.py | 2 - src/fireworks/resources/chat/completions.py | 2 - src/fireworks/resources/completions.py | 2 - src/fireworks/resources/datasets.py | 2 - .../resources/deployment_shape_versions.py | 2 - src/fireworks/resources/deployment_shapes.py | 2 - src/fireworks/resources/deployments.py | 2 - src/fireworks/resources/dpo_jobs.py | 2 - src/fireworks/resources/evaluation_jobs.py | 2 - src/fireworks/resources/evaluators.py | 2 - src/fireworks/resources/lora.py | 2 - src/fireworks/resources/messages.py | 2 - src/fireworks/resources/models.py | 2 - .../reinforcement_fine_tuning_jobs.py | 2 - .../reinforcement_fine_tuning_steps.py | 2 - src/fireworks/resources/secrets.py | 2 - .../resources/supervised_fine_tuning_jobs.py | 2 - src/fireworks/resources/users.py | 2 - src/fireworks/types/__init__.py | 2 - src/fireworks/types/account.py | 2 - src/fireworks/types/account_get_params.py | 2 - src/fireworks/types/account_list_params.py | 2 - src/fireworks/types/api_key.py | 2 - src/fireworks/types/api_key_create_params.py | 2 - src/fireworks/types/api_key_delete_params.py | 2 - src/fireworks/types/api_key_list_params.py | 2 - src/fireworks/types/api_key_param.py | 2 - src/fireworks/types/auto_tune.py | 2 - src/fireworks/types/auto_tune_param.py | 2 - src/fireworks/types/autoscaling_policy.py | 2 - .../types/autoscaling_policy_param.py | 2 - src/fireworks/types/base_model_details.py | 2 - .../types/base_model_details_param.py | 2 - src/fireworks/types/batch_inference_job.py | 2 - .../batch_inference_job_create_params.py | 2 - .../types/batch_inference_job_get_params.py | 2 - .../types/batch_inference_job_list_params.py | 2 - .../types/cache_control_ephemeral_param.py | 2 - src/fireworks/types/chat/__init__.py | 2 - .../types/chat/chat_completion_chunk.py | 2 - .../types/chat/completion_create_params.py | 2 - .../types/chat/completion_create_response.py | 2 - src/fireworks/types/completion_chunk.py | 2 - .../types/completion_create_params.py | 2 - .../types/completion_create_response.py | 2 - src/fireworks/types/content_block.py | 2 - src/fireworks/types/conversation_config.py | 2 - .../types/conversation_config_param.py | 2 - src/fireworks/types/dataset.py | 2 - src/fireworks/types/dataset_create_params.py | 2 - .../dataset_get_download_endpoint_params.py | 2 - .../dataset_get_download_endpoint_response.py | 2 - src/fireworks/types/dataset_get_params.py | 2 - .../dataset_get_upload_endpoint_params.py | 2 - .../dataset_get_upload_endpoint_response.py | 2 - src/fireworks/types/dataset_list_params.py | 2 - src/fireworks/types/dataset_param.py | 2 - src/fireworks/types/dataset_update_params.py | 2 - src/fireworks/types/dataset_upload_params.py | 2 - .../types/dataset_upload_response.py | 2 - .../types/dataset_validate_upload_params.py | 2 - src/fireworks/types/deployment.py | 2 - .../types/deployment_create_params.py | 2 - .../types/deployment_delete_params.py | 2 - src/fireworks/types/deployment_get_params.py | 2 - src/fireworks/types/deployment_list_params.py | 2 - .../types/deployment_scale_params.py | 2 - src/fireworks/types/deployment_shape.py | 2 - .../types/deployment_shape_get_params.py | 2 - .../types/deployment_shape_list_params.py | 2 - .../types/deployment_shape_version.py | 2 - .../deployment_shape_version_get_params.py | 2 - .../deployment_shape_version_list_params.py | 2 - .../types/deployment_undelete_params.py | 2 - .../types/deployment_update_params.py | 2 - src/fireworks/types/dpo_job.py | 2 - src/fireworks/types/dpo_job_create_params.py | 2 - ..._job_get_metrics_file_endpoint_response.py | 2 - src/fireworks/types/dpo_job_get_params.py | 2 - src/fireworks/types/dpo_job_list_params.py | 2 - src/fireworks/types/dpo_job_resume_params.py | 2 - .../types/evaluation_job_create_params.py | 2 - .../types/evaluation_job_create_response.py | 2 - ...valuation_job_get_log_endpoint_response.py | 2 - .../types/evaluation_job_get_params.py | 2 - .../types/evaluation_job_get_response.py | 2 - .../types/evaluation_job_list_params.py | 2 - .../types/evaluation_job_list_response.py | 2 - src/fireworks/types/evaluation_result.py | 2 - .../types/evaluation_result_param.py | 2 - .../types/evaluator_create_params.py | 2 - .../types/evaluator_create_response.py | 2 - ...evaluator_get_build_log_endpoint_params.py | 2 - ...aluator_get_build_log_endpoint_response.py | 2 - src/fireworks/types/evaluator_get_params.py | 2 - src/fireworks/types/evaluator_get_response.py | 2 - ...aluator_get_source_code_endpoint_params.py | 2 - ...uator_get_source_code_endpoint_response.py | 2 - .../evaluator_get_upload_endpoint_params.py | 2 - .../evaluator_get_upload_endpoint_response.py | 2 - src/fireworks/types/evaluator_list_params.py | 2 - .../types/evaluator_list_response.py | 2 - src/fireworks/types/evaluator_source.py | 2 - src/fireworks/types/evaluator_source_param.py | 2 - .../types/evaluator_update_params.py | 2 - .../types/evaluator_update_response.py | 2 - .../types/evaluator_validate_upload_params.py | 2 - src/fireworks/types/lora_get_params.py | 2 - src/fireworks/types/lora_list_params.py | 2 - src/fireworks/types/lora_load_params.py | 2 - src/fireworks/types/lora_update_params.py | 2 - src/fireworks/types/message_create_params.py | 2 - .../types/message_create_response.py | 2 - src/fireworks/types/model.py | 2 - src/fireworks/types/model_create_params.py | 2 - .../model_get_download_endpoint_params.py | 2 - .../model_get_download_endpoint_response.py | 2 - src/fireworks/types/model_get_params.py | 2 - .../types/model_get_upload_endpoint_params.py | 2 - .../model_get_upload_endpoint_response.py | 2 - src/fireworks/types/model_list_params.py | 2 - src/fireworks/types/model_param.py | 2 - src/fireworks/types/model_prepare_params.py | 2 - src/fireworks/types/model_update_params.py | 2 - .../types/model_validate_upload_params.py | 2 - .../types/model_validate_upload_response.py | 2 - src/fireworks/types/peft_details.py | 2 - src/fireworks/types/peft_details_param.py | 2 - src/fireworks/types/placement.py | 2 - src/fireworks/types/placement_param.py | 2 - .../types/reinforcement_fine_tuning_job.py | 2 - ...forcement_fine_tuning_job_cancel_params.py | 2 - ...forcement_fine_tuning_job_create_params.py | 2 - ...einforcement_fine_tuning_job_get_params.py | 2 - ...inforcement_fine_tuning_job_list_params.py | 2 - ...forcement_fine_tuning_job_resume_params.py | 2 - .../types/reinforcement_fine_tuning_step.py | 2 - ...orcement_fine_tuning_step_create_params.py | 2 - ...rcement_fine_tuning_step_execute_params.py | 2 - ...inforcement_fine_tuning_step_get_params.py | 2 - ...nforcement_fine_tuning_step_list_params.py | 2 - ...orcement_fine_tuning_step_resume_params.py | 2 - .../request_char_location_citation_param.py | 2 - ...t_content_block_location_citation_param.py | 2 - .../types/request_image_block_param.py | 2 - .../request_page_location_citation_param.py | 2 - ...t_search_result_location_citation_param.py | 2 - .../types/request_text_block_param.py | 2 - ...b_search_result_location_citation_param.py | 2 - .../types/response_char_location_citation.py | 2 - ...esponse_content_block_location_citation.py | 2 - .../types/response_page_location_citation.py | 2 - .../types/response_redacted_thinking_block.py | 2 - ...esponse_search_result_location_citation.py | 2 - src/fireworks/types/response_text_block.py | 2 - .../types/response_thinking_block.py | 2 - .../types/response_tool_use_block.py | 2 - ...nse_web_search_result_location_citation.py | 2 - src/fireworks/types/secret.py | 2 - src/fireworks/types/secret_create_params.py | 2 - src/fireworks/types/secret_get_params.py | 2 - src/fireworks/types/secret_list_params.py | 2 - src/fireworks/types/secret_update_params.py | 2 - src/fireworks/types/shared/__init__.py | 2 - .../chat_completion_message_tool_call.py | 2 - ...t_completion_message_tool_call_function.py | 2 - .../types/shared/chat_completion_tool.py | 2 - src/fireworks/types/shared/chat_message.py | 2 - src/fireworks/types/shared/choice.py | 2 - src/fireworks/types/shared/deployed_model.py | 2 - .../types/shared/deployed_model_ref.py | 2 - src/fireworks/types/shared/log_probs.py | 2 - src/fireworks/types/shared/new_log_probs.py | 2 - .../types/shared/new_log_probs_content.py | 2 - .../new_log_probs_content_top_log_probs.py | 2 - .../types/shared/prompt_tokens_details.py | 2 - src/fireworks/types/shared/raw_output.py | 2 - .../reinforcement_learning_loss_config.py | 2 - src/fireworks/types/shared/status.py | 2 - src/fireworks/types/shared/training_config.py | 2 - src/fireworks/types/shared/usage_info.py | 2 - src/fireworks/types/shared/wandb_config.py | 2 - src/fireworks/types/shared_params/__init__.py | 2 - .../chat_completion_message_tool_call.py | 2 - ...t_completion_message_tool_call_function.py | 2 - .../shared_params/chat_completion_tool.py | 2 - .../types/shared_params/chat_message.py | 2 - .../types/shared_params/deployed_model_ref.py | 2 - .../reinforcement_learning_loss_config.py | 2 - src/fireworks/types/shared_params/status.py | 2 - .../types/shared_params/training_config.py | 2 - .../types/shared_params/wandb_config.py | 2 - src/fireworks/types/splitted.py | 2 - src/fireworks/types/splitted_param.py | 2 - .../types/supervised_fine_tuning_job.py | 2 - ...upervised_fine_tuning_job_create_params.py | 2 - .../supervised_fine_tuning_job_get_params.py | 2 - .../supervised_fine_tuning_job_list_params.py | 2 - ...upervised_fine_tuning_job_resume_params.py | 2 - src/fireworks/types/transformed.py | 2 - src/fireworks/types/transformed_param.py | 2 - src/fireworks/types/type_date.py | 2 - src/fireworks/types/type_date_param.py | 2 - src/fireworks/types/user.py | 2 - src/fireworks/types/user_create_params.py | 2 - src/fireworks/types/user_get_params.py | 2 - src/fireworks/types/user_list_params.py | 2 - src/fireworks/types/user_update_params.py | 2 - src/fireworks_ai/lib/.keep | 5 +- tests/__init__.py | 1 - tests/api_resources/__init__.py | 1 - tests/api_resources/chat/__init__.py | 1 - tests/api_resources/chat/test_completions.py | 18 ++--- tests/api_resources/test_accounts.py | 18 ++--- tests/api_resources/test_api_keys.py | 26 +++--- .../test_batch_inference_jobs.py | 34 ++++---- tests/api_resources/test_completions.py | 18 ++--- tests/api_resources/test_datasets.py | 74 +++++++++-------- .../test_deployment_shape_versions.py | 18 ++--- tests/api_resources/test_deployment_shapes.py | 18 ++--- tests/api_resources/test_deployments.py | 58 +++++++------- tests/api_resources/test_dpo_jobs.py | 50 ++++++------ tests/api_resources/test_evaluation_jobs.py | 42 +++++----- tests/api_resources/test_evaluators.py | 74 +++++++++-------- tests/api_resources/test_lora.py | 42 +++++----- tests/api_resources/test_messages.py | 10 +-- tests/api_resources/test_models.py | 74 +++++++++-------- .../test_reinforcement_fine_tuning_jobs.py | 50 ++++++------ .../test_reinforcement_fine_tuning_steps.py | 50 ++++++------ tests/api_resources/test_secrets.py | 42 +++++----- .../test_supervised_fine_tuning_jobs.py | 42 +++++----- tests/api_resources/test_users.py | 34 ++++---- tests/conftest.py | 2 - tests/test_client.py | 34 ++++---- 260 files changed, 456 insertions(+), 1044 deletions(-) delete mode 100644 .release-please-manifest.json delete mode 100644 .stats.yml delete mode 100644 release-please-config.json diff --git a/.github/workflows/release-doctor.yml b/.github/workflows/release-doctor.yml index 745714d7..a386ef5e 100644 --- a/.github/workflows/release-doctor.yml +++ b/.github/workflows/release-doctor.yml @@ -9,7 +9,7 @@ jobs: release_doctor: name: release doctor runs-on: ubuntu-latest - if: github.repository == 'fw-ai-external/python-sdk' && (github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next') + if: github.repository == 'fw-ai-external/python-sdk' && (github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'autorelease/') || github.head_ref == 'next') steps: - uses: actions/checkout@v6 diff --git a/.github/workflows/release-tag.yml b/.github/workflows/release-tag.yml index 3e0b9661..23530cfd 100644 --- a/.github/workflows/release-tag.yml +++ b/.github/workflows/release-tag.yml @@ -1,28 +1,23 @@ name: Release Tag -# Fires when a "release: X.Y.Z" commit lands on main (typically via -# squash-merge of an upstream-prepared release PR; subject has no "v" -# prefix, the tag does). Creates the matching git tag vX.Y.Z and a -# GitHub Release, which is what publish-pypi.yml listens for. The -# GitHub Release MUST be created with FW_AI_BOT_TOKEN (a PAT) rather -# than github.token, because Release events triggered by github.token -# do not cascade into other workflows — using github.token would -# silently break the publish chain. Idempotent — the tag/release won't -# be recreated if they already exist. +# Fires on every push to main. If pyproject.toml carries a version that has +# not yet been tagged, this workflow creates the matching git tag vX.Y.Z and a +# GitHub Release, which is what publish-pypi.yml listens for. pyproject.toml +# is the single source of truth for the released version — no commit-subject +# regex, no manifest, no workflow_dispatch override. The GitHub Release MUST +# be created with FW_AI_BOT_TOKEN (a PAT) rather than github.token, because +# Release events triggered by github.token do not cascade into other +# workflows. Idempotent — the tag/release won't be recreated if they already +# exist. on: push: branches: - main - workflow_dispatch: - inputs: - version: - description: Version to tag (e.g. 1.2.0-alpha.72); leave blank to read manifest - type: string - required: false permissions: contents: write + pull-requests: write jobs: tag: @@ -32,43 +27,33 @@ jobs: - uses: actions/checkout@v6 with: fetch-depth: 0 - token: ${{ secrets.FW_AI_BOT_TOKEN || github.token }} + token: ${{ secrets.FW_AI_BOT_TOKEN }} - name: Determine version id: version - env: - DISPATCH_VERSION: ${{ github.event.inputs.version }} run: | set -euo pipefail - if [[ "${GITHUB_EVENT_NAME}" == "workflow_dispatch" && -n "${DISPATCH_VERSION}" ]]; then - version="${DISPATCH_VERSION}" - elif [[ "${GITHUB_EVENT_NAME}" == "workflow_dispatch" ]]; then - # Manual recovery dispatch with no version: read the manifest. - version="$(python3 -c 'import json; print(json.load(open(".release-please-manifest.json"))["."])')" - else - # Push to main: the commit subject is the source of truth. - # The optional " (#NNN)" suffix is what GitHub appends on - # squash-merge; capture only the version token. - subject="$(git log -1 --format=%s)" - if [[ ! "${subject}" =~ ^release:\ +([0-9][0-9A-Za-z._-]*)(\ +\(#[0-9]+\))?$ ]]; then - echo "Most recent commit is not a release commit; nothing to tag." - echo "skip=true" >> "$GITHUB_OUTPUT" - exit 0 - fi - version="${BASH_REMATCH[1]}" - fi + # Single source of truth: pyproject.toml [project] version on the + # merged commit. No commit-subject parsing, no manifest, no fallback. + version="$(python3 -c ' + import sys + try: + import tomllib + except ModuleNotFoundError: + import tomli as tomllib + with open("pyproject.toml", "rb") as f: + print(tomllib.load(f)["project"]["version"]) + ')" - # Belt-and-suspenders: validate the version regardless of source - # (push subject, explicit dispatch input, or manifest fallback). if [[ ! "${version}" =~ ^[0-9][0-9A-Za-z._-]*$ ]]; then - echo "::error::Invalid release version: ${version}" + echo "::error::Invalid version in pyproject.toml: ${version}" exit 1 fi tag="v${version}" if git rev-parse -q --verify "refs/tags/${tag}" >/dev/null; then - echo "Tag ${tag} already exists; skipping." + echo "Tag ${tag} already exists; nothing to do." echo "skip=true" >> "$GITHUB_OUTPUT" exit 0 fi @@ -127,16 +112,17 @@ jobs: run: | set -euo pipefail # Find the PR that was squash-merged to produce this release commit - # and flip the autorelease labels: pending -> tagged. - # Failure here is informational only — the tag and GitHub Release - # are already created and the next workflow listening on Release - # has fired. + # and flip the autorelease labels: pending -> tagged. Fails loudly + # if the label flip cannot complete — no silent || true masks. If + # this step fails after the tag and Release are created, re-run + # the failed job; it is safe to re-run (label add/remove are + # idempotent). pr_number="$(gh api "repos/${GITHUB_REPOSITORY}/commits/${GITHUB_SHA}/pulls" \ - --jq '.[0].number // empty' 2>/dev/null || true)" + --jq '.[0].number // empty')" if [[ -z "${pr_number}" ]]; then - echo "No PR association for ${GITHUB_SHA}; skipping label update." - exit 0 + echo "::error::No PR association found for ${GITHUB_SHA}. Cannot flip autorelease label." + exit 1 fi gh pr edit "${pr_number}" --repo "${GITHUB_REPOSITORY}" \ --remove-label "autorelease: pending" \ - --add-label "autorelease: tagged" || true + --add-label "autorelease: tagged" diff --git a/.release-please-manifest.json b/.release-please-manifest.json deleted file mode 100644 index 1481190e..00000000 --- a/.release-please-manifest.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - ".": "1.2.0-alpha.72" -} diff --git a/.stats.yml b/.stats.yml deleted file mode 100644 index 87b3d32f..00000000 --- a/.stats.yml +++ /dev/null @@ -1,4 +0,0 @@ -configured_endpoints: 92 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/fireworks-ai/fireworks-ai-65b17041c3092296c4492a7bb6a368b62cb49c14a7bea6e8f053261641d8a0cc.yml -openapi_spec_hash: e5c67d93df50bb94fca008115d11254c -config_hash: 3ed8f2695ae568c53993cfe3f347b89c diff --git a/CLAUDE.md b/CLAUDE.md index acf8c303..7bdfcb28 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -4,7 +4,7 @@ When working on the tinker-style training SDK, **only look at code in `src/fireworks/training/`**. Do not reference or modify training-related code outside of this directory. -This SDK repo contains auto-generated code from Stainless outside of `src/fireworks/training/`. The training SDK is developed independently and lives entirely within that directory. +This SDK repo contains auto-generated REST API client code outside of `src/fireworks/training/`. The training SDK is developed independently and lives entirely within that directory. ## Skill lives in the cookbook diff --git a/README.md b/README.md index 618e6493..25c0f202 100644 --- a/README.md +++ b/README.md @@ -35,8 +35,8 @@ the SDK release unless you are intentionally testing a newer pairing. > **Note:** The training SDK source lives entirely in > [`src/fireworks/training/`](src/fireworks/training/). All other code in this -> repository is auto-generated by Stainless and should **not** be referenced or -> modified when working on training features. See +> repository is auto-generated from the Fireworks REST API spec and should +> **not** be referenced or modified when working on training features. See > [`src/fireworks/training/README.md`](src/fireworks/training/README.md) for > training-specific documentation. diff --git a/SECURITY.md b/SECURITY.md index 325f0b93..2313da38 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -2,26 +2,14 @@ ## Reporting Security Issues -This SDK is generated by [Stainless Software Inc](http://stainless.com). Stainless takes security seriously, and encourages you to report any security vulnerability promptly so that appropriate action can be taken. +Fireworks AI takes security seriously. If you believe you have found a security vulnerability in this SDK or in the Fireworks services and products it interacts with, please report it promptly so we can investigate and address it. -To report a security issue, please contact the Stainless team at security@stainless.com. +To report a security issue, please contact security@fireworks.ai. ## Responsible Disclosure -We appreciate the efforts of security researchers and individuals who help us maintain the security of -SDKs we generate. If you believe you have found a security vulnerability, please adhere to responsible -disclosure practices by allowing us a reasonable amount of time to investigate and address the issue -before making any information public. - -## Reporting Non-SDK Related Security Issues - -If you encounter security issues that are not directly related to SDKs but pertain to the services -or products provided by Fireworks, please follow the respective company's security reporting guidelines. - -### Fireworks Terms and Policies - -Please contact dhuang@fireworks.ai for any questions or concerns regarding the security of our services. +We appreciate the efforts of security researchers and individuals who help us maintain the security of this SDK and our services. Please adhere to responsible disclosure practices by allowing us a reasonable amount of time to investigate and address the issue before making any information public. --- -Thank you for helping us keep the SDKs and systems they interact with secure. +Thank you for helping us keep this SDK and the systems it interacts with secure. diff --git a/llms.txt b/llms.txt index 37ee011c..df3a7b8c 100644 --- a/llms.txt +++ b/llms.txt @@ -2,7 +2,7 @@ This repository contains two separate codebases: -1. **Fireworks REST API SDK** (auto-generated by Stainless) — everything outside of `src/fireworks/training/`. +1. **Fireworks REST API SDK** (auto-generated from the Fireworks REST API spec) — everything outside of `src/fireworks/training/`. 2. **Tinker-style Training SDK** — located entirely in `src/fireworks/training/`. ## Important: Training SDK scope diff --git a/pyproject.toml b/pyproject.toml index d2215a0f..f20402be 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -154,7 +154,7 @@ pattern = '\[(.+?)\]\(((?!https?://)\S+?)\)' replacement = '[\1](https://github.com/fw-ai-external/python-sdk/tree/main/\g<2>)' [tool.coverage.run] -# Exclude Stainless-autogenerated CRUD (resources/types) and the training SDK +# Exclude auto-generated CRUD (resources/types) and the training SDK # (which has its own test suite in src/fireworks/training/sdk/tests/). The gate # measures the SDK infrastructure and our backwards-compat shims. omit = [ diff --git a/release-please-config.json b/release-please-config.json deleted file mode 100644 index c24a3935..00000000 --- a/release-please-config.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "packages": { - ".": {} - }, - "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json", - "include-v-in-tag": true, - "include-component-in-tag": false, - "versioning": "prerelease", - "prerelease": true, - "bump-minor-pre-major": true, - "bump-patch-for-minor-pre-major": false, - "pull-request-header": "Automated Release PR", - "pull-request-title-pattern": "release: ${version}", - "changelog-sections": [ - { - "type": "feat", - "section": "Features" - }, - { - "type": "fix", - "section": "Bug Fixes" - }, - { - "type": "perf", - "section": "Performance Improvements" - }, - { - "type": "revert", - "section": "Reverts" - }, - { - "type": "chore", - "section": "Chores" - }, - { - "type": "docs", - "section": "Documentation" - }, - { - "type": "style", - "section": "Styles" - }, - { - "type": "refactor", - "section": "Refactors" - }, - { - "type": "test", - "section": "Tests", - "hidden": true - }, - { - "type": "build", - "section": "Build System" - }, - { - "type": "ci", - "section": "Continuous Integration", - "hidden": true - } - ], - "release-type": "python", - "extra-files": [ - "src/fireworks/_version.py" - ] -} diff --git a/src/fireworks/__init__.py b/src/fireworks/__init__.py index 131e0522..6ea93fe1 100644 --- a/src/fireworks/__init__.py +++ b/src/fireworks/__init__.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - import typing as _t from . import types diff --git a/src/fireworks/_base_client.py b/src/fireworks/_base_client.py index bfaaae7a..722cc7ad 100644 --- a/src/fireworks/_base_client.py +++ b/src/fireworks/_base_client.py @@ -447,14 +447,14 @@ def _build_headers(self, options: FinalRequestOptions, *, retries_taken: int = 0 # Don't set these headers if they were already set or removed by the caller. We check # `custom_headers`, which can contain `Omit()`, instead of `headers` to account for the removal case. lower_custom_headers = [header.lower() for header in custom_headers] - if "x-stainless-retry-count" not in lower_custom_headers: - headers["x-stainless-retry-count"] = str(retries_taken) - if "x-stainless-read-timeout" not in lower_custom_headers: + if "x-fireworks-retry-count" not in lower_custom_headers: + headers["x-fireworks-retry-count"] = str(retries_taken) + if "x-fireworks-read-timeout" not in lower_custom_headers: timeout = self.timeout if isinstance(options.timeout, NotGiven) else options.timeout if isinstance(timeout, Timeout): timeout = timeout.read if timeout is not None: - headers["x-stainless-read-timeout"] = str(timeout) + headers["x-fireworks-read-timeout"] = str(timeout) return headers @@ -808,7 +808,7 @@ def _should_retry(self, response: httpx.Response) -> bool: return False def _idempotency_key(self) -> str: - return f"stainless-python-retry-{uuid.uuid4()}" + return f"fireworks-python-retry-{uuid.uuid4()}" class _DefaultHttpxClient(httpx.Client): @@ -2087,12 +2087,12 @@ def get_platform() -> Platform: @lru_cache(maxsize=None) def platform_headers(version: str, *, platform: Platform | None) -> Dict[str, str]: return { - "X-Stainless-Lang": "python", - "X-Stainless-Package-Version": version, - "X-Stainless-OS": str(platform or get_platform()), - "X-Stainless-Arch": str(get_architecture()), - "X-Stainless-Runtime": get_python_runtime(), - "X-Stainless-Runtime-Version": get_python_version(), + "X-Fireworks-Lang": "python", + "X-Fireworks-Package-Version": version, + "X-Fireworks-OS": str(platform or get_platform()), + "X-Fireworks-Arch": str(get_architecture()), + "X-Fireworks-Runtime": get_python_runtime(), + "X-Fireworks-Runtime-Version": get_python_version(), } diff --git a/src/fireworks/_client.py b/src/fireworks/_client.py index af795b13..b9a89b35 100644 --- a/src/fireworks/_client.py +++ b/src/fireworks/_client.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations import os @@ -321,7 +319,7 @@ def auth_headers(self) -> dict[str, str]: def default_headers(self) -> dict[str, str | Omit]: return { **super().default_headers, - "X-Stainless-Async": "false", + "X-Fireworks-Async": "false", **self._custom_headers, } @@ -642,7 +640,7 @@ def auth_headers(self) -> dict[str, str]: def default_headers(self) -> dict[str, str | Omit]: return { **super().default_headers, - "X-Stainless-Async": f"async:{get_async_library()}", + "X-Fireworks-Async": f"async:{get_async_library()}", **self._custom_headers, } diff --git a/src/fireworks/_constants.py b/src/fireworks/_constants.py index 1a6d56a7..3e6d93a6 100644 --- a/src/fireworks/_constants.py +++ b/src/fireworks/_constants.py @@ -1,9 +1,7 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - import httpx -RAW_RESPONSE_HEADER = "X-Stainless-Raw-Response" -OVERRIDE_CAST_TO_HEADER = "____stainless_override_cast_to" +RAW_RESPONSE_HEADER = "X-Fireworks-Raw-Response" +OVERRIDE_CAST_TO_HEADER = "____fireworks_override_cast_to" # default timeout is 1 minute DEFAULT_TIMEOUT = httpx.Timeout(timeout=60, connect=5.0) diff --git a/src/fireworks/_exceptions.py b/src/fireworks/_exceptions.py index 8e7a3396..960501cd 100644 --- a/src/fireworks/_exceptions.py +++ b/src/fireworks/_exceptions.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Literal diff --git a/src/fireworks/_resource.py b/src/fireworks/_resource.py index 92391a03..42aaf65a 100644 --- a/src/fireworks/_resource.py +++ b/src/fireworks/_resource.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations import time diff --git a/src/fireworks/_utils/_utils.py b/src/fireworks/_utils/_utils.py index 199cd231..c95995de 100644 --- a/src/fireworks/_utils/_utils.py +++ b/src/fireworks/_utils/_utils.py @@ -389,7 +389,7 @@ def get_required_header(headers: HeadersLike, header: str) -> str: if k.lower() == lower_header and isinstance(v, str): return v - # to deal with the case where the header looks like Stainless-Event-Id + # to deal with the case where the header looks like Fireworks-Event-Id intercaps_header = re.sub(r"([^\w])(\w)", lambda pat: pat.group(1) + pat.group(2).upper(), header.capitalize()) for normalized_header in [header, lower_header, header.upper(), intercaps_header]: diff --git a/src/fireworks/_version.py b/src/fireworks/_version.py index 3cc8870e..3dd3c5bd 100644 --- a/src/fireworks/_version.py +++ b/src/fireworks/_version.py @@ -1,4 +1,2 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - __title__ = "fireworks" __version__ = "1.2.0-alpha.72" # x-release-please-version diff --git a/src/fireworks/lib/.keep b/src/fireworks/lib/.keep index 5e2c99fd..94387375 100644 --- a/src/fireworks/lib/.keep +++ b/src/fireworks/lib/.keep @@ -1,4 +1,3 @@ -File generated from our OpenAPI spec by Stainless. +This directory holds hand-maintained code that extends the SDK. -This directory can be used to store custom files to expand the SDK. -It is ignored by Stainless code generation and its content (other than this keep file) won't be touched. \ No newline at end of file +The REST API client code generator does not write into this directory; its contents (other than this keep file) are preserved across regenerations. \ No newline at end of file diff --git a/src/fireworks/lib/_legacy_compat.py b/src/fireworks/lib/_legacy_compat.py index 0b53a643..a9240a14 100644 --- a/src/fireworks/lib/_legacy_compat.py +++ b/src/fireworks/lib/_legacy_compat.py @@ -1,7 +1,7 @@ """Backwards-compatibility shims for the 0.x SDK API surface. The old ``fireworks-ai`` (0.x) SDK exposed ``acreate()`` on async completion -resources. The new Stainless-generated 1.x SDK uses ``create()`` for both sync +resources. The new auto-generated 1.x SDK uses ``create()`` for both sync and async (the async version is a coroutine). Downstream packages like ``langchain-fireworks`` and ``instructor`` call ``acreate()``, so we add it as a deprecated alias. diff --git a/src/fireworks/pagination.py b/src/fireworks/pagination.py index 133288da..26e78e03 100644 --- a/src/fireworks/pagination.py +++ b/src/fireworks/pagination.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import List, Generic, TypeVar, Optional from typing_extensions import override diff --git a/src/fireworks/resources/__init__.py b/src/fireworks/resources/__init__.py index 4a21e540..7ee60a55 100644 --- a/src/fireworks/resources/__init__.py +++ b/src/fireworks/resources/__init__.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from .chat import ( ChatResource, AsyncChatResource, diff --git a/src/fireworks/resources/accounts.py b/src/fireworks/resources/accounts.py index 0a48bb9f..21dc04bf 100644 --- a/src/fireworks/resources/accounts.py +++ b/src/fireworks/resources/accounts.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations import httpx diff --git a/src/fireworks/resources/api_keys.py b/src/fireworks/resources/api_keys.py index 3abc7a8f..9866cccc 100644 --- a/src/fireworks/resources/api_keys.py +++ b/src/fireworks/resources/api_keys.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations import httpx diff --git a/src/fireworks/resources/batch_inference_jobs.py b/src/fireworks/resources/batch_inference_jobs.py index 3d21239d..25b85332 100644 --- a/src/fireworks/resources/batch_inference_jobs.py +++ b/src/fireworks/resources/batch_inference_jobs.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Literal diff --git a/src/fireworks/resources/chat/__init__.py b/src/fireworks/resources/chat/__init__.py index ec960eb4..e4e5fe7c 100644 --- a/src/fireworks/resources/chat/__init__.py +++ b/src/fireworks/resources/chat/__init__.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from .chat import ( ChatResource, AsyncChatResource, diff --git a/src/fireworks/resources/chat/chat.py b/src/fireworks/resources/chat/chat.py index 01c7439d..aba24896 100644 --- a/src/fireworks/resources/chat/chat.py +++ b/src/fireworks/resources/chat/chat.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from ..._compat import cached_property diff --git a/src/fireworks/resources/chat/completions.py b/src/fireworks/resources/chat/completions.py index 2041bcc8..ca13c3ac 100644 --- a/src/fireworks/resources/chat/completions.py +++ b/src/fireworks/resources/chat/completions.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing import Dict, Union, Iterable, Optional diff --git a/src/fireworks/resources/completions.py b/src/fireworks/resources/completions.py index 6d70a759..4195a982 100644 --- a/src/fireworks/resources/completions.py +++ b/src/fireworks/resources/completions.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing import Dict, Union, Iterable, Optional diff --git a/src/fireworks/resources/datasets.py b/src/fireworks/resources/datasets.py index 45a4f71d..16bbda97 100644 --- a/src/fireworks/resources/datasets.py +++ b/src/fireworks/resources/datasets.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing import Dict, Mapping, cast diff --git a/src/fireworks/resources/deployment_shape_versions.py b/src/fireworks/resources/deployment_shape_versions.py index c61bc975..8013effa 100644 --- a/src/fireworks/resources/deployment_shape_versions.py +++ b/src/fireworks/resources/deployment_shape_versions.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations import httpx diff --git a/src/fireworks/resources/deployment_shapes.py b/src/fireworks/resources/deployment_shapes.py index 8bcdbdb1..81336411 100644 --- a/src/fireworks/resources/deployment_shapes.py +++ b/src/fireworks/resources/deployment_shapes.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations import httpx diff --git a/src/fireworks/resources/deployments.py b/src/fireworks/resources/deployments.py index 3941e79e..bb7ca248 100644 --- a/src/fireworks/resources/deployments.py +++ b/src/fireworks/resources/deployments.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing import Union diff --git a/src/fireworks/resources/dpo_jobs.py b/src/fireworks/resources/dpo_jobs.py index 847f58d9..639fe3b8 100644 --- a/src/fireworks/resources/dpo_jobs.py +++ b/src/fireworks/resources/dpo_jobs.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations import httpx diff --git a/src/fireworks/resources/evaluation_jobs.py b/src/fireworks/resources/evaluation_jobs.py index 9bc3a7eb..7fcd9db9 100644 --- a/src/fireworks/resources/evaluation_jobs.py +++ b/src/fireworks/resources/evaluation_jobs.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations import httpx diff --git a/src/fireworks/resources/evaluators.py b/src/fireworks/resources/evaluators.py index 8b42c11d..41c7becc 100644 --- a/src/fireworks/resources/evaluators.py +++ b/src/fireworks/resources/evaluators.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing import Dict, Iterable diff --git a/src/fireworks/resources/lora.py b/src/fireworks/resources/lora.py index 3b19152a..b52957c7 100644 --- a/src/fireworks/resources/lora.py +++ b/src/fireworks/resources/lora.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations import httpx diff --git a/src/fireworks/resources/messages.py b/src/fireworks/resources/messages.py index 99ec6d2b..a312fd43 100644 --- a/src/fireworks/resources/messages.py +++ b/src/fireworks/resources/messages.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing import Union, Iterable, Optional diff --git a/src/fireworks/resources/models.py b/src/fireworks/resources/models.py index 84a7871c..13e31c6a 100644 --- a/src/fireworks/resources/models.py +++ b/src/fireworks/resources/models.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing import Dict diff --git a/src/fireworks/resources/reinforcement_fine_tuning_jobs.py b/src/fireworks/resources/reinforcement_fine_tuning_jobs.py index 1b509dc0..a8fe930a 100644 --- a/src/fireworks/resources/reinforcement_fine_tuning_jobs.py +++ b/src/fireworks/resources/reinforcement_fine_tuning_jobs.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations import httpx diff --git a/src/fireworks/resources/reinforcement_fine_tuning_steps.py b/src/fireworks/resources/reinforcement_fine_tuning_steps.py index 3d768619..67fa9b96 100644 --- a/src/fireworks/resources/reinforcement_fine_tuning_steps.py +++ b/src/fireworks/resources/reinforcement_fine_tuning_steps.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations import httpx diff --git a/src/fireworks/resources/secrets.py b/src/fireworks/resources/secrets.py index edee3ecd..961d37a1 100644 --- a/src/fireworks/resources/secrets.py +++ b/src/fireworks/resources/secrets.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations import httpx diff --git a/src/fireworks/resources/supervised_fine_tuning_jobs.py b/src/fireworks/resources/supervised_fine_tuning_jobs.py index 1a3b5c45..cabf79ef 100644 --- a/src/fireworks/resources/supervised_fine_tuning_jobs.py +++ b/src/fireworks/resources/supervised_fine_tuning_jobs.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Literal diff --git a/src/fireworks/resources/users.py b/src/fireworks/resources/users.py index 1c55dfc5..2775c7fc 100644 --- a/src/fireworks/resources/users.py +++ b/src/fireworks/resources/users.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations import httpx diff --git a/src/fireworks/types/__init__.py b/src/fireworks/types/__init__.py index 5ac03a30..f473253c 100644 --- a/src/fireworks/types/__init__.py +++ b/src/fireworks/types/__init__.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from .user import User as User diff --git a/src/fireworks/types/account.py b/src/fireworks/types/account.py index 5086b5e7..31a98eed 100644 --- a/src/fireworks/types/account.py +++ b/src/fireworks/types/account.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Optional from datetime import datetime from typing_extensions import Literal diff --git a/src/fireworks/types/account_get_params.py b/src/fireworks/types/account_get_params.py index b2741af9..01999227 100644 --- a/src/fireworks/types/account_get_params.py +++ b/src/fireworks/types/account_get_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/account_list_params.py b/src/fireworks/types/account_list_params.py index 7753efc5..ce788432 100644 --- a/src/fireworks/types/account_list_params.py +++ b/src/fireworks/types/account_list_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/api_key.py b/src/fireworks/types/api_key.py index cb88a263..81d0a04f 100644 --- a/src/fireworks/types/api_key.py +++ b/src/fireworks/types/api_key.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Optional from datetime import datetime diff --git a/src/fireworks/types/api_key_create_params.py b/src/fireworks/types/api_key_create_params.py index 232a03ff..a8422ec2 100644 --- a/src/fireworks/types/api_key_create_params.py +++ b/src/fireworks/types/api_key_create_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Required, Annotated, TypedDict diff --git a/src/fireworks/types/api_key_delete_params.py b/src/fireworks/types/api_key_delete_params.py index 3959e011..cb78b8d4 100644 --- a/src/fireworks/types/api_key_delete_params.py +++ b/src/fireworks/types/api_key_delete_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Required, Annotated, TypedDict diff --git a/src/fireworks/types/api_key_list_params.py b/src/fireworks/types/api_key_list_params.py index e4347cf0..e7368347 100644 --- a/src/fireworks/types/api_key_list_params.py +++ b/src/fireworks/types/api_key_list_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/api_key_param.py b/src/fireworks/types/api_key_param.py index e21f100a..2471b903 100644 --- a/src/fireworks/types/api_key_param.py +++ b/src/fireworks/types/api_key_param.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing import Union diff --git a/src/fireworks/types/auto_tune.py b/src/fireworks/types/auto_tune.py index adb2f71b..2c8c4408 100644 --- a/src/fireworks/types/auto_tune.py +++ b/src/fireworks/types/auto_tune.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Optional from pydantic import Field as FieldInfo diff --git a/src/fireworks/types/auto_tune_param.py b/src/fireworks/types/auto_tune_param.py index 83426f9c..70bbf9ac 100644 --- a/src/fireworks/types/auto_tune_param.py +++ b/src/fireworks/types/auto_tune_param.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/autoscaling_policy.py b/src/fireworks/types/autoscaling_policy.py index 8721ed44..4a7280a6 100644 --- a/src/fireworks/types/autoscaling_policy.py +++ b/src/fireworks/types/autoscaling_policy.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Dict, Optional from pydantic import Field as FieldInfo diff --git a/src/fireworks/types/autoscaling_policy_param.py b/src/fireworks/types/autoscaling_policy_param.py index 033d3a6f..7a68dd54 100644 --- a/src/fireworks/types/autoscaling_policy_param.py +++ b/src/fireworks/types/autoscaling_policy_param.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing import Dict diff --git a/src/fireworks/types/base_model_details.py b/src/fireworks/types/base_model_details.py index 73676d98..7f8becf5 100644 --- a/src/fireworks/types/base_model_details.py +++ b/src/fireworks/types/base_model_details.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Optional from typing_extensions import Literal diff --git a/src/fireworks/types/base_model_details_param.py b/src/fireworks/types/base_model_details_param.py index 029c519a..e3805bd4 100644 --- a/src/fireworks/types/base_model_details_param.py +++ b/src/fireworks/types/base_model_details_param.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Literal, Annotated, TypedDict diff --git a/src/fireworks/types/batch_inference_job.py b/src/fireworks/types/batch_inference_job.py index f9e88634..3579d695 100644 --- a/src/fireworks/types/batch_inference_job.py +++ b/src/fireworks/types/batch_inference_job.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Optional from datetime import datetime from typing_extensions import Literal diff --git a/src/fireworks/types/batch_inference_job_create_params.py b/src/fireworks/types/batch_inference_job_create_params.py index 65e239dd..bc9d8279 100644 --- a/src/fireworks/types/batch_inference_job_create_params.py +++ b/src/fireworks/types/batch_inference_job_create_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Literal, Annotated, TypedDict diff --git a/src/fireworks/types/batch_inference_job_get_params.py b/src/fireworks/types/batch_inference_job_get_params.py index 8b29cd63..e7a1c5a1 100644 --- a/src/fireworks/types/batch_inference_job_get_params.py +++ b/src/fireworks/types/batch_inference_job_get_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/batch_inference_job_list_params.py b/src/fireworks/types/batch_inference_job_list_params.py index fb6d2010..ca20d9c2 100644 --- a/src/fireworks/types/batch_inference_job_list_params.py +++ b/src/fireworks/types/batch_inference_job_list_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/cache_control_ephemeral_param.py b/src/fireworks/types/cache_control_ephemeral_param.py index 0bdbe03c..ae6a6eeb 100644 --- a/src/fireworks/types/cache_control_ephemeral_param.py +++ b/src/fireworks/types/cache_control_ephemeral_param.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Literal, Required, TypedDict diff --git a/src/fireworks/types/chat/__init__.py b/src/fireworks/types/chat/__init__.py index f0243162..51f4a4b7 100644 --- a/src/fireworks/types/chat/__init__.py +++ b/src/fireworks/types/chat/__init__.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from .chat_completion_chunk import ChatCompletionChunk as ChatCompletionChunk diff --git a/src/fireworks/types/chat/chat_completion_chunk.py b/src/fireworks/types/chat/chat_completion_chunk.py index ef573472..259c8ed5 100644 --- a/src/fireworks/types/chat/chat_completion_chunk.py +++ b/src/fireworks/types/chat/chat_completion_chunk.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - import builtins from typing import Dict, List, Union, Optional from typing_extensions import Literal, TypeAlias diff --git a/src/fireworks/types/chat/completion_create_params.py b/src/fireworks/types/chat/completion_create_params.py index 2f49a9b4..ae397600 100644 --- a/src/fireworks/types/chat/completion_create_params.py +++ b/src/fireworks/types/chat/completion_create_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing import Dict, Union, Iterable, Optional diff --git a/src/fireworks/types/chat/completion_create_response.py b/src/fireworks/types/chat/completion_create_response.py index 1e07d19a..9c770b94 100644 --- a/src/fireworks/types/chat/completion_create_response.py +++ b/src/fireworks/types/chat/completion_create_response.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - import builtins from typing import Dict, List, Union, Optional from typing_extensions import TypeAlias diff --git a/src/fireworks/types/completion_chunk.py b/src/fireworks/types/completion_chunk.py index 99cb5aa6..74859f6b 100644 --- a/src/fireworks/types/completion_chunk.py +++ b/src/fireworks/types/completion_chunk.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - import builtins from typing import Dict, List, Union, Optional from typing_extensions import Literal, TypeAlias diff --git a/src/fireworks/types/completion_create_params.py b/src/fireworks/types/completion_create_params.py index 0838fa61..f54614ee 100644 --- a/src/fireworks/types/completion_create_params.py +++ b/src/fireworks/types/completion_create_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing import Dict, Union, Iterable, Optional diff --git a/src/fireworks/types/completion_create_response.py b/src/fireworks/types/completion_create_response.py index 5806a988..5c9c9749 100644 --- a/src/fireworks/types/completion_create_response.py +++ b/src/fireworks/types/completion_create_response.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - import builtins from typing import Dict, List, Optional diff --git a/src/fireworks/types/content_block.py b/src/fireworks/types/content_block.py index 97f7eea7..60d63127 100644 --- a/src/fireworks/types/content_block.py +++ b/src/fireworks/types/content_block.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Union from typing_extensions import Annotated, TypeAlias diff --git a/src/fireworks/types/conversation_config.py b/src/fireworks/types/conversation_config.py index dff6bd55..42f4771a 100644 --- a/src/fireworks/types/conversation_config.py +++ b/src/fireworks/types/conversation_config.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Optional from .._models import BaseModel diff --git a/src/fireworks/types/conversation_config_param.py b/src/fireworks/types/conversation_config_param.py index 5b58a1cc..25c21698 100644 --- a/src/fireworks/types/conversation_config_param.py +++ b/src/fireworks/types/conversation_config_param.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Required, TypedDict diff --git a/src/fireworks/types/dataset.py b/src/fireworks/types/dataset.py index de8e9e76..2be0465e 100644 --- a/src/fireworks/types/dataset.py +++ b/src/fireworks/types/dataset.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Optional from datetime import datetime from typing_extensions import Literal diff --git a/src/fireworks/types/dataset_create_params.py b/src/fireworks/types/dataset_create_params.py index b399c539..4d9717cb 100644 --- a/src/fireworks/types/dataset_create_params.py +++ b/src/fireworks/types/dataset_create_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Required, Annotated, TypedDict diff --git a/src/fireworks/types/dataset_get_download_endpoint_params.py b/src/fireworks/types/dataset_get_download_endpoint_params.py index 109969a6..aa2f3bca 100644 --- a/src/fireworks/types/dataset_get_download_endpoint_params.py +++ b/src/fireworks/types/dataset_get_download_endpoint_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/dataset_get_download_endpoint_response.py b/src/fireworks/types/dataset_get_download_endpoint_response.py index ebace4a4..8499fc3e 100644 --- a/src/fireworks/types/dataset_get_download_endpoint_response.py +++ b/src/fireworks/types/dataset_get_download_endpoint_response.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Dict, Optional from pydantic import Field as FieldInfo diff --git a/src/fireworks/types/dataset_get_params.py b/src/fireworks/types/dataset_get_params.py index a0ceb66f..4d86b11f 100644 --- a/src/fireworks/types/dataset_get_params.py +++ b/src/fireworks/types/dataset_get_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/dataset_get_upload_endpoint_params.py b/src/fireworks/types/dataset_get_upload_endpoint_params.py index 555afa22..934b6aaa 100644 --- a/src/fireworks/types/dataset_get_upload_endpoint_params.py +++ b/src/fireworks/types/dataset_get_upload_endpoint_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing import Dict diff --git a/src/fireworks/types/dataset_get_upload_endpoint_response.py b/src/fireworks/types/dataset_get_upload_endpoint_response.py index ac3f98eb..8b613a0f 100644 --- a/src/fireworks/types/dataset_get_upload_endpoint_response.py +++ b/src/fireworks/types/dataset_get_upload_endpoint_response.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Dict, Optional from pydantic import Field as FieldInfo diff --git a/src/fireworks/types/dataset_list_params.py b/src/fireworks/types/dataset_list_params.py index acf4aa90..c0a70a9f 100644 --- a/src/fireworks/types/dataset_list_params.py +++ b/src/fireworks/types/dataset_list_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/dataset_param.py b/src/fireworks/types/dataset_param.py index e0682d67..89475b0b 100644 --- a/src/fireworks/types/dataset_param.py +++ b/src/fireworks/types/dataset_param.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Literal, Annotated, TypedDict diff --git a/src/fireworks/types/dataset_update_params.py b/src/fireworks/types/dataset_update_params.py index aec75977..529f263d 100644 --- a/src/fireworks/types/dataset_update_params.py +++ b/src/fireworks/types/dataset_update_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Literal, Annotated, TypedDict diff --git a/src/fireworks/types/dataset_upload_params.py b/src/fireworks/types/dataset_upload_params.py index f03b632e..56d1e3a7 100644 --- a/src/fireworks/types/dataset_upload_params.py +++ b/src/fireworks/types/dataset_upload_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import TypedDict diff --git a/src/fireworks/types/dataset_upload_response.py b/src/fireworks/types/dataset_upload_response.py index 2a9f127e..9bcfb238 100644 --- a/src/fireworks/types/dataset_upload_response.py +++ b/src/fireworks/types/dataset_upload_response.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Optional from .._models import BaseModel diff --git a/src/fireworks/types/dataset_validate_upload_params.py b/src/fireworks/types/dataset_validate_upload_params.py index 1b974f5e..589beb1c 100644 --- a/src/fireworks/types/dataset_validate_upload_params.py +++ b/src/fireworks/types/dataset_validate_upload_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Required, TypedDict diff --git a/src/fireworks/types/deployment.py b/src/fireworks/types/deployment.py index 8cd7942d..439e0352 100644 --- a/src/fireworks/types/deployment.py +++ b/src/fireworks/types/deployment.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import List, Optional from datetime import datetime from typing_extensions import Literal diff --git a/src/fireworks/types/deployment_create_params.py b/src/fireworks/types/deployment_create_params.py index 1a5a642f..7b54ff9f 100644 --- a/src/fireworks/types/deployment_create_params.py +++ b/src/fireworks/types/deployment_create_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing import Union diff --git a/src/fireworks/types/deployment_delete_params.py b/src/fireworks/types/deployment_delete_params.py index 748ecf59..e3156452 100644 --- a/src/fireworks/types/deployment_delete_params.py +++ b/src/fireworks/types/deployment_delete_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/deployment_get_params.py b/src/fireworks/types/deployment_get_params.py index b6668848..d7462d3f 100644 --- a/src/fireworks/types/deployment_get_params.py +++ b/src/fireworks/types/deployment_get_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/deployment_list_params.py b/src/fireworks/types/deployment_list_params.py index 408becf6..7af1837c 100644 --- a/src/fireworks/types/deployment_list_params.py +++ b/src/fireworks/types/deployment_list_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/deployment_scale_params.py b/src/fireworks/types/deployment_scale_params.py index e380f5ec..f57d0de0 100644 --- a/src/fireworks/types/deployment_scale_params.py +++ b/src/fireworks/types/deployment_scale_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/deployment_shape.py b/src/fireworks/types/deployment_shape.py index e1d04a57..6249bdea 100644 --- a/src/fireworks/types/deployment_shape.py +++ b/src/fireworks/types/deployment_shape.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Optional from datetime import datetime from typing_extensions import Literal diff --git a/src/fireworks/types/deployment_shape_get_params.py b/src/fireworks/types/deployment_shape_get_params.py index b55e57ac..e7d76d4c 100644 --- a/src/fireworks/types/deployment_shape_get_params.py +++ b/src/fireworks/types/deployment_shape_get_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/deployment_shape_list_params.py b/src/fireworks/types/deployment_shape_list_params.py index f9721878..5b0ffb61 100644 --- a/src/fireworks/types/deployment_shape_list_params.py +++ b/src/fireworks/types/deployment_shape_list_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/deployment_shape_version.py b/src/fireworks/types/deployment_shape_version.py index ec190077..e73c8be3 100644 --- a/src/fireworks/types/deployment_shape_version.py +++ b/src/fireworks/types/deployment_shape_version.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Optional from datetime import datetime diff --git a/src/fireworks/types/deployment_shape_version_get_params.py b/src/fireworks/types/deployment_shape_version_get_params.py index c08bbd9b..7c9b9734 100644 --- a/src/fireworks/types/deployment_shape_version_get_params.py +++ b/src/fireworks/types/deployment_shape_version_get_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Required, Annotated, TypedDict diff --git a/src/fireworks/types/deployment_shape_version_list_params.py b/src/fireworks/types/deployment_shape_version_list_params.py index 984c07a3..f02ac544 100644 --- a/src/fireworks/types/deployment_shape_version_list_params.py +++ b/src/fireworks/types/deployment_shape_version_list_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/deployment_undelete_params.py b/src/fireworks/types/deployment_undelete_params.py index 707bce86..4f99999b 100644 --- a/src/fireworks/types/deployment_undelete_params.py +++ b/src/fireworks/types/deployment_undelete_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Required, TypedDict diff --git a/src/fireworks/types/deployment_update_params.py b/src/fireworks/types/deployment_update_params.py index 9481acbc..d6ba3698 100644 --- a/src/fireworks/types/deployment_update_params.py +++ b/src/fireworks/types/deployment_update_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing import Union diff --git a/src/fireworks/types/dpo_job.py b/src/fireworks/types/dpo_job.py index b891a334..c5f50457 100644 --- a/src/fireworks/types/dpo_job.py +++ b/src/fireworks/types/dpo_job.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Optional from datetime import datetime from typing_extensions import Literal diff --git a/src/fireworks/types/dpo_job_create_params.py b/src/fireworks/types/dpo_job_create_params.py index 59ec6290..6deeccc4 100644 --- a/src/fireworks/types/dpo_job_create_params.py +++ b/src/fireworks/types/dpo_job_create_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Required, Annotated, TypedDict diff --git a/src/fireworks/types/dpo_job_get_metrics_file_endpoint_response.py b/src/fireworks/types/dpo_job_get_metrics_file_endpoint_response.py index 0d11e4f1..31158028 100644 --- a/src/fireworks/types/dpo_job_get_metrics_file_endpoint_response.py +++ b/src/fireworks/types/dpo_job_get_metrics_file_endpoint_response.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Optional from pydantic import Field as FieldInfo diff --git a/src/fireworks/types/dpo_job_get_params.py b/src/fireworks/types/dpo_job_get_params.py index 79c5f4f0..fe8dcd21 100644 --- a/src/fireworks/types/dpo_job_get_params.py +++ b/src/fireworks/types/dpo_job_get_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/dpo_job_list_params.py b/src/fireworks/types/dpo_job_list_params.py index 30abadf8..1ed44ded 100644 --- a/src/fireworks/types/dpo_job_list_params.py +++ b/src/fireworks/types/dpo_job_list_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/dpo_job_resume_params.py b/src/fireworks/types/dpo_job_resume_params.py index 6094f720..bc160e88 100644 --- a/src/fireworks/types/dpo_job_resume_params.py +++ b/src/fireworks/types/dpo_job_resume_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Required, TypedDict diff --git a/src/fireworks/types/evaluation_job_create_params.py b/src/fireworks/types/evaluation_job_create_params.py index 351a0f03..476acabb 100644 --- a/src/fireworks/types/evaluation_job_create_params.py +++ b/src/fireworks/types/evaluation_job_create_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Required, Annotated, TypedDict diff --git a/src/fireworks/types/evaluation_job_create_response.py b/src/fireworks/types/evaluation_job_create_response.py index 66b767a2..b654e214 100644 --- a/src/fireworks/types/evaluation_job_create_response.py +++ b/src/fireworks/types/evaluation_job_create_response.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Dict, Optional from datetime import datetime from typing_extensions import Literal diff --git a/src/fireworks/types/evaluation_job_get_log_endpoint_response.py b/src/fireworks/types/evaluation_job_get_log_endpoint_response.py index 27ffa450..f4f7eef8 100644 --- a/src/fireworks/types/evaluation_job_get_log_endpoint_response.py +++ b/src/fireworks/types/evaluation_job_get_log_endpoint_response.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Optional from datetime import datetime diff --git a/src/fireworks/types/evaluation_job_get_params.py b/src/fireworks/types/evaluation_job_get_params.py index 07214fc2..e645019d 100644 --- a/src/fireworks/types/evaluation_job_get_params.py +++ b/src/fireworks/types/evaluation_job_get_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/evaluation_job_get_response.py b/src/fireworks/types/evaluation_job_get_response.py index 939bb8db..70cc3bc8 100644 --- a/src/fireworks/types/evaluation_job_get_response.py +++ b/src/fireworks/types/evaluation_job_get_response.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Dict, Optional from datetime import datetime from typing_extensions import Literal diff --git a/src/fireworks/types/evaluation_job_list_params.py b/src/fireworks/types/evaluation_job_list_params.py index 0abb5d91..3debf18e 100644 --- a/src/fireworks/types/evaluation_job_list_params.py +++ b/src/fireworks/types/evaluation_job_list_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/evaluation_job_list_response.py b/src/fireworks/types/evaluation_job_list_response.py index 3cb91ec3..98204ed6 100644 --- a/src/fireworks/types/evaluation_job_list_response.py +++ b/src/fireworks/types/evaluation_job_list_response.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Dict, Optional from datetime import datetime from typing_extensions import Literal diff --git a/src/fireworks/types/evaluation_result.py b/src/fireworks/types/evaluation_result.py index f31b8d7a..9f727ac8 100644 --- a/src/fireworks/types/evaluation_result.py +++ b/src/fireworks/types/evaluation_result.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from pydantic import Field as FieldInfo from .._models import BaseModel diff --git a/src/fireworks/types/evaluation_result_param.py b/src/fireworks/types/evaluation_result_param.py index 0ca1d284..c84be7c2 100644 --- a/src/fireworks/types/evaluation_result_param.py +++ b/src/fireworks/types/evaluation_result_param.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Required, Annotated, TypedDict diff --git a/src/fireworks/types/evaluator_create_params.py b/src/fireworks/types/evaluator_create_params.py index 8d21e93f..dfdf95f9 100644 --- a/src/fireworks/types/evaluator_create_params.py +++ b/src/fireworks/types/evaluator_create_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing import Dict, Iterable diff --git a/src/fireworks/types/evaluator_create_response.py b/src/fireworks/types/evaluator_create_response.py index d13afdab..7bf5d7b1 100644 --- a/src/fireworks/types/evaluator_create_response.py +++ b/src/fireworks/types/evaluator_create_response.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Dict, List, Optional from datetime import datetime from typing_extensions import Literal diff --git a/src/fireworks/types/evaluator_get_build_log_endpoint_params.py b/src/fireworks/types/evaluator_get_build_log_endpoint_params.py index ccf2e8a4..78413cde 100644 --- a/src/fireworks/types/evaluator_get_build_log_endpoint_params.py +++ b/src/fireworks/types/evaluator_get_build_log_endpoint_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/evaluator_get_build_log_endpoint_response.py b/src/fireworks/types/evaluator_get_build_log_endpoint_response.py index 35258006..2906cee1 100644 --- a/src/fireworks/types/evaluator_get_build_log_endpoint_response.py +++ b/src/fireworks/types/evaluator_get_build_log_endpoint_response.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Optional from pydantic import Field as FieldInfo diff --git a/src/fireworks/types/evaluator_get_params.py b/src/fireworks/types/evaluator_get_params.py index 4d02fa79..4848a7fc 100644 --- a/src/fireworks/types/evaluator_get_params.py +++ b/src/fireworks/types/evaluator_get_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/evaluator_get_response.py b/src/fireworks/types/evaluator_get_response.py index 72b09202..cd5c3b69 100644 --- a/src/fireworks/types/evaluator_get_response.py +++ b/src/fireworks/types/evaluator_get_response.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Dict, List, Optional from datetime import datetime from typing_extensions import Literal diff --git a/src/fireworks/types/evaluator_get_source_code_endpoint_params.py b/src/fireworks/types/evaluator_get_source_code_endpoint_params.py index c8b45851..abc4905e 100644 --- a/src/fireworks/types/evaluator_get_source_code_endpoint_params.py +++ b/src/fireworks/types/evaluator_get_source_code_endpoint_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/evaluator_get_source_code_endpoint_response.py b/src/fireworks/types/evaluator_get_source_code_endpoint_response.py index 30d1b0be..970099b1 100644 --- a/src/fireworks/types/evaluator_get_source_code_endpoint_response.py +++ b/src/fireworks/types/evaluator_get_source_code_endpoint_response.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Dict, Optional from pydantic import Field as FieldInfo diff --git a/src/fireworks/types/evaluator_get_upload_endpoint_params.py b/src/fireworks/types/evaluator_get_upload_endpoint_params.py index f717869c..95887b47 100644 --- a/src/fireworks/types/evaluator_get_upload_endpoint_params.py +++ b/src/fireworks/types/evaluator_get_upload_endpoint_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing import Dict diff --git a/src/fireworks/types/evaluator_get_upload_endpoint_response.py b/src/fireworks/types/evaluator_get_upload_endpoint_response.py index 38e9e372..6eb10544 100644 --- a/src/fireworks/types/evaluator_get_upload_endpoint_response.py +++ b/src/fireworks/types/evaluator_get_upload_endpoint_response.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Dict, Optional from pydantic import Field as FieldInfo diff --git a/src/fireworks/types/evaluator_list_params.py b/src/fireworks/types/evaluator_list_params.py index 5b2b2432..fa00bcb7 100644 --- a/src/fireworks/types/evaluator_list_params.py +++ b/src/fireworks/types/evaluator_list_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/evaluator_list_response.py b/src/fireworks/types/evaluator_list_response.py index fea8c359..0da30455 100644 --- a/src/fireworks/types/evaluator_list_response.py +++ b/src/fireworks/types/evaluator_list_response.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Dict, List, Optional from datetime import datetime from typing_extensions import Literal diff --git a/src/fireworks/types/evaluator_source.py b/src/fireworks/types/evaluator_source.py index 0d018b03..38654c80 100644 --- a/src/fireworks/types/evaluator_source.py +++ b/src/fireworks/types/evaluator_source.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Optional from typing_extensions import Literal diff --git a/src/fireworks/types/evaluator_source_param.py b/src/fireworks/types/evaluator_source_param.py index c7edf403..c2ac56d0 100644 --- a/src/fireworks/types/evaluator_source_param.py +++ b/src/fireworks/types/evaluator_source_param.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Literal, Annotated, TypedDict diff --git a/src/fireworks/types/evaluator_update_params.py b/src/fireworks/types/evaluator_update_params.py index ce2990a9..3d93e48e 100644 --- a/src/fireworks/types/evaluator_update_params.py +++ b/src/fireworks/types/evaluator_update_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing import Dict, Iterable diff --git a/src/fireworks/types/evaluator_update_response.py b/src/fireworks/types/evaluator_update_response.py index 9030ca1d..e9bfa777 100644 --- a/src/fireworks/types/evaluator_update_response.py +++ b/src/fireworks/types/evaluator_update_response.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Dict, List, Optional from datetime import datetime from typing_extensions import Literal diff --git a/src/fireworks/types/evaluator_validate_upload_params.py b/src/fireworks/types/evaluator_validate_upload_params.py index 101366f5..829a72eb 100644 --- a/src/fireworks/types/evaluator_validate_upload_params.py +++ b/src/fireworks/types/evaluator_validate_upload_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Required, TypedDict diff --git a/src/fireworks/types/lora_get_params.py b/src/fireworks/types/lora_get_params.py index 3f1a4e87..7b5200cd 100644 --- a/src/fireworks/types/lora_get_params.py +++ b/src/fireworks/types/lora_get_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/lora_list_params.py b/src/fireworks/types/lora_list_params.py index f6d649f9..a1049376 100644 --- a/src/fireworks/types/lora_list_params.py +++ b/src/fireworks/types/lora_list_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/lora_load_params.py b/src/fireworks/types/lora_load_params.py index 60df5771..0a6ca89e 100644 --- a/src/fireworks/types/lora_load_params.py +++ b/src/fireworks/types/lora_load_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/lora_update_params.py b/src/fireworks/types/lora_update_params.py index 150b4c03..de3b0dc1 100644 --- a/src/fireworks/types/lora_update_params.py +++ b/src/fireworks/types/lora_update_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/message_create_params.py b/src/fireworks/types/message_create_params.py index 9254d2be..d9e1dbc0 100644 --- a/src/fireworks/types/message_create_params.py +++ b/src/fireworks/types/message_create_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing import Dict, Union, Iterable, Optional diff --git a/src/fireworks/types/message_create_response.py b/src/fireworks/types/message_create_response.py index 20a24ebe..9acf45af 100644 --- a/src/fireworks/types/message_create_response.py +++ b/src/fireworks/types/message_create_response.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import List, Union, Optional from typing_extensions import Literal diff --git a/src/fireworks/types/model.py b/src/fireworks/types/model.py index c6bea3f6..865911e2 100644 --- a/src/fireworks/types/model.py +++ b/src/fireworks/types/model.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Dict, List, Optional from datetime import datetime from typing_extensions import Literal diff --git a/src/fireworks/types/model_create_params.py b/src/fireworks/types/model_create_params.py index adecc81c..a97ebd8d 100644 --- a/src/fireworks/types/model_create_params.py +++ b/src/fireworks/types/model_create_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Required, Annotated, TypedDict diff --git a/src/fireworks/types/model_get_download_endpoint_params.py b/src/fireworks/types/model_get_download_endpoint_params.py index 4f9967c8..187f66c8 100644 --- a/src/fireworks/types/model_get_download_endpoint_params.py +++ b/src/fireworks/types/model_get_download_endpoint_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/model_get_download_endpoint_response.py b/src/fireworks/types/model_get_download_endpoint_response.py index 67ed9530..af1dc825 100644 --- a/src/fireworks/types/model_get_download_endpoint_response.py +++ b/src/fireworks/types/model_get_download_endpoint_response.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Dict, Optional from pydantic import Field as FieldInfo diff --git a/src/fireworks/types/model_get_params.py b/src/fireworks/types/model_get_params.py index 96ad3c88..56b48e64 100644 --- a/src/fireworks/types/model_get_params.py +++ b/src/fireworks/types/model_get_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/model_get_upload_endpoint_params.py b/src/fireworks/types/model_get_upload_endpoint_params.py index 8ff57783..5a4d4ae9 100644 --- a/src/fireworks/types/model_get_upload_endpoint_params.py +++ b/src/fireworks/types/model_get_upload_endpoint_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing import Dict diff --git a/src/fireworks/types/model_get_upload_endpoint_response.py b/src/fireworks/types/model_get_upload_endpoint_response.py index e273fbc4..8765521c 100644 --- a/src/fireworks/types/model_get_upload_endpoint_response.py +++ b/src/fireworks/types/model_get_upload_endpoint_response.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Dict, Optional from pydantic import Field as FieldInfo diff --git a/src/fireworks/types/model_list_params.py b/src/fireworks/types/model_list_params.py index ff1ef1f3..88f009b2 100644 --- a/src/fireworks/types/model_list_params.py +++ b/src/fireworks/types/model_list_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/model_param.py b/src/fireworks/types/model_param.py index f5d47878..5d4f5cc3 100644 --- a/src/fireworks/types/model_param.py +++ b/src/fireworks/types/model_param.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Literal, Annotated, TypedDict diff --git a/src/fireworks/types/model_prepare_params.py b/src/fireworks/types/model_prepare_params.py index 4e0bd190..97c38ced 100644 --- a/src/fireworks/types/model_prepare_params.py +++ b/src/fireworks/types/model_prepare_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Literal, Annotated, TypedDict diff --git a/src/fireworks/types/model_update_params.py b/src/fireworks/types/model_update_params.py index 8235681a..3c35636c 100644 --- a/src/fireworks/types/model_update_params.py +++ b/src/fireworks/types/model_update_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Literal, Annotated, TypedDict diff --git a/src/fireworks/types/model_validate_upload_params.py b/src/fireworks/types/model_validate_upload_params.py index 46e27929..f5b5cda6 100644 --- a/src/fireworks/types/model_validate_upload_params.py +++ b/src/fireworks/types/model_validate_upload_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/model_validate_upload_response.py b/src/fireworks/types/model_validate_upload_response.py index 75d6f543..7b3da9c9 100644 --- a/src/fireworks/types/model_validate_upload_response.py +++ b/src/fireworks/types/model_validate_upload_response.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import List, Optional from .._models import BaseModel diff --git a/src/fireworks/types/peft_details.py b/src/fireworks/types/peft_details.py index 33b8bb40..450104e5 100644 --- a/src/fireworks/types/peft_details.py +++ b/src/fireworks/types/peft_details.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import List, Optional from pydantic import Field as FieldInfo diff --git a/src/fireworks/types/peft_details_param.py b/src/fireworks/types/peft_details_param.py index 86691b9a..7d46fe11 100644 --- a/src/fireworks/types/peft_details_param.py +++ b/src/fireworks/types/peft_details_param.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Required, Annotated, TypedDict diff --git a/src/fireworks/types/placement.py b/src/fireworks/types/placement.py index 93c4a33b..0c0c7a41 100644 --- a/src/fireworks/types/placement.py +++ b/src/fireworks/types/placement.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import List, Optional from typing_extensions import Literal diff --git a/src/fireworks/types/placement_param.py b/src/fireworks/types/placement_param.py index e460127f..3a724a4d 100644 --- a/src/fireworks/types/placement_param.py +++ b/src/fireworks/types/placement_param.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing import List diff --git a/src/fireworks/types/reinforcement_fine_tuning_job.py b/src/fireworks/types/reinforcement_fine_tuning_job.py index 2ec2bc1e..06e8d7d7 100644 --- a/src/fireworks/types/reinforcement_fine_tuning_job.py +++ b/src/fireworks/types/reinforcement_fine_tuning_job.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Dict, Optional from datetime import datetime from typing_extensions import Literal diff --git a/src/fireworks/types/reinforcement_fine_tuning_job_cancel_params.py b/src/fireworks/types/reinforcement_fine_tuning_job_cancel_params.py index 28642c1f..5e6f9c0b 100644 --- a/src/fireworks/types/reinforcement_fine_tuning_job_cancel_params.py +++ b/src/fireworks/types/reinforcement_fine_tuning_job_cancel_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Required, TypedDict diff --git a/src/fireworks/types/reinforcement_fine_tuning_job_create_params.py b/src/fireworks/types/reinforcement_fine_tuning_job_create_params.py index 57ba0eab..b9d73238 100644 --- a/src/fireworks/types/reinforcement_fine_tuning_job_create_params.py +++ b/src/fireworks/types/reinforcement_fine_tuning_job_create_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Required, Annotated, TypedDict diff --git a/src/fireworks/types/reinforcement_fine_tuning_job_get_params.py b/src/fireworks/types/reinforcement_fine_tuning_job_get_params.py index 8dea1e05..869615f3 100644 --- a/src/fireworks/types/reinforcement_fine_tuning_job_get_params.py +++ b/src/fireworks/types/reinforcement_fine_tuning_job_get_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/reinforcement_fine_tuning_job_list_params.py b/src/fireworks/types/reinforcement_fine_tuning_job_list_params.py index d4ca4d9e..c90f855f 100644 --- a/src/fireworks/types/reinforcement_fine_tuning_job_list_params.py +++ b/src/fireworks/types/reinforcement_fine_tuning_job_list_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/reinforcement_fine_tuning_job_resume_params.py b/src/fireworks/types/reinforcement_fine_tuning_job_resume_params.py index 9f99b834..7737d2a1 100644 --- a/src/fireworks/types/reinforcement_fine_tuning_job_resume_params.py +++ b/src/fireworks/types/reinforcement_fine_tuning_job_resume_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Required, TypedDict diff --git a/src/fireworks/types/reinforcement_fine_tuning_step.py b/src/fireworks/types/reinforcement_fine_tuning_step.py index 07be5052..13806b1f 100644 --- a/src/fireworks/types/reinforcement_fine_tuning_step.py +++ b/src/fireworks/types/reinforcement_fine_tuning_step.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Dict, List, Optional from datetime import datetime from typing_extensions import Literal diff --git a/src/fireworks/types/reinforcement_fine_tuning_step_create_params.py b/src/fireworks/types/reinforcement_fine_tuning_step_create_params.py index fca36328..63fa74fc 100644 --- a/src/fireworks/types/reinforcement_fine_tuning_step_create_params.py +++ b/src/fireworks/types/reinforcement_fine_tuning_step_create_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/reinforcement_fine_tuning_step_execute_params.py b/src/fireworks/types/reinforcement_fine_tuning_step_execute_params.py index 1b2c4e50..43ab1b0f 100644 --- a/src/fireworks/types/reinforcement_fine_tuning_step_execute_params.py +++ b/src/fireworks/types/reinforcement_fine_tuning_step_execute_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Required, Annotated, TypedDict diff --git a/src/fireworks/types/reinforcement_fine_tuning_step_get_params.py b/src/fireworks/types/reinforcement_fine_tuning_step_get_params.py index faf8bf43..81a81497 100644 --- a/src/fireworks/types/reinforcement_fine_tuning_step_get_params.py +++ b/src/fireworks/types/reinforcement_fine_tuning_step_get_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/reinforcement_fine_tuning_step_list_params.py b/src/fireworks/types/reinforcement_fine_tuning_step_list_params.py index 0be50603..ac765032 100644 --- a/src/fireworks/types/reinforcement_fine_tuning_step_list_params.py +++ b/src/fireworks/types/reinforcement_fine_tuning_step_list_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/reinforcement_fine_tuning_step_resume_params.py b/src/fireworks/types/reinforcement_fine_tuning_step_resume_params.py index 14723a2f..40897d87 100644 --- a/src/fireworks/types/reinforcement_fine_tuning_step_resume_params.py +++ b/src/fireworks/types/reinforcement_fine_tuning_step_resume_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Required, TypedDict diff --git a/src/fireworks/types/request_char_location_citation_param.py b/src/fireworks/types/request_char_location_citation_param.py index b7216a89..1fd9ce92 100644 --- a/src/fireworks/types/request_char_location_citation_param.py +++ b/src/fireworks/types/request_char_location_citation_param.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing import Optional diff --git a/src/fireworks/types/request_content_block_location_citation_param.py b/src/fireworks/types/request_content_block_location_citation_param.py index fa1df15a..97b6c4ad 100644 --- a/src/fireworks/types/request_content_block_location_citation_param.py +++ b/src/fireworks/types/request_content_block_location_citation_param.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing import Optional diff --git a/src/fireworks/types/request_image_block_param.py b/src/fireworks/types/request_image_block_param.py index fa952bed..b6835558 100644 --- a/src/fireworks/types/request_image_block_param.py +++ b/src/fireworks/types/request_image_block_param.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing import Union, Optional diff --git a/src/fireworks/types/request_page_location_citation_param.py b/src/fireworks/types/request_page_location_citation_param.py index 7ac20230..512c3899 100644 --- a/src/fireworks/types/request_page_location_citation_param.py +++ b/src/fireworks/types/request_page_location_citation_param.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing import Optional diff --git a/src/fireworks/types/request_search_result_location_citation_param.py b/src/fireworks/types/request_search_result_location_citation_param.py index 2fd900c7..9918a0f9 100644 --- a/src/fireworks/types/request_search_result_location_citation_param.py +++ b/src/fireworks/types/request_search_result_location_citation_param.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing import Optional diff --git a/src/fireworks/types/request_text_block_param.py b/src/fireworks/types/request_text_block_param.py index 8ad86529..69301bbd 100644 --- a/src/fireworks/types/request_text_block_param.py +++ b/src/fireworks/types/request_text_block_param.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing import Union, Iterable, Optional diff --git a/src/fireworks/types/request_web_search_result_location_citation_param.py b/src/fireworks/types/request_web_search_result_location_citation_param.py index 94dcd8dc..e253314b 100644 --- a/src/fireworks/types/request_web_search_result_location_citation_param.py +++ b/src/fireworks/types/request_web_search_result_location_citation_param.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing import Optional diff --git a/src/fireworks/types/response_char_location_citation.py b/src/fireworks/types/response_char_location_citation.py index e7d01918..c703344c 100644 --- a/src/fireworks/types/response_char_location_citation.py +++ b/src/fireworks/types/response_char_location_citation.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Optional from typing_extensions import Literal diff --git a/src/fireworks/types/response_content_block_location_citation.py b/src/fireworks/types/response_content_block_location_citation.py index d17d0ed0..a8b68cef 100644 --- a/src/fireworks/types/response_content_block_location_citation.py +++ b/src/fireworks/types/response_content_block_location_citation.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Optional from typing_extensions import Literal diff --git a/src/fireworks/types/response_page_location_citation.py b/src/fireworks/types/response_page_location_citation.py index a5956d87..849117d7 100644 --- a/src/fireworks/types/response_page_location_citation.py +++ b/src/fireworks/types/response_page_location_citation.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Optional from typing_extensions import Literal diff --git a/src/fireworks/types/response_redacted_thinking_block.py b/src/fireworks/types/response_redacted_thinking_block.py index f1ce26f9..f4bece0c 100644 --- a/src/fireworks/types/response_redacted_thinking_block.py +++ b/src/fireworks/types/response_redacted_thinking_block.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing_extensions import Literal from .._models import BaseModel diff --git a/src/fireworks/types/response_search_result_location_citation.py b/src/fireworks/types/response_search_result_location_citation.py index c929fadb..1d3f65a7 100644 --- a/src/fireworks/types/response_search_result_location_citation.py +++ b/src/fireworks/types/response_search_result_location_citation.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Optional from typing_extensions import Literal diff --git a/src/fireworks/types/response_text_block.py b/src/fireworks/types/response_text_block.py index 92f83ef0..170067a3 100644 --- a/src/fireworks/types/response_text_block.py +++ b/src/fireworks/types/response_text_block.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import List, Union, Optional from typing_extensions import Literal, Annotated, TypeAlias diff --git a/src/fireworks/types/response_thinking_block.py b/src/fireworks/types/response_thinking_block.py index 3defbe35..7f15197c 100644 --- a/src/fireworks/types/response_thinking_block.py +++ b/src/fireworks/types/response_thinking_block.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing_extensions import Literal from .._models import BaseModel diff --git a/src/fireworks/types/response_tool_use_block.py b/src/fireworks/types/response_tool_use_block.py index 517974ad..c1679f9e 100644 --- a/src/fireworks/types/response_tool_use_block.py +++ b/src/fireworks/types/response_tool_use_block.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Dict from typing_extensions import Literal diff --git a/src/fireworks/types/response_web_search_result_location_citation.py b/src/fireworks/types/response_web_search_result_location_citation.py index d28a3367..ba924b88 100644 --- a/src/fireworks/types/response_web_search_result_location_citation.py +++ b/src/fireworks/types/response_web_search_result_location_citation.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Optional from typing_extensions import Literal diff --git a/src/fireworks/types/secret.py b/src/fireworks/types/secret.py index 6b59f87e..ce28b892 100644 --- a/src/fireworks/types/secret.py +++ b/src/fireworks/types/secret.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Optional from pydantic import Field as FieldInfo diff --git a/src/fireworks/types/secret_create_params.py b/src/fireworks/types/secret_create_params.py index 848391e1..15431895 100644 --- a/src/fireworks/types/secret_create_params.py +++ b/src/fireworks/types/secret_create_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Required, Annotated, TypedDict diff --git a/src/fireworks/types/secret_get_params.py b/src/fireworks/types/secret_get_params.py index 3f490f02..2545ffce 100644 --- a/src/fireworks/types/secret_get_params.py +++ b/src/fireworks/types/secret_get_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/secret_list_params.py b/src/fireworks/types/secret_list_params.py index 25fcd81a..27d3da5e 100644 --- a/src/fireworks/types/secret_list_params.py +++ b/src/fireworks/types/secret_list_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/secret_update_params.py b/src/fireworks/types/secret_update_params.py index fa30df6d..8b2886c7 100644 --- a/src/fireworks/types/secret_update_params.py +++ b/src/fireworks/types/secret_update_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Required, Annotated, TypedDict diff --git a/src/fireworks/types/shared/__init__.py b/src/fireworks/types/shared/__init__.py index 9a15ea01..9c98dfca 100644 --- a/src/fireworks/types/shared/__init__.py +++ b/src/fireworks/types/shared/__init__.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from .choice import Choice as Choice from .status import Status as Status from .log_probs import LogProbs as LogProbs diff --git a/src/fireworks/types/shared/chat_completion_message_tool_call.py b/src/fireworks/types/shared/chat_completion_message_tool_call.py index 27f4a624..73d52aba 100644 --- a/src/fireworks/types/shared/chat_completion_message_tool_call.py +++ b/src/fireworks/types/shared/chat_completion_message_tool_call.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Union, Optional from typing_extensions import TypeAlias diff --git a/src/fireworks/types/shared/chat_completion_message_tool_call_function.py b/src/fireworks/types/shared/chat_completion_message_tool_call_function.py index 27e970b8..06a856d3 100644 --- a/src/fireworks/types/shared/chat_completion_message_tool_call_function.py +++ b/src/fireworks/types/shared/chat_completion_message_tool_call_function.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Dict, Union, Optional from ..._models import BaseModel diff --git a/src/fireworks/types/shared/chat_completion_tool.py b/src/fireworks/types/shared/chat_completion_tool.py index 7c80a256..8d60aaac 100644 --- a/src/fireworks/types/shared/chat_completion_tool.py +++ b/src/fireworks/types/shared/chat_completion_tool.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Dict, Optional from typing_extensions import Literal diff --git a/src/fireworks/types/shared/chat_message.py b/src/fireworks/types/shared/chat_message.py index 28d9ac3f..c6b32723 100644 --- a/src/fireworks/types/shared/chat_message.py +++ b/src/fireworks/types/shared/chat_message.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import List, Union, Optional from ..._models import BaseModel diff --git a/src/fireworks/types/shared/choice.py b/src/fireworks/types/shared/choice.py index 10f39e79..3c91eb63 100644 --- a/src/fireworks/types/shared/choice.py +++ b/src/fireworks/types/shared/choice.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import List, Union, Optional from typing_extensions import Literal, TypeAlias diff --git a/src/fireworks/types/shared/deployed_model.py b/src/fireworks/types/shared/deployed_model.py index 7db95ee1..1bd1490d 100644 --- a/src/fireworks/types/shared/deployed_model.py +++ b/src/fireworks/types/shared/deployed_model.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Optional from datetime import datetime from typing_extensions import Literal diff --git a/src/fireworks/types/shared/deployed_model_ref.py b/src/fireworks/types/shared/deployed_model_ref.py index 536eba98..63a551a5 100644 --- a/src/fireworks/types/shared/deployed_model_ref.py +++ b/src/fireworks/types/shared/deployed_model_ref.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Optional from typing_extensions import Literal diff --git a/src/fireworks/types/shared/log_probs.py b/src/fireworks/types/shared/log_probs.py index 5721bfb6..32c3a9bd 100644 --- a/src/fireworks/types/shared/log_probs.py +++ b/src/fireworks/types/shared/log_probs.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Dict, List, Optional from ..._models import BaseModel diff --git a/src/fireworks/types/shared/new_log_probs.py b/src/fireworks/types/shared/new_log_probs.py index cb9000f8..85cf3360 100644 --- a/src/fireworks/types/shared/new_log_probs.py +++ b/src/fireworks/types/shared/new_log_probs.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import List, Optional from ..._models import BaseModel diff --git a/src/fireworks/types/shared/new_log_probs_content.py b/src/fireworks/types/shared/new_log_probs_content.py index c985a319..9bf3334f 100644 --- a/src/fireworks/types/shared/new_log_probs_content.py +++ b/src/fireworks/types/shared/new_log_probs_content.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import List, Optional from ..._models import BaseModel diff --git a/src/fireworks/types/shared/new_log_probs_content_top_log_probs.py b/src/fireworks/types/shared/new_log_probs_content_top_log_probs.py index 5c3519b3..adace06c 100644 --- a/src/fireworks/types/shared/new_log_probs_content_top_log_probs.py +++ b/src/fireworks/types/shared/new_log_probs_content_top_log_probs.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import List, Optional from ..._models import BaseModel diff --git a/src/fireworks/types/shared/prompt_tokens_details.py b/src/fireworks/types/shared/prompt_tokens_details.py index 2692236d..1d7819cb 100644 --- a/src/fireworks/types/shared/prompt_tokens_details.py +++ b/src/fireworks/types/shared/prompt_tokens_details.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Optional from ..._models import BaseModel diff --git a/src/fireworks/types/shared/raw_output.py b/src/fireworks/types/shared/raw_output.py index ceb4f20c..9b077a6e 100644 --- a/src/fireworks/types/shared/raw_output.py +++ b/src/fireworks/types/shared/raw_output.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import List, Union, Optional from ..._models import BaseModel diff --git a/src/fireworks/types/shared/reinforcement_learning_loss_config.py b/src/fireworks/types/shared/reinforcement_learning_loss_config.py index eac9aae3..6b9caaa1 100644 --- a/src/fireworks/types/shared/reinforcement_learning_loss_config.py +++ b/src/fireworks/types/shared/reinforcement_learning_loss_config.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Optional from typing_extensions import Literal diff --git a/src/fireworks/types/shared/status.py b/src/fireworks/types/shared/status.py index 2121d7c9..24670a82 100644 --- a/src/fireworks/types/shared/status.py +++ b/src/fireworks/types/shared/status.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Optional from typing_extensions import Literal diff --git a/src/fireworks/types/shared/training_config.py b/src/fireworks/types/shared/training_config.py index 594a6665..c8e06548 100644 --- a/src/fireworks/types/shared/training_config.py +++ b/src/fireworks/types/shared/training_config.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Optional from typing_extensions import Literal diff --git a/src/fireworks/types/shared/usage_info.py b/src/fireworks/types/shared/usage_info.py index 421e4f4d..bbf29990 100644 --- a/src/fireworks/types/shared/usage_info.py +++ b/src/fireworks/types/shared/usage_info.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Optional from ..._models import BaseModel diff --git a/src/fireworks/types/shared/wandb_config.py b/src/fireworks/types/shared/wandb_config.py index 8e6ad800..40d7e538 100644 --- a/src/fireworks/types/shared/wandb_config.py +++ b/src/fireworks/types/shared/wandb_config.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Optional from pydantic import Field as FieldInfo diff --git a/src/fireworks/types/shared_params/__init__.py b/src/fireworks/types/shared_params/__init__.py index ea021703..24d30f05 100644 --- a/src/fireworks/types/shared_params/__init__.py +++ b/src/fireworks/types/shared_params/__init__.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from .status import Status as Status from .chat_message import ChatMessage as ChatMessage from .wandb_config import WandbConfig as WandbConfig diff --git a/src/fireworks/types/shared_params/chat_completion_message_tool_call.py b/src/fireworks/types/shared_params/chat_completion_message_tool_call.py index 666b9610..903aea42 100644 --- a/src/fireworks/types/shared_params/chat_completion_message_tool_call.py +++ b/src/fireworks/types/shared_params/chat_completion_message_tool_call.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing import Union, Optional diff --git a/src/fireworks/types/shared_params/chat_completion_message_tool_call_function.py b/src/fireworks/types/shared_params/chat_completion_message_tool_call_function.py index 29fe62d1..b658a604 100644 --- a/src/fireworks/types/shared_params/chat_completion_message_tool_call_function.py +++ b/src/fireworks/types/shared_params/chat_completion_message_tool_call_function.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing import Dict, Union, Optional diff --git a/src/fireworks/types/shared_params/chat_completion_tool.py b/src/fireworks/types/shared_params/chat_completion_tool.py index 37d1f1b8..e23a5a51 100644 --- a/src/fireworks/types/shared_params/chat_completion_tool.py +++ b/src/fireworks/types/shared_params/chat_completion_tool.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing import Dict, Optional diff --git a/src/fireworks/types/shared_params/chat_message.py b/src/fireworks/types/shared_params/chat_message.py index 293c2f03..38ca206c 100644 --- a/src/fireworks/types/shared_params/chat_message.py +++ b/src/fireworks/types/shared_params/chat_message.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing import Union, Iterable, Optional diff --git a/src/fireworks/types/shared_params/deployed_model_ref.py b/src/fireworks/types/shared_params/deployed_model_ref.py index 57dead75..143c7b04 100644 --- a/src/fireworks/types/shared_params/deployed_model_ref.py +++ b/src/fireworks/types/shared_params/deployed_model_ref.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import TypedDict diff --git a/src/fireworks/types/shared_params/reinforcement_learning_loss_config.py b/src/fireworks/types/shared_params/reinforcement_learning_loss_config.py index 6b406ff2..c4609dac 100644 --- a/src/fireworks/types/shared_params/reinforcement_learning_loss_config.py +++ b/src/fireworks/types/shared_params/reinforcement_learning_loss_config.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Literal, Annotated, TypedDict diff --git a/src/fireworks/types/shared_params/status.py b/src/fireworks/types/shared_params/status.py index 09f1d5b9..5a7a12a5 100644 --- a/src/fireworks/types/shared_params/status.py +++ b/src/fireworks/types/shared_params/status.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Literal, TypedDict diff --git a/src/fireworks/types/shared_params/training_config.py b/src/fireworks/types/shared_params/training_config.py index 3704f20e..b46bb559 100644 --- a/src/fireworks/types/shared_params/training_config.py +++ b/src/fireworks/types/shared_params/training_config.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Literal, Annotated, TypedDict diff --git a/src/fireworks/types/shared_params/wandb_config.py b/src/fireworks/types/shared_params/wandb_config.py index e6a1cf1a..1f8052fc 100644 --- a/src/fireworks/types/shared_params/wandb_config.py +++ b/src/fireworks/types/shared_params/wandb_config.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/splitted.py b/src/fireworks/types/splitted.py index c83dc18e..73e04049 100644 --- a/src/fireworks/types/splitted.py +++ b/src/fireworks/types/splitted.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from pydantic import Field as FieldInfo from .._models import BaseModel diff --git a/src/fireworks/types/splitted_param.py b/src/fireworks/types/splitted_param.py index 3c099cfb..3c72aa8e 100644 --- a/src/fireworks/types/splitted_param.py +++ b/src/fireworks/types/splitted_param.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Required, Annotated, TypedDict diff --git a/src/fireworks/types/supervised_fine_tuning_job.py b/src/fireworks/types/supervised_fine_tuning_job.py index 1ed706d4..1a794145 100644 --- a/src/fireworks/types/supervised_fine_tuning_job.py +++ b/src/fireworks/types/supervised_fine_tuning_job.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Optional from datetime import datetime from typing_extensions import Literal diff --git a/src/fireworks/types/supervised_fine_tuning_job_create_params.py b/src/fireworks/types/supervised_fine_tuning_job_create_params.py index 64f0d5ba..937b7b7e 100644 --- a/src/fireworks/types/supervised_fine_tuning_job_create_params.py +++ b/src/fireworks/types/supervised_fine_tuning_job_create_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Literal, Required, Annotated, TypedDict diff --git a/src/fireworks/types/supervised_fine_tuning_job_get_params.py b/src/fireworks/types/supervised_fine_tuning_job_get_params.py index a9732665..0d0e3b6b 100644 --- a/src/fireworks/types/supervised_fine_tuning_job_get_params.py +++ b/src/fireworks/types/supervised_fine_tuning_job_get_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/supervised_fine_tuning_job_list_params.py b/src/fireworks/types/supervised_fine_tuning_job_list_params.py index c6126b2e..0d668cc1 100644 --- a/src/fireworks/types/supervised_fine_tuning_job_list_params.py +++ b/src/fireworks/types/supervised_fine_tuning_job_list_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/supervised_fine_tuning_job_resume_params.py b/src/fireworks/types/supervised_fine_tuning_job_resume_params.py index fa429b32..dd50cca5 100644 --- a/src/fireworks/types/supervised_fine_tuning_job_resume_params.py +++ b/src/fireworks/types/supervised_fine_tuning_job_resume_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Required, TypedDict diff --git a/src/fireworks/types/transformed.py b/src/fireworks/types/transformed.py index 8c95d2e9..82e58495 100644 --- a/src/fireworks/types/transformed.py +++ b/src/fireworks/types/transformed.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Optional from typing_extensions import Literal diff --git a/src/fireworks/types/transformed_param.py b/src/fireworks/types/transformed_param.py index 10ba6bbd..2800bcb0 100644 --- a/src/fireworks/types/transformed_param.py +++ b/src/fireworks/types/transformed_param.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Literal, Required, Annotated, TypedDict diff --git a/src/fireworks/types/type_date.py b/src/fireworks/types/type_date.py index 4e699fdf..5b0719f0 100644 --- a/src/fireworks/types/type_date.py +++ b/src/fireworks/types/type_date.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Optional from .._models import BaseModel diff --git a/src/fireworks/types/type_date_param.py b/src/fireworks/types/type_date_param.py index 0486898b..5c5ddc83 100644 --- a/src/fireworks/types/type_date_param.py +++ b/src/fireworks/types/type_date_param.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import TypedDict diff --git a/src/fireworks/types/user.py b/src/fireworks/types/user.py index de3ef2cc..d457e66e 100644 --- a/src/fireworks/types/user.py +++ b/src/fireworks/types/user.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from typing import Optional from datetime import datetime from typing_extensions import Literal diff --git a/src/fireworks/types/user_create_params.py b/src/fireworks/types/user_create_params.py index 75b5dfff..bbcd60fe 100644 --- a/src/fireworks/types/user_create_params.py +++ b/src/fireworks/types/user_create_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Required, Annotated, TypedDict diff --git a/src/fireworks/types/user_get_params.py b/src/fireworks/types/user_get_params.py index c4b8548b..a6d169cd 100644 --- a/src/fireworks/types/user_get_params.py +++ b/src/fireworks/types/user_get_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/user_list_params.py b/src/fireworks/types/user_list_params.py index b2bc76c2..dd4d40d1 100644 --- a/src/fireworks/types/user_list_params.py +++ b/src/fireworks/types/user_list_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/user_update_params.py b/src/fireworks/types/user_update_params.py index 4292d26e..4ff0e472 100644 --- a/src/fireworks/types/user_update_params.py +++ b/src/fireworks/types/user_update_params.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations from typing_extensions import Required, Annotated, TypedDict diff --git a/src/fireworks_ai/lib/.keep b/src/fireworks_ai/lib/.keep index 5e2c99fd..94387375 100644 --- a/src/fireworks_ai/lib/.keep +++ b/src/fireworks_ai/lib/.keep @@ -1,4 +1,3 @@ -File generated from our OpenAPI spec by Stainless. +This directory holds hand-maintained code that extends the SDK. -This directory can be used to store custom files to expand the SDK. -It is ignored by Stainless code generation and its content (other than this keep file) won't be touched. \ No newline at end of file +The REST API client code generator does not write into this directory; its contents (other than this keep file) are preserved across regenerations. \ No newline at end of file diff --git a/tests/__init__.py b/tests/__init__.py index fd8019a9..e69de29b 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. diff --git a/tests/api_resources/__init__.py b/tests/api_resources/__init__.py index fd8019a9..e69de29b 100644 --- a/tests/api_resources/__init__.py +++ b/tests/api_resources/__init__.py @@ -1 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. diff --git a/tests/api_resources/chat/__init__.py b/tests/api_resources/chat/__init__.py index fd8019a9..e69de29b 100644 --- a/tests/api_resources/chat/__init__.py +++ b/tests/api_resources/chat/__init__.py @@ -1 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. diff --git a/tests/api_resources/chat/test_completions.py b/tests/api_resources/chat/test_completions.py index afa92884..f0cd1bb6 100644 --- a/tests/api_resources/chat/test_completions.py +++ b/tests/api_resources/chat/test_completions.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations import os @@ -133,7 +131,7 @@ def test_raw_response_create_overload_1(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" completion = response.parse() assert_matches_type(CompletionCreateResponse, completion, path=["response"]) @@ -145,7 +143,7 @@ def test_streaming_response_create_overload_1(self, client: Fireworks) -> None: model="model", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" completion = response.parse() assert_matches_type(CompletionCreateResponse, completion, path=["response"]) @@ -269,7 +267,7 @@ def test_raw_response_create_overload_2(self, client: Fireworks) -> None: stream=True, ) - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" stream = response.parse() stream.close() @@ -282,7 +280,7 @@ def test_streaming_response_create_overload_2(self, client: Fireworks) -> None: stream=True, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" stream = response.parse() stream.close() @@ -411,7 +409,7 @@ async def test_raw_response_create_overload_1(self, async_client: AsyncFireworks ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" completion = await response.parse() assert_matches_type(CompletionCreateResponse, completion, path=["response"]) @@ -423,7 +421,7 @@ async def test_streaming_response_create_overload_1(self, async_client: AsyncFir model="model", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" completion = await response.parse() assert_matches_type(CompletionCreateResponse, completion, path=["response"]) @@ -547,7 +545,7 @@ async def test_raw_response_create_overload_2(self, async_client: AsyncFireworks stream=True, ) - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" stream = await response.parse() await stream.close() @@ -560,7 +558,7 @@ async def test_streaming_response_create_overload_2(self, async_client: AsyncFir stream=True, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" stream = await response.parse() await stream.close() diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 45bc3332..e9f754e1 100644 --- a/tests/api_resources/test_accounts.py +++ b/tests/api_resources/test_accounts.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations import os @@ -42,7 +40,7 @@ def test_raw_response_list(self, client: Fireworks) -> None: response = client.accounts.with_raw_response.list() assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" account = response.parse() assert_matches_type(SyncCursorAccounts[Account], account, path=["response"]) @@ -51,7 +49,7 @@ def test_raw_response_list(self, client: Fireworks) -> None: def test_streaming_response_list(self, client: Fireworks) -> None: with client.accounts.with_streaming_response.list() as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" account = response.parse() assert_matches_type(SyncCursorAccounts[Account], account, path=["response"]) @@ -83,7 +81,7 @@ def test_raw_response_get(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" account = response.parse() assert_matches_type(Account, account, path=["response"]) @@ -94,7 +92,7 @@ def test_streaming_response_get(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" account = response.parse() assert_matches_type(Account, account, path=["response"]) @@ -139,7 +137,7 @@ async def test_raw_response_list(self, async_client: AsyncFireworks) -> None: response = await async_client.accounts.with_raw_response.list() assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" account = await response.parse() assert_matches_type(AsyncCursorAccounts[Account], account, path=["response"]) @@ -148,7 +146,7 @@ async def test_raw_response_list(self, async_client: AsyncFireworks) -> None: async def test_streaming_response_list(self, async_client: AsyncFireworks) -> None: async with async_client.accounts.with_streaming_response.list() as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" account = await response.parse() assert_matches_type(AsyncCursorAccounts[Account], account, path=["response"]) @@ -180,7 +178,7 @@ async def test_raw_response_get(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" account = await response.parse() assert_matches_type(Account, account, path=["response"]) @@ -191,7 +189,7 @@ async def test_streaming_response_get(self, async_client: AsyncFireworks) -> Non account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" account = await response.parse() assert_matches_type(Account, account, path=["response"]) diff --git a/tests/api_resources/test_api_keys.py b/tests/api_resources/test_api_keys.py index 170cbc06..c6ba4b9a 100644 --- a/tests/api_resources/test_api_keys.py +++ b/tests/api_resources/test_api_keys.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations import os @@ -52,7 +50,7 @@ def test_raw_response_create(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" api_key = response.parse() assert_matches_type(APIKey, api_key, path=["response"]) @@ -65,7 +63,7 @@ def test_streaming_response_create(self, client: Fireworks) -> None: api_key={}, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" api_key = response.parse() assert_matches_type(APIKey, api_key, path=["response"]) @@ -121,7 +119,7 @@ def test_raw_response_list(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" api_key = response.parse() assert_matches_type(SyncCursorAPIKeys[APIKey], api_key, path=["response"]) @@ -133,7 +131,7 @@ def test_streaming_response_list(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" api_key = response.parse() assert_matches_type(SyncCursorAPIKeys[APIKey], api_key, path=["response"]) @@ -175,7 +173,7 @@ def test_raw_response_delete(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" api_key = response.parse() assert_matches_type(object, api_key, path=["response"]) @@ -188,7 +186,7 @@ def test_streaming_response_delete(self, client: Fireworks) -> None: key_id="keyId", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" api_key = response.parse() assert_matches_type(object, api_key, path=["response"]) @@ -251,7 +249,7 @@ async def test_raw_response_create(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" api_key = await response.parse() assert_matches_type(APIKey, api_key, path=["response"]) @@ -264,7 +262,7 @@ async def test_streaming_response_create(self, async_client: AsyncFireworks) -> api_key={}, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" api_key = await response.parse() assert_matches_type(APIKey, api_key, path=["response"]) @@ -320,7 +318,7 @@ async def test_raw_response_list(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" api_key = await response.parse() assert_matches_type(AsyncCursorAPIKeys[APIKey], api_key, path=["response"]) @@ -332,7 +330,7 @@ async def test_streaming_response_list(self, async_client: AsyncFireworks) -> No account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" api_key = await response.parse() assert_matches_type(AsyncCursorAPIKeys[APIKey], api_key, path=["response"]) @@ -374,7 +372,7 @@ async def test_raw_response_delete(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" api_key = await response.parse() assert_matches_type(object, api_key, path=["response"]) @@ -387,7 +385,7 @@ async def test_streaming_response_delete(self, async_client: AsyncFireworks) -> key_id="keyId", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" api_key = await response.parse() assert_matches_type(object, api_key, path=["response"]) diff --git a/tests/api_resources/test_batch_inference_jobs.py b/tests/api_resources/test_batch_inference_jobs.py index 11f0c51d..8c73d640 100644 --- a/tests/api_resources/test_batch_inference_jobs.py +++ b/tests/api_resources/test_batch_inference_jobs.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations import os @@ -59,7 +57,7 @@ def test_raw_response_create(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" batch_inference_job = response.parse() assert_matches_type(BatchInferenceJob, batch_inference_job, path=["response"]) @@ -70,7 +68,7 @@ def test_streaming_response_create(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" batch_inference_job = response.parse() assert_matches_type(BatchInferenceJob, batch_inference_job, path=["response"]) @@ -114,7 +112,7 @@ def test_raw_response_list(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" batch_inference_job = response.parse() assert_matches_type(SyncCursorBatchInferenceJobs[BatchInferenceJob], batch_inference_job, path=["response"]) @@ -125,7 +123,7 @@ def test_streaming_response_list(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" batch_inference_job = response.parse() assert_matches_type(SyncCursorBatchInferenceJobs[BatchInferenceJob], batch_inference_job, path=["response"]) @@ -158,7 +156,7 @@ def test_raw_response_delete(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" batch_inference_job = response.parse() assert_matches_type(object, batch_inference_job, path=["response"]) @@ -170,7 +168,7 @@ def test_streaming_response_delete(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" batch_inference_job = response.parse() assert_matches_type(object, batch_inference_job, path=["response"]) @@ -222,7 +220,7 @@ def test_raw_response_get(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" batch_inference_job = response.parse() assert_matches_type(BatchInferenceJob, batch_inference_job, path=["response"]) @@ -234,7 +232,7 @@ def test_streaming_response_get(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" batch_inference_job = response.parse() assert_matches_type(BatchInferenceJob, batch_inference_job, path=["response"]) @@ -303,7 +301,7 @@ async def test_raw_response_create(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" batch_inference_job = await response.parse() assert_matches_type(BatchInferenceJob, batch_inference_job, path=["response"]) @@ -314,7 +312,7 @@ async def test_streaming_response_create(self, async_client: AsyncFireworks) -> account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" batch_inference_job = await response.parse() assert_matches_type(BatchInferenceJob, batch_inference_job, path=["response"]) @@ -358,7 +356,7 @@ async def test_raw_response_list(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" batch_inference_job = await response.parse() assert_matches_type(AsyncCursorBatchInferenceJobs[BatchInferenceJob], batch_inference_job, path=["response"]) @@ -369,7 +367,7 @@ async def test_streaming_response_list(self, async_client: AsyncFireworks) -> No account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" batch_inference_job = await response.parse() assert_matches_type( @@ -404,7 +402,7 @@ async def test_raw_response_delete(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" batch_inference_job = await response.parse() assert_matches_type(object, batch_inference_job, path=["response"]) @@ -416,7 +414,7 @@ async def test_streaming_response_delete(self, async_client: AsyncFireworks) -> account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" batch_inference_job = await response.parse() assert_matches_type(object, batch_inference_job, path=["response"]) @@ -468,7 +466,7 @@ async def test_raw_response_get(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" batch_inference_job = await response.parse() assert_matches_type(BatchInferenceJob, batch_inference_job, path=["response"]) @@ -480,7 +478,7 @@ async def test_streaming_response_get(self, async_client: AsyncFireworks) -> Non account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" batch_inference_job = await response.parse() assert_matches_type(BatchInferenceJob, batch_inference_job, path=["response"]) diff --git a/tests/api_resources/test_completions.py b/tests/api_resources/test_completions.py index 3b41f32f..7e00fdd7 100644 --- a/tests/api_resources/test_completions.py +++ b/tests/api_resources/test_completions.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations import os @@ -93,7 +91,7 @@ def test_raw_response_create_overload_1(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" completion = response.parse() assert_matches_type(CompletionCreateResponse, completion, path=["response"]) @@ -105,7 +103,7 @@ def test_streaming_response_create_overload_1(self, client: Fireworks) -> None: prompt="string", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" completion = response.parse() assert_matches_type(CompletionCreateResponse, completion, path=["response"]) @@ -189,7 +187,7 @@ def test_raw_response_create_overload_2(self, client: Fireworks) -> None: stream=True, ) - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" stream = response.parse() stream.close() @@ -202,7 +200,7 @@ def test_streaming_response_create_overload_2(self, client: Fireworks) -> None: stream=True, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" stream = response.parse() stream.close() @@ -291,7 +289,7 @@ async def test_raw_response_create_overload_1(self, async_client: AsyncFireworks ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" completion = await response.parse() assert_matches_type(CompletionCreateResponse, completion, path=["response"]) @@ -303,7 +301,7 @@ async def test_streaming_response_create_overload_1(self, async_client: AsyncFir prompt="string", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" completion = await response.parse() assert_matches_type(CompletionCreateResponse, completion, path=["response"]) @@ -387,7 +385,7 @@ async def test_raw_response_create_overload_2(self, async_client: AsyncFireworks stream=True, ) - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" stream = await response.parse() await stream.close() @@ -400,7 +398,7 @@ async def test_streaming_response_create_overload_2(self, async_client: AsyncFir stream=True, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" stream = await response.parse() await stream.close() diff --git a/tests/api_resources/test_datasets.py b/tests/api_resources/test_datasets.py index 6e7bb111..a2798ef2 100644 --- a/tests/api_resources/test_datasets.py +++ b/tests/api_resources/test_datasets.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations import os @@ -70,7 +68,7 @@ def test_raw_response_create(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" dataset = response.parse() assert_matches_type(Dataset, dataset, path=["response"]) @@ -83,7 +81,7 @@ def test_streaming_response_create(self, client: Fireworks) -> None: dataset_id="datasetId", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" dataset = response.parse() assert_matches_type(Dataset, dataset, path=["response"]) @@ -141,7 +139,7 @@ def test_raw_response_update(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" dataset = response.parse() assert_matches_type(Dataset, dataset, path=["response"]) @@ -153,7 +151,7 @@ def test_streaming_response_update(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" dataset = response.parse() assert_matches_type(Dataset, dataset, path=["response"]) @@ -204,7 +202,7 @@ def test_raw_response_list(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" dataset = response.parse() assert_matches_type(SyncCursorDatasets[Dataset], dataset, path=["response"]) @@ -215,7 +213,7 @@ def test_streaming_response_list(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" dataset = response.parse() assert_matches_type(SyncCursorDatasets[Dataset], dataset, path=["response"]) @@ -248,7 +246,7 @@ def test_raw_response_delete(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" dataset = response.parse() assert_matches_type(object, dataset, path=["response"]) @@ -260,7 +258,7 @@ def test_streaming_response_delete(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" dataset = response.parse() assert_matches_type(object, dataset, path=["response"]) @@ -310,7 +308,7 @@ def test_raw_response_get(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" dataset = response.parse() assert_matches_type(Dataset, dataset, path=["response"]) @@ -322,7 +320,7 @@ def test_streaming_response_get(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" dataset = response.parse() assert_matches_type(Dataset, dataset, path=["response"]) @@ -373,7 +371,7 @@ def test_raw_response_get_download_endpoint(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" dataset = response.parse() assert_matches_type(DatasetGetDownloadEndpointResponse, dataset, path=["response"]) @@ -385,7 +383,7 @@ def test_streaming_response_get_download_endpoint(self, client: Fireworks) -> No account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" dataset = response.parse() assert_matches_type(DatasetGetDownloadEndpointResponse, dataset, path=["response"]) @@ -438,7 +436,7 @@ def test_raw_response_get_upload_endpoint(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" dataset = response.parse() assert_matches_type(DatasetGetUploadEndpointResponse, dataset, path=["response"]) @@ -451,7 +449,7 @@ def test_streaming_response_get_upload_endpoint(self, client: Fireworks) -> None filename_to_size={"foo": "string"}, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" dataset = response.parse() assert_matches_type(DatasetGetUploadEndpointResponse, dataset, path=["response"]) @@ -503,7 +501,7 @@ def test_raw_response_upload(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" dataset = response.parse() assert_matches_type(DatasetUploadResponse, dataset, path=["response"]) @@ -515,7 +513,7 @@ def test_streaming_response_upload(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" dataset = response.parse() assert_matches_type(DatasetUploadResponse, dataset, path=["response"]) @@ -557,7 +555,7 @@ def test_raw_response_validate_upload(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" dataset = response.parse() assert_matches_type(object, dataset, path=["response"]) @@ -570,7 +568,7 @@ def test_streaming_response_validate_upload(self, client: Fireworks) -> None: body={}, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" dataset = response.parse() assert_matches_type(object, dataset, path=["response"]) @@ -647,7 +645,7 @@ async def test_raw_response_create(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" dataset = await response.parse() assert_matches_type(Dataset, dataset, path=["response"]) @@ -660,7 +658,7 @@ async def test_streaming_response_create(self, async_client: AsyncFireworks) -> dataset_id="datasetId", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" dataset = await response.parse() assert_matches_type(Dataset, dataset, path=["response"]) @@ -718,7 +716,7 @@ async def test_raw_response_update(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" dataset = await response.parse() assert_matches_type(Dataset, dataset, path=["response"]) @@ -730,7 +728,7 @@ async def test_streaming_response_update(self, async_client: AsyncFireworks) -> account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" dataset = await response.parse() assert_matches_type(Dataset, dataset, path=["response"]) @@ -781,7 +779,7 @@ async def test_raw_response_list(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" dataset = await response.parse() assert_matches_type(AsyncCursorDatasets[Dataset], dataset, path=["response"]) @@ -792,7 +790,7 @@ async def test_streaming_response_list(self, async_client: AsyncFireworks) -> No account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" dataset = await response.parse() assert_matches_type(AsyncCursorDatasets[Dataset], dataset, path=["response"]) @@ -825,7 +823,7 @@ async def test_raw_response_delete(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" dataset = await response.parse() assert_matches_type(object, dataset, path=["response"]) @@ -837,7 +835,7 @@ async def test_streaming_response_delete(self, async_client: AsyncFireworks) -> account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" dataset = await response.parse() assert_matches_type(object, dataset, path=["response"]) @@ -887,7 +885,7 @@ async def test_raw_response_get(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" dataset = await response.parse() assert_matches_type(Dataset, dataset, path=["response"]) @@ -899,7 +897,7 @@ async def test_streaming_response_get(self, async_client: AsyncFireworks) -> Non account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" dataset = await response.parse() assert_matches_type(Dataset, dataset, path=["response"]) @@ -950,7 +948,7 @@ async def test_raw_response_get_download_endpoint(self, async_client: AsyncFirew ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" dataset = await response.parse() assert_matches_type(DatasetGetDownloadEndpointResponse, dataset, path=["response"]) @@ -962,7 +960,7 @@ async def test_streaming_response_get_download_endpoint(self, async_client: Asyn account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" dataset = await response.parse() assert_matches_type(DatasetGetDownloadEndpointResponse, dataset, path=["response"]) @@ -1015,7 +1013,7 @@ async def test_raw_response_get_upload_endpoint(self, async_client: AsyncFirewor ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" dataset = await response.parse() assert_matches_type(DatasetGetUploadEndpointResponse, dataset, path=["response"]) @@ -1028,7 +1026,7 @@ async def test_streaming_response_get_upload_endpoint(self, async_client: AsyncF filename_to_size={"foo": "string"}, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" dataset = await response.parse() assert_matches_type(DatasetGetUploadEndpointResponse, dataset, path=["response"]) @@ -1080,7 +1078,7 @@ async def test_raw_response_upload(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" dataset = await response.parse() assert_matches_type(DatasetUploadResponse, dataset, path=["response"]) @@ -1092,7 +1090,7 @@ async def test_streaming_response_upload(self, async_client: AsyncFireworks) -> account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" dataset = await response.parse() assert_matches_type(DatasetUploadResponse, dataset, path=["response"]) @@ -1134,7 +1132,7 @@ async def test_raw_response_validate_upload(self, async_client: AsyncFireworks) ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" dataset = await response.parse() assert_matches_type(object, dataset, path=["response"]) @@ -1147,7 +1145,7 @@ async def test_streaming_response_validate_upload(self, async_client: AsyncFirew body={}, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" dataset = await response.parse() assert_matches_type(object, dataset, path=["response"]) diff --git a/tests/api_resources/test_deployment_shape_versions.py b/tests/api_resources/test_deployment_shape_versions.py index cbc4e110..73a7b24d 100644 --- a/tests/api_resources/test_deployment_shape_versions.py +++ b/tests/api_resources/test_deployment_shape_versions.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations import os @@ -56,7 +54,7 @@ def test_raw_response_list(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" deployment_shape_version = response.parse() assert_matches_type( SyncCursorDeploymentShapeVersions[DeploymentShapeVersion], deployment_shape_version, path=["response"] @@ -70,7 +68,7 @@ def test_streaming_response_list(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" deployment_shape_version = response.parse() assert_matches_type( @@ -125,7 +123,7 @@ def test_raw_response_get(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" deployment_shape_version = response.parse() assert_matches_type(DeploymentShapeVersion, deployment_shape_version, path=["response"]) @@ -138,7 +136,7 @@ def test_streaming_response_get(self, client: Fireworks) -> None: deployment_shape_id="deployment_shape_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" deployment_shape_version = response.parse() assert_matches_type(DeploymentShapeVersion, deployment_shape_version, path=["response"]) @@ -211,7 +209,7 @@ async def test_raw_response_list(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" deployment_shape_version = await response.parse() assert_matches_type( AsyncCursorDeploymentShapeVersions[DeploymentShapeVersion], deployment_shape_version, path=["response"] @@ -225,7 +223,7 @@ async def test_streaming_response_list(self, async_client: AsyncFireworks) -> No account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" deployment_shape_version = await response.parse() assert_matches_type( @@ -280,7 +278,7 @@ async def test_raw_response_get(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" deployment_shape_version = await response.parse() assert_matches_type(DeploymentShapeVersion, deployment_shape_version, path=["response"]) @@ -293,7 +291,7 @@ async def test_streaming_response_get(self, async_client: AsyncFireworks) -> Non deployment_shape_id="deployment_shape_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" deployment_shape_version = await response.parse() assert_matches_type(DeploymentShapeVersion, deployment_shape_version, path=["response"]) diff --git a/tests/api_resources/test_deployment_shapes.py b/tests/api_resources/test_deployment_shapes.py index 62c17265..be80724c 100644 --- a/tests/api_resources/test_deployment_shapes.py +++ b/tests/api_resources/test_deployment_shapes.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations import os @@ -48,7 +46,7 @@ def test_raw_response_list(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" deployment_shape = response.parse() assert_matches_type(SyncCursorDeploymentShapes[DeploymentShape], deployment_shape, path=["response"]) @@ -59,7 +57,7 @@ def test_streaming_response_list(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" deployment_shape = response.parse() assert_matches_type(SyncCursorDeploymentShapes[DeploymentShape], deployment_shape, path=["response"]) @@ -102,7 +100,7 @@ def test_raw_response_get(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" deployment_shape = response.parse() assert_matches_type(DeploymentShape, deployment_shape, path=["response"]) @@ -114,7 +112,7 @@ def test_streaming_response_get(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" deployment_shape = response.parse() assert_matches_type(DeploymentShape, deployment_shape, path=["response"]) @@ -172,7 +170,7 @@ async def test_raw_response_list(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" deployment_shape = await response.parse() assert_matches_type(AsyncCursorDeploymentShapes[DeploymentShape], deployment_shape, path=["response"]) @@ -183,7 +181,7 @@ async def test_streaming_response_list(self, async_client: AsyncFireworks) -> No account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" deployment_shape = await response.parse() assert_matches_type(AsyncCursorDeploymentShapes[DeploymentShape], deployment_shape, path=["response"]) @@ -226,7 +224,7 @@ async def test_raw_response_get(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" deployment_shape = await response.parse() assert_matches_type(DeploymentShape, deployment_shape, path=["response"]) @@ -238,7 +236,7 @@ async def test_streaming_response_get(self, async_client: AsyncFireworks) -> Non account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" deployment_shape = await response.parse() assert_matches_type(DeploymentShape, deployment_shape, path=["response"]) diff --git a/tests/api_resources/test_deployments.py b/tests/api_resources/test_deployments.py index 15d45550..cadd8707 100644 --- a/tests/api_resources/test_deployments.py +++ b/tests/api_resources/test_deployments.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations import os @@ -94,7 +92,7 @@ def test_raw_response_create(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" deployment = response.parse() assert_matches_type(Deployment, deployment, path=["response"]) @@ -106,7 +104,7 @@ def test_streaming_response_create(self, client: Fireworks) -> None: base_model="baseModel", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" deployment = response.parse() assert_matches_type(Deployment, deployment, path=["response"]) @@ -193,7 +191,7 @@ def test_raw_response_update(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" deployment = response.parse() assert_matches_type(Deployment, deployment, path=["response"]) @@ -206,7 +204,7 @@ def test_streaming_response_update(self, client: Fireworks) -> None: base_model="baseModel", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" deployment = response.parse() assert_matches_type(Deployment, deployment, path=["response"]) @@ -260,7 +258,7 @@ def test_raw_response_list(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" deployment = response.parse() assert_matches_type(SyncCursorDeployments[Deployment], deployment, path=["response"]) @@ -271,7 +269,7 @@ def test_streaming_response_list(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" deployment = response.parse() assert_matches_type(SyncCursorDeployments[Deployment], deployment, path=["response"]) @@ -315,7 +313,7 @@ def test_raw_response_delete(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" deployment = response.parse() assert_matches_type(object, deployment, path=["response"]) @@ -327,7 +325,7 @@ def test_streaming_response_delete(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" deployment = response.parse() assert_matches_type(object, deployment, path=["response"]) @@ -377,7 +375,7 @@ def test_raw_response_get(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" deployment = response.parse() assert_matches_type(Deployment, deployment, path=["response"]) @@ -389,7 +387,7 @@ def test_streaming_response_get(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" deployment = response.parse() assert_matches_type(Deployment, deployment, path=["response"]) @@ -439,7 +437,7 @@ def test_raw_response_scale(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" deployment = response.parse() assert_matches_type(object, deployment, path=["response"]) @@ -451,7 +449,7 @@ def test_streaming_response_scale(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" deployment = response.parse() assert_matches_type(object, deployment, path=["response"]) @@ -493,7 +491,7 @@ def test_raw_response_undelete(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" deployment = response.parse() assert_matches_type(Deployment, deployment, path=["response"]) @@ -506,7 +504,7 @@ def test_streaming_response_undelete(self, client: Fireworks) -> None: body={}, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" deployment = response.parse() assert_matches_type(Deployment, deployment, path=["response"]) @@ -609,7 +607,7 @@ async def test_raw_response_create(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" deployment = await response.parse() assert_matches_type(Deployment, deployment, path=["response"]) @@ -621,7 +619,7 @@ async def test_streaming_response_create(self, async_client: AsyncFireworks) -> base_model="baseModel", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" deployment = await response.parse() assert_matches_type(Deployment, deployment, path=["response"]) @@ -708,7 +706,7 @@ async def test_raw_response_update(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" deployment = await response.parse() assert_matches_type(Deployment, deployment, path=["response"]) @@ -721,7 +719,7 @@ async def test_streaming_response_update(self, async_client: AsyncFireworks) -> base_model="baseModel", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" deployment = await response.parse() assert_matches_type(Deployment, deployment, path=["response"]) @@ -775,7 +773,7 @@ async def test_raw_response_list(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" deployment = await response.parse() assert_matches_type(AsyncCursorDeployments[Deployment], deployment, path=["response"]) @@ -786,7 +784,7 @@ async def test_streaming_response_list(self, async_client: AsyncFireworks) -> No account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" deployment = await response.parse() assert_matches_type(AsyncCursorDeployments[Deployment], deployment, path=["response"]) @@ -830,7 +828,7 @@ async def test_raw_response_delete(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" deployment = await response.parse() assert_matches_type(object, deployment, path=["response"]) @@ -842,7 +840,7 @@ async def test_streaming_response_delete(self, async_client: AsyncFireworks) -> account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" deployment = await response.parse() assert_matches_type(object, deployment, path=["response"]) @@ -892,7 +890,7 @@ async def test_raw_response_get(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" deployment = await response.parse() assert_matches_type(Deployment, deployment, path=["response"]) @@ -904,7 +902,7 @@ async def test_streaming_response_get(self, async_client: AsyncFireworks) -> Non account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" deployment = await response.parse() assert_matches_type(Deployment, deployment, path=["response"]) @@ -954,7 +952,7 @@ async def test_raw_response_scale(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" deployment = await response.parse() assert_matches_type(object, deployment, path=["response"]) @@ -966,7 +964,7 @@ async def test_streaming_response_scale(self, async_client: AsyncFireworks) -> N account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" deployment = await response.parse() assert_matches_type(object, deployment, path=["response"]) @@ -1008,7 +1006,7 @@ async def test_raw_response_undelete(self, async_client: AsyncFireworks) -> None ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" deployment = await response.parse() assert_matches_type(Deployment, deployment, path=["response"]) @@ -1021,7 +1019,7 @@ async def test_streaming_response_undelete(self, async_client: AsyncFireworks) - body={}, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" deployment = await response.parse() assert_matches_type(Deployment, deployment, path=["response"]) diff --git a/tests/api_resources/test_dpo_jobs.py b/tests/api_resources/test_dpo_jobs.py index 826e94f6..78668438 100644 --- a/tests/api_resources/test_dpo_jobs.py +++ b/tests/api_resources/test_dpo_jobs.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations import os @@ -86,7 +84,7 @@ def test_raw_response_create(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" dpo_job = response.parse() assert_matches_type(DpoJob, dpo_job, path=["response"]) @@ -98,7 +96,7 @@ def test_streaming_response_create(self, client: Fireworks) -> None: dataset="dataset", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" dpo_job = response.parse() assert_matches_type(DpoJob, dpo_job, path=["response"]) @@ -143,7 +141,7 @@ def test_raw_response_list(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" dpo_job = response.parse() assert_matches_type(SyncCursorDpoJobs[DpoJob], dpo_job, path=["response"]) @@ -154,7 +152,7 @@ def test_streaming_response_list(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" dpo_job = response.parse() assert_matches_type(SyncCursorDpoJobs[DpoJob], dpo_job, path=["response"]) @@ -187,7 +185,7 @@ def test_raw_response_delete(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" dpo_job = response.parse() assert_matches_type(object, dpo_job, path=["response"]) @@ -199,7 +197,7 @@ def test_streaming_response_delete(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" dpo_job = response.parse() assert_matches_type(object, dpo_job, path=["response"]) @@ -249,7 +247,7 @@ def test_raw_response_get(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" dpo_job = response.parse() assert_matches_type(DpoJob, dpo_job, path=["response"]) @@ -261,7 +259,7 @@ def test_streaming_response_get(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" dpo_job = response.parse() assert_matches_type(DpoJob, dpo_job, path=["response"]) @@ -301,7 +299,7 @@ def test_raw_response_get_metrics_file_endpoint(self, client: Fireworks) -> None ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" dpo_job = response.parse() assert_matches_type(DpoJobGetMetricsFileEndpointResponse, dpo_job, path=["response"]) @@ -313,7 +311,7 @@ def test_streaming_response_get_metrics_file_endpoint(self, client: Fireworks) - account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" dpo_job = response.parse() assert_matches_type(DpoJobGetMetricsFileEndpointResponse, dpo_job, path=["response"]) @@ -355,7 +353,7 @@ def test_raw_response_resume(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" dpo_job = response.parse() assert_matches_type(DpoJob, dpo_job, path=["response"]) @@ -368,7 +366,7 @@ def test_streaming_response_resume(self, client: Fireworks) -> None: body={}, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" dpo_job = response.parse() assert_matches_type(DpoJob, dpo_job, path=["response"]) @@ -463,7 +461,7 @@ async def test_raw_response_create(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" dpo_job = await response.parse() assert_matches_type(DpoJob, dpo_job, path=["response"]) @@ -475,7 +473,7 @@ async def test_streaming_response_create(self, async_client: AsyncFireworks) -> dataset="dataset", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" dpo_job = await response.parse() assert_matches_type(DpoJob, dpo_job, path=["response"]) @@ -520,7 +518,7 @@ async def test_raw_response_list(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" dpo_job = await response.parse() assert_matches_type(AsyncCursorDpoJobs[DpoJob], dpo_job, path=["response"]) @@ -531,7 +529,7 @@ async def test_streaming_response_list(self, async_client: AsyncFireworks) -> No account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" dpo_job = await response.parse() assert_matches_type(AsyncCursorDpoJobs[DpoJob], dpo_job, path=["response"]) @@ -564,7 +562,7 @@ async def test_raw_response_delete(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" dpo_job = await response.parse() assert_matches_type(object, dpo_job, path=["response"]) @@ -576,7 +574,7 @@ async def test_streaming_response_delete(self, async_client: AsyncFireworks) -> account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" dpo_job = await response.parse() assert_matches_type(object, dpo_job, path=["response"]) @@ -626,7 +624,7 @@ async def test_raw_response_get(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" dpo_job = await response.parse() assert_matches_type(DpoJob, dpo_job, path=["response"]) @@ -638,7 +636,7 @@ async def test_streaming_response_get(self, async_client: AsyncFireworks) -> Non account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" dpo_job = await response.parse() assert_matches_type(DpoJob, dpo_job, path=["response"]) @@ -678,7 +676,7 @@ async def test_raw_response_get_metrics_file_endpoint(self, async_client: AsyncF ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" dpo_job = await response.parse() assert_matches_type(DpoJobGetMetricsFileEndpointResponse, dpo_job, path=["response"]) @@ -690,7 +688,7 @@ async def test_streaming_response_get_metrics_file_endpoint(self, async_client: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" dpo_job = await response.parse() assert_matches_type(DpoJobGetMetricsFileEndpointResponse, dpo_job, path=["response"]) @@ -732,7 +730,7 @@ async def test_raw_response_resume(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" dpo_job = await response.parse() assert_matches_type(DpoJob, dpo_job, path=["response"]) @@ -745,7 +743,7 @@ async def test_streaming_response_resume(self, async_client: AsyncFireworks) -> body={}, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" dpo_job = await response.parse() assert_matches_type(DpoJob, dpo_job, path=["response"]) diff --git a/tests/api_resources/test_evaluation_jobs.py b/tests/api_resources/test_evaluation_jobs.py index 46d010fb..0a59b733 100644 --- a/tests/api_resources/test_evaluation_jobs.py +++ b/tests/api_resources/test_evaluation_jobs.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations import os @@ -70,7 +68,7 @@ def test_raw_response_create(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" evaluation_job = response.parse() assert_matches_type(EvaluationJobCreateResponse, evaluation_job, path=["response"]) @@ -86,7 +84,7 @@ def test_streaming_response_create(self, client: Fireworks) -> None: }, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" evaluation_job = response.parse() assert_matches_type(EvaluationJobCreateResponse, evaluation_job, path=["response"]) @@ -135,7 +133,7 @@ def test_raw_response_list(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" evaluation_job = response.parse() assert_matches_type(SyncCursorEvaluationJobs[EvaluationJobListResponse], evaluation_job, path=["response"]) @@ -146,7 +144,7 @@ def test_streaming_response_list(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" evaluation_job = response.parse() assert_matches_type(SyncCursorEvaluationJobs[EvaluationJobListResponse], evaluation_job, path=["response"]) @@ -179,7 +177,7 @@ def test_raw_response_delete(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" evaluation_job = response.parse() assert_matches_type(object, evaluation_job, path=["response"]) @@ -191,7 +189,7 @@ def test_streaming_response_delete(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" evaluation_job = response.parse() assert_matches_type(object, evaluation_job, path=["response"]) @@ -241,7 +239,7 @@ def test_raw_response_get(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" evaluation_job = response.parse() assert_matches_type(EvaluationJobGetResponse, evaluation_job, path=["response"]) @@ -253,7 +251,7 @@ def test_streaming_response_get(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" evaluation_job = response.parse() assert_matches_type(EvaluationJobGetResponse, evaluation_job, path=["response"]) @@ -293,7 +291,7 @@ def test_raw_response_get_log_endpoint(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" evaluation_job = response.parse() assert_matches_type(EvaluationJobGetLogEndpointResponse, evaluation_job, path=["response"]) @@ -305,7 +303,7 @@ def test_streaming_response_get_log_endpoint(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" evaluation_job = response.parse() assert_matches_type(EvaluationJobGetLogEndpointResponse, evaluation_job, path=["response"]) @@ -380,7 +378,7 @@ async def test_raw_response_create(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" evaluation_job = await response.parse() assert_matches_type(EvaluationJobCreateResponse, evaluation_job, path=["response"]) @@ -396,7 +394,7 @@ async def test_streaming_response_create(self, async_client: AsyncFireworks) -> }, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" evaluation_job = await response.parse() assert_matches_type(EvaluationJobCreateResponse, evaluation_job, path=["response"]) @@ -445,7 +443,7 @@ async def test_raw_response_list(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" evaluation_job = await response.parse() assert_matches_type(AsyncCursorEvaluationJobs[EvaluationJobListResponse], evaluation_job, path=["response"]) @@ -456,7 +454,7 @@ async def test_streaming_response_list(self, async_client: AsyncFireworks) -> No account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" evaluation_job = await response.parse() assert_matches_type(AsyncCursorEvaluationJobs[EvaluationJobListResponse], evaluation_job, path=["response"]) @@ -489,7 +487,7 @@ async def test_raw_response_delete(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" evaluation_job = await response.parse() assert_matches_type(object, evaluation_job, path=["response"]) @@ -501,7 +499,7 @@ async def test_streaming_response_delete(self, async_client: AsyncFireworks) -> account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" evaluation_job = await response.parse() assert_matches_type(object, evaluation_job, path=["response"]) @@ -551,7 +549,7 @@ async def test_raw_response_get(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" evaluation_job = await response.parse() assert_matches_type(EvaluationJobGetResponse, evaluation_job, path=["response"]) @@ -563,7 +561,7 @@ async def test_streaming_response_get(self, async_client: AsyncFireworks) -> Non account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" evaluation_job = await response.parse() assert_matches_type(EvaluationJobGetResponse, evaluation_job, path=["response"]) @@ -603,7 +601,7 @@ async def test_raw_response_get_log_endpoint(self, async_client: AsyncFireworks) ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" evaluation_job = await response.parse() assert_matches_type(EvaluationJobGetLogEndpointResponse, evaluation_job, path=["response"]) @@ -615,7 +613,7 @@ async def test_streaming_response_get_log_endpoint(self, async_client: AsyncFire account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" evaluation_job = await response.parse() assert_matches_type(EvaluationJobGetLogEndpointResponse, evaluation_job, path=["response"]) diff --git a/tests/api_resources/test_evaluators.py b/tests/api_resources/test_evaluators.py index 76c09207..4801d797 100644 --- a/tests/api_resources/test_evaluators.py +++ b/tests/api_resources/test_evaluators.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations import os @@ -78,7 +76,7 @@ def test_raw_response_create(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" evaluator = response.parse() assert_matches_type(EvaluatorCreateResponse, evaluator, path=["response"]) @@ -90,7 +88,7 @@ def test_streaming_response_create(self, client: Fireworks) -> None: evaluator={}, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" evaluator = response.parse() assert_matches_type(EvaluatorCreateResponse, evaluator, path=["response"]) @@ -157,7 +155,7 @@ def test_raw_response_update(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" evaluator = response.parse() assert_matches_type(EvaluatorUpdateResponse, evaluator, path=["response"]) @@ -169,7 +167,7 @@ def test_streaming_response_update(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" evaluator = response.parse() assert_matches_type(EvaluatorUpdateResponse, evaluator, path=["response"]) @@ -220,7 +218,7 @@ def test_raw_response_list(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" evaluator = response.parse() assert_matches_type(SyncCursorEvaluators[EvaluatorListResponse], evaluator, path=["response"]) @@ -231,7 +229,7 @@ def test_streaming_response_list(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" evaluator = response.parse() assert_matches_type(SyncCursorEvaluators[EvaluatorListResponse], evaluator, path=["response"]) @@ -264,7 +262,7 @@ def test_raw_response_delete(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" evaluator = response.parse() assert_matches_type(object, evaluator, path=["response"]) @@ -276,7 +274,7 @@ def test_streaming_response_delete(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" evaluator = response.parse() assert_matches_type(object, evaluator, path=["response"]) @@ -326,7 +324,7 @@ def test_raw_response_get(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" evaluator = response.parse() assert_matches_type(EvaluatorGetResponse, evaluator, path=["response"]) @@ -338,7 +336,7 @@ def test_streaming_response_get(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" evaluator = response.parse() assert_matches_type(EvaluatorGetResponse, evaluator, path=["response"]) @@ -388,7 +386,7 @@ def test_raw_response_get_build_log_endpoint(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" evaluator = response.parse() assert_matches_type(EvaluatorGetBuildLogEndpointResponse, evaluator, path=["response"]) @@ -400,7 +398,7 @@ def test_streaming_response_get_build_log_endpoint(self, client: Fireworks) -> N account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" evaluator = response.parse() assert_matches_type(EvaluatorGetBuildLogEndpointResponse, evaluator, path=["response"]) @@ -450,7 +448,7 @@ def test_raw_response_get_source_code_endpoint(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" evaluator = response.parse() assert_matches_type(EvaluatorGetSourceCodeEndpointResponse, evaluator, path=["response"]) @@ -462,7 +460,7 @@ def test_streaming_response_get_source_code_endpoint(self, client: Fireworks) -> account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" evaluator = response.parse() assert_matches_type(EvaluatorGetSourceCodeEndpointResponse, evaluator, path=["response"]) @@ -515,7 +513,7 @@ def test_raw_response_get_upload_endpoint(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" evaluator = response.parse() assert_matches_type(EvaluatorGetUploadEndpointResponse, evaluator, path=["response"]) @@ -528,7 +526,7 @@ def test_streaming_response_get_upload_endpoint(self, client: Fireworks) -> None filename_to_size={"foo": "string"}, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" evaluator = response.parse() assert_matches_type(EvaluatorGetUploadEndpointResponse, evaluator, path=["response"]) @@ -572,7 +570,7 @@ def test_raw_response_validate_upload(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" evaluator = response.parse() assert_matches_type(object, evaluator, path=["response"]) @@ -585,7 +583,7 @@ def test_streaming_response_validate_upload(self, client: Fireworks) -> None: body={}, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" evaluator = response.parse() assert_matches_type(object, evaluator, path=["response"]) @@ -667,7 +665,7 @@ async def test_raw_response_create(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" evaluator = await response.parse() assert_matches_type(EvaluatorCreateResponse, evaluator, path=["response"]) @@ -679,7 +677,7 @@ async def test_streaming_response_create(self, async_client: AsyncFireworks) -> evaluator={}, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" evaluator = await response.parse() assert_matches_type(EvaluatorCreateResponse, evaluator, path=["response"]) @@ -746,7 +744,7 @@ async def test_raw_response_update(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" evaluator = await response.parse() assert_matches_type(EvaluatorUpdateResponse, evaluator, path=["response"]) @@ -758,7 +756,7 @@ async def test_streaming_response_update(self, async_client: AsyncFireworks) -> account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" evaluator = await response.parse() assert_matches_type(EvaluatorUpdateResponse, evaluator, path=["response"]) @@ -809,7 +807,7 @@ async def test_raw_response_list(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" evaluator = await response.parse() assert_matches_type(AsyncCursorEvaluators[EvaluatorListResponse], evaluator, path=["response"]) @@ -820,7 +818,7 @@ async def test_streaming_response_list(self, async_client: AsyncFireworks) -> No account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" evaluator = await response.parse() assert_matches_type(AsyncCursorEvaluators[EvaluatorListResponse], evaluator, path=["response"]) @@ -853,7 +851,7 @@ async def test_raw_response_delete(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" evaluator = await response.parse() assert_matches_type(object, evaluator, path=["response"]) @@ -865,7 +863,7 @@ async def test_streaming_response_delete(self, async_client: AsyncFireworks) -> account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" evaluator = await response.parse() assert_matches_type(object, evaluator, path=["response"]) @@ -915,7 +913,7 @@ async def test_raw_response_get(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" evaluator = await response.parse() assert_matches_type(EvaluatorGetResponse, evaluator, path=["response"]) @@ -927,7 +925,7 @@ async def test_streaming_response_get(self, async_client: AsyncFireworks) -> Non account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" evaluator = await response.parse() assert_matches_type(EvaluatorGetResponse, evaluator, path=["response"]) @@ -977,7 +975,7 @@ async def test_raw_response_get_build_log_endpoint(self, async_client: AsyncFire ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" evaluator = await response.parse() assert_matches_type(EvaluatorGetBuildLogEndpointResponse, evaluator, path=["response"]) @@ -989,7 +987,7 @@ async def test_streaming_response_get_build_log_endpoint(self, async_client: Asy account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" evaluator = await response.parse() assert_matches_type(EvaluatorGetBuildLogEndpointResponse, evaluator, path=["response"]) @@ -1039,7 +1037,7 @@ async def test_raw_response_get_source_code_endpoint(self, async_client: AsyncFi ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" evaluator = await response.parse() assert_matches_type(EvaluatorGetSourceCodeEndpointResponse, evaluator, path=["response"]) @@ -1051,7 +1049,7 @@ async def test_streaming_response_get_source_code_endpoint(self, async_client: A account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" evaluator = await response.parse() assert_matches_type(EvaluatorGetSourceCodeEndpointResponse, evaluator, path=["response"]) @@ -1104,7 +1102,7 @@ async def test_raw_response_get_upload_endpoint(self, async_client: AsyncFirewor ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" evaluator = await response.parse() assert_matches_type(EvaluatorGetUploadEndpointResponse, evaluator, path=["response"]) @@ -1117,7 +1115,7 @@ async def test_streaming_response_get_upload_endpoint(self, async_client: AsyncF filename_to_size={"foo": "string"}, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" evaluator = await response.parse() assert_matches_type(EvaluatorGetUploadEndpointResponse, evaluator, path=["response"]) @@ -1161,7 +1159,7 @@ async def test_raw_response_validate_upload(self, async_client: AsyncFireworks) ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" evaluator = await response.parse() assert_matches_type(object, evaluator, path=["response"]) @@ -1174,7 +1172,7 @@ async def test_streaming_response_validate_upload(self, async_client: AsyncFirew body={}, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" evaluator = await response.parse() assert_matches_type(object, evaluator, path=["response"]) diff --git a/tests/api_resources/test_lora.py b/tests/api_resources/test_lora.py index c141e19c..5443d63e 100644 --- a/tests/api_resources/test_lora.py +++ b/tests/api_resources/test_lora.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations import os @@ -52,7 +50,7 @@ def test_raw_response_update(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" lora = response.parse() assert_matches_type(DeployedModel, lora, path=["response"]) @@ -64,7 +62,7 @@ def test_streaming_response_update(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" lora = response.parse() assert_matches_type(DeployedModel, lora, path=["response"]) @@ -115,7 +113,7 @@ def test_raw_response_list(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" lora = response.parse() assert_matches_type(SyncCursorLora[DeployedModel], lora, path=["response"]) @@ -126,7 +124,7 @@ def test_streaming_response_list(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" lora = response.parse() assert_matches_type(SyncCursorLora[DeployedModel], lora, path=["response"]) @@ -169,7 +167,7 @@ def test_raw_response_get(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" lora = response.parse() assert_matches_type(DeployedModel, lora, path=["response"]) @@ -181,7 +179,7 @@ def test_streaming_response_get(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" lora = response.parse() assert_matches_type(DeployedModel, lora, path=["response"]) @@ -235,7 +233,7 @@ def test_raw_response_load(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" lora = response.parse() assert_matches_type(DeployedModel, lora, path=["response"]) @@ -246,7 +244,7 @@ def test_streaming_response_load(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" lora = response.parse() assert_matches_type(DeployedModel, lora, path=["response"]) @@ -279,7 +277,7 @@ def test_raw_response_unload(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" lora = response.parse() assert_matches_type(object, lora, path=["response"]) @@ -291,7 +289,7 @@ def test_streaming_response_unload(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" lora = response.parse() assert_matches_type(object, lora, path=["response"]) @@ -353,7 +351,7 @@ async def test_raw_response_update(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" lora = await response.parse() assert_matches_type(DeployedModel, lora, path=["response"]) @@ -365,7 +363,7 @@ async def test_streaming_response_update(self, async_client: AsyncFireworks) -> account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" lora = await response.parse() assert_matches_type(DeployedModel, lora, path=["response"]) @@ -416,7 +414,7 @@ async def test_raw_response_list(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" lora = await response.parse() assert_matches_type(AsyncCursorLora[DeployedModel], lora, path=["response"]) @@ -427,7 +425,7 @@ async def test_streaming_response_list(self, async_client: AsyncFireworks) -> No account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" lora = await response.parse() assert_matches_type(AsyncCursorLora[DeployedModel], lora, path=["response"]) @@ -470,7 +468,7 @@ async def test_raw_response_get(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" lora = await response.parse() assert_matches_type(DeployedModel, lora, path=["response"]) @@ -482,7 +480,7 @@ async def test_streaming_response_get(self, async_client: AsyncFireworks) -> Non account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" lora = await response.parse() assert_matches_type(DeployedModel, lora, path=["response"]) @@ -536,7 +534,7 @@ async def test_raw_response_load(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" lora = await response.parse() assert_matches_type(DeployedModel, lora, path=["response"]) @@ -547,7 +545,7 @@ async def test_streaming_response_load(self, async_client: AsyncFireworks) -> No account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" lora = await response.parse() assert_matches_type(DeployedModel, lora, path=["response"]) @@ -580,7 +578,7 @@ async def test_raw_response_unload(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" lora = await response.parse() assert_matches_type(object, lora, path=["response"]) @@ -592,7 +590,7 @@ async def test_streaming_response_unload(self, async_client: AsyncFireworks) -> account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" lora = await response.parse() assert_matches_type(object, lora, path=["response"]) diff --git a/tests/api_resources/test_messages.py b/tests/api_resources/test_messages.py index 6a363c33..f974cc42 100644 --- a/tests/api_resources/test_messages.py +++ b/tests/api_resources/test_messages.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations import os @@ -118,7 +116,7 @@ def test_raw_response_create(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" message = response.parse() assert_matches_type(MessageCreateResponse, message, path=["response"]) @@ -135,7 +133,7 @@ def test_streaming_response_create(self, client: Fireworks) -> None: model="claude-opus-4-6", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" message = response.parse() assert_matches_type(MessageCreateResponse, message, path=["response"]) @@ -249,7 +247,7 @@ async def test_raw_response_create(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" message = await response.parse() assert_matches_type(MessageCreateResponse, message, path=["response"]) @@ -266,7 +264,7 @@ async def test_streaming_response_create(self, async_client: AsyncFireworks) -> model="claude-opus-4-6", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" message = await response.parse() assert_matches_type(MessageCreateResponse, message, path=["response"]) diff --git a/tests/api_resources/test_models.py b/tests/api_resources/test_models.py index fceaf0f7..6c111ee5 100644 --- a/tests/api_resources/test_models.py +++ b/tests/api_resources/test_models.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations import os @@ -95,7 +93,7 @@ def test_raw_response_create(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" model = response.parse() assert_matches_type(Model, model, path=["response"]) @@ -107,7 +105,7 @@ def test_streaming_response_create(self, client: Fireworks) -> None: model_id="modelId", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" model = response.parse() assert_matches_type(Model, model, path=["response"]) @@ -192,7 +190,7 @@ def test_raw_response_update(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" model = response.parse() assert_matches_type(Model, model, path=["response"]) @@ -204,7 +202,7 @@ def test_streaming_response_update(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" model = response.parse() assert_matches_type(Model, model, path=["response"]) @@ -255,7 +253,7 @@ def test_raw_response_list(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" model = response.parse() assert_matches_type(SyncCursorModels[Model], model, path=["response"]) @@ -266,7 +264,7 @@ def test_streaming_response_list(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" model = response.parse() assert_matches_type(SyncCursorModels[Model], model, path=["response"]) @@ -299,7 +297,7 @@ def test_raw_response_delete(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" model = response.parse() assert_matches_type(object, model, path=["response"]) @@ -311,7 +309,7 @@ def test_streaming_response_delete(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" model = response.parse() assert_matches_type(object, model, path=["response"]) @@ -361,7 +359,7 @@ def test_raw_response_get(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" model = response.parse() assert_matches_type(Model, model, path=["response"]) @@ -373,7 +371,7 @@ def test_streaming_response_get(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" model = response.parse() assert_matches_type(Model, model, path=["response"]) @@ -423,7 +421,7 @@ def test_raw_response_get_download_endpoint(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" model = response.parse() assert_matches_type(ModelGetDownloadEndpointResponse, model, path=["response"]) @@ -435,7 +433,7 @@ def test_streaming_response_get_download_endpoint(self, client: Fireworks) -> No account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" model = response.parse() assert_matches_type(ModelGetDownloadEndpointResponse, model, path=["response"]) @@ -489,7 +487,7 @@ def test_raw_response_get_upload_endpoint(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" model = response.parse() assert_matches_type(ModelGetUploadEndpointResponse, model, path=["response"]) @@ -502,7 +500,7 @@ def test_streaming_response_get_upload_endpoint(self, client: Fireworks) -> None filename_to_size={"foo": "string"}, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" model = response.parse() assert_matches_type(ModelGetUploadEndpointResponse, model, path=["response"]) @@ -555,7 +553,7 @@ def test_raw_response_prepare(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" model = response.parse() assert_matches_type(object, model, path=["response"]) @@ -567,7 +565,7 @@ def test_streaming_response_prepare(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" model = response.parse() assert_matches_type(object, model, path=["response"]) @@ -619,7 +617,7 @@ def test_raw_response_validate_upload(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" model = response.parse() assert_matches_type(ModelValidateUploadResponse, model, path=["response"]) @@ -631,7 +629,7 @@ def test_streaming_response_validate_upload(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" model = response.parse() assert_matches_type(ModelValidateUploadResponse, model, path=["response"]) @@ -731,7 +729,7 @@ async def test_raw_response_create(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" model = await response.parse() assert_matches_type(Model, model, path=["response"]) @@ -743,7 +741,7 @@ async def test_streaming_response_create(self, async_client: AsyncFireworks) -> model_id="modelId", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" model = await response.parse() assert_matches_type(Model, model, path=["response"]) @@ -828,7 +826,7 @@ async def test_raw_response_update(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" model = await response.parse() assert_matches_type(Model, model, path=["response"]) @@ -840,7 +838,7 @@ async def test_streaming_response_update(self, async_client: AsyncFireworks) -> account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" model = await response.parse() assert_matches_type(Model, model, path=["response"]) @@ -891,7 +889,7 @@ async def test_raw_response_list(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" model = await response.parse() assert_matches_type(AsyncCursorModels[Model], model, path=["response"]) @@ -902,7 +900,7 @@ async def test_streaming_response_list(self, async_client: AsyncFireworks) -> No account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" model = await response.parse() assert_matches_type(AsyncCursorModels[Model], model, path=["response"]) @@ -935,7 +933,7 @@ async def test_raw_response_delete(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" model = await response.parse() assert_matches_type(object, model, path=["response"]) @@ -947,7 +945,7 @@ async def test_streaming_response_delete(self, async_client: AsyncFireworks) -> account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" model = await response.parse() assert_matches_type(object, model, path=["response"]) @@ -997,7 +995,7 @@ async def test_raw_response_get(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" model = await response.parse() assert_matches_type(Model, model, path=["response"]) @@ -1009,7 +1007,7 @@ async def test_streaming_response_get(self, async_client: AsyncFireworks) -> Non account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" model = await response.parse() assert_matches_type(Model, model, path=["response"]) @@ -1059,7 +1057,7 @@ async def test_raw_response_get_download_endpoint(self, async_client: AsyncFirew ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" model = await response.parse() assert_matches_type(ModelGetDownloadEndpointResponse, model, path=["response"]) @@ -1071,7 +1069,7 @@ async def test_streaming_response_get_download_endpoint(self, async_client: Asyn account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" model = await response.parse() assert_matches_type(ModelGetDownloadEndpointResponse, model, path=["response"]) @@ -1125,7 +1123,7 @@ async def test_raw_response_get_upload_endpoint(self, async_client: AsyncFirewor ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" model = await response.parse() assert_matches_type(ModelGetUploadEndpointResponse, model, path=["response"]) @@ -1138,7 +1136,7 @@ async def test_streaming_response_get_upload_endpoint(self, async_client: AsyncF filename_to_size={"foo": "string"}, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" model = await response.parse() assert_matches_type(ModelGetUploadEndpointResponse, model, path=["response"]) @@ -1191,7 +1189,7 @@ async def test_raw_response_prepare(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" model = await response.parse() assert_matches_type(object, model, path=["response"]) @@ -1203,7 +1201,7 @@ async def test_streaming_response_prepare(self, async_client: AsyncFireworks) -> account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" model = await response.parse() assert_matches_type(object, model, path=["response"]) @@ -1255,7 +1253,7 @@ async def test_raw_response_validate_upload(self, async_client: AsyncFireworks) ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" model = await response.parse() assert_matches_type(ModelValidateUploadResponse, model, path=["response"]) @@ -1267,7 +1265,7 @@ async def test_streaming_response_validate_upload(self, async_client: AsyncFirew account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" model = await response.parse() assert_matches_type(ModelValidateUploadResponse, model, path=["response"]) diff --git a/tests/api_resources/test_reinforcement_fine_tuning_jobs.py b/tests/api_resources/test_reinforcement_fine_tuning_jobs.py index 0ce08d65..39e9baeb 100644 --- a/tests/api_resources/test_reinforcement_fine_tuning_jobs.py +++ b/tests/api_resources/test_reinforcement_fine_tuning_jobs.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations import os @@ -104,7 +102,7 @@ def test_raw_response_create(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" reinforcement_fine_tuning_job = response.parse() assert_matches_type(ReinforcementFineTuningJob, reinforcement_fine_tuning_job, path=["response"]) @@ -117,7 +115,7 @@ def test_streaming_response_create(self, client: Fireworks) -> None: evaluator="evaluator", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" reinforcement_fine_tuning_job = response.parse() assert_matches_type(ReinforcementFineTuningJob, reinforcement_fine_tuning_job, path=["response"]) @@ -171,7 +169,7 @@ def test_raw_response_list(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" reinforcement_fine_tuning_job = response.parse() assert_matches_type( SyncCursorReinforcementFineTuningJobs[ReinforcementFineTuningJob], @@ -186,7 +184,7 @@ def test_streaming_response_list(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" reinforcement_fine_tuning_job = response.parse() assert_matches_type( @@ -223,7 +221,7 @@ def test_raw_response_delete(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" reinforcement_fine_tuning_job = response.parse() assert_matches_type(object, reinforcement_fine_tuning_job, path=["response"]) @@ -235,7 +233,7 @@ def test_streaming_response_delete(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" reinforcement_fine_tuning_job = response.parse() assert_matches_type(object, reinforcement_fine_tuning_job, path=["response"]) @@ -279,7 +277,7 @@ def test_raw_response_cancel(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" reinforcement_fine_tuning_job = response.parse() assert_matches_type(object, reinforcement_fine_tuning_job, path=["response"]) @@ -292,7 +290,7 @@ def test_streaming_response_cancel(self, client: Fireworks) -> None: body={}, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" reinforcement_fine_tuning_job = response.parse() assert_matches_type(object, reinforcement_fine_tuning_job, path=["response"]) @@ -346,7 +344,7 @@ def test_raw_response_get(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" reinforcement_fine_tuning_job = response.parse() assert_matches_type(ReinforcementFineTuningJob, reinforcement_fine_tuning_job, path=["response"]) @@ -358,7 +356,7 @@ def test_streaming_response_get(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" reinforcement_fine_tuning_job = response.parse() assert_matches_type(ReinforcementFineTuningJob, reinforcement_fine_tuning_job, path=["response"]) @@ -402,7 +400,7 @@ def test_raw_response_resume(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" reinforcement_fine_tuning_job = response.parse() assert_matches_type(ReinforcementFineTuningJob, reinforcement_fine_tuning_job, path=["response"]) @@ -415,7 +413,7 @@ def test_streaming_response_resume(self, client: Fireworks) -> None: body={}, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" reinforcement_fine_tuning_job = response.parse() assert_matches_type(ReinforcementFineTuningJob, reinforcement_fine_tuning_job, path=["response"]) @@ -531,7 +529,7 @@ async def test_raw_response_create(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" reinforcement_fine_tuning_job = await response.parse() assert_matches_type(ReinforcementFineTuningJob, reinforcement_fine_tuning_job, path=["response"]) @@ -544,7 +542,7 @@ async def test_streaming_response_create(self, async_client: AsyncFireworks) -> evaluator="evaluator", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" reinforcement_fine_tuning_job = await response.parse() assert_matches_type(ReinforcementFineTuningJob, reinforcement_fine_tuning_job, path=["response"]) @@ -598,7 +596,7 @@ async def test_raw_response_list(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" reinforcement_fine_tuning_job = await response.parse() assert_matches_type( AsyncCursorReinforcementFineTuningJobs[ReinforcementFineTuningJob], @@ -613,7 +611,7 @@ async def test_streaming_response_list(self, async_client: AsyncFireworks) -> No account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" reinforcement_fine_tuning_job = await response.parse() assert_matches_type( @@ -650,7 +648,7 @@ async def test_raw_response_delete(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" reinforcement_fine_tuning_job = await response.parse() assert_matches_type(object, reinforcement_fine_tuning_job, path=["response"]) @@ -662,7 +660,7 @@ async def test_streaming_response_delete(self, async_client: AsyncFireworks) -> account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" reinforcement_fine_tuning_job = await response.parse() assert_matches_type(object, reinforcement_fine_tuning_job, path=["response"]) @@ -706,7 +704,7 @@ async def test_raw_response_cancel(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" reinforcement_fine_tuning_job = await response.parse() assert_matches_type(object, reinforcement_fine_tuning_job, path=["response"]) @@ -719,7 +717,7 @@ async def test_streaming_response_cancel(self, async_client: AsyncFireworks) -> body={}, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" reinforcement_fine_tuning_job = await response.parse() assert_matches_type(object, reinforcement_fine_tuning_job, path=["response"]) @@ -773,7 +771,7 @@ async def test_raw_response_get(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" reinforcement_fine_tuning_job = await response.parse() assert_matches_type(ReinforcementFineTuningJob, reinforcement_fine_tuning_job, path=["response"]) @@ -785,7 +783,7 @@ async def test_streaming_response_get(self, async_client: AsyncFireworks) -> Non account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" reinforcement_fine_tuning_job = await response.parse() assert_matches_type(ReinforcementFineTuningJob, reinforcement_fine_tuning_job, path=["response"]) @@ -829,7 +827,7 @@ async def test_raw_response_resume(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" reinforcement_fine_tuning_job = await response.parse() assert_matches_type(ReinforcementFineTuningJob, reinforcement_fine_tuning_job, path=["response"]) @@ -842,7 +840,7 @@ async def test_streaming_response_resume(self, async_client: AsyncFireworks) -> body={}, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" reinforcement_fine_tuning_job = await response.parse() assert_matches_type(ReinforcementFineTuningJob, reinforcement_fine_tuning_job, path=["response"]) diff --git a/tests/api_resources/test_reinforcement_fine_tuning_steps.py b/tests/api_resources/test_reinforcement_fine_tuning_steps.py index 35195872..f774f2c6 100644 --- a/tests/api_resources/test_reinforcement_fine_tuning_steps.py +++ b/tests/api_resources/test_reinforcement_fine_tuning_steps.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations import os @@ -93,7 +91,7 @@ def test_raw_response_create(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" reinforcement_fine_tuning_step = response.parse() assert_matches_type(ReinforcementFineTuningStep, reinforcement_fine_tuning_step, path=["response"]) @@ -104,7 +102,7 @@ def test_streaming_response_create(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" reinforcement_fine_tuning_step = response.parse() assert_matches_type(ReinforcementFineTuningStep, reinforcement_fine_tuning_step, path=["response"]) @@ -156,7 +154,7 @@ def test_raw_response_list(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" reinforcement_fine_tuning_step = response.parse() assert_matches_type( SyncCursorReinforcementFineTuningSteps[ReinforcementFineTuningStep], @@ -171,7 +169,7 @@ def test_streaming_response_list(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" reinforcement_fine_tuning_step = response.parse() assert_matches_type( @@ -208,7 +206,7 @@ def test_raw_response_delete(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" reinforcement_fine_tuning_step = response.parse() assert_matches_type(object, reinforcement_fine_tuning_step, path=["response"]) @@ -220,7 +218,7 @@ def test_streaming_response_delete(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" reinforcement_fine_tuning_step = response.parse() assert_matches_type(object, reinforcement_fine_tuning_step, path=["response"]) @@ -264,7 +262,7 @@ def test_raw_response_execute(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" reinforcement_fine_tuning_step = response.parse() assert_matches_type(object, reinforcement_fine_tuning_step, path=["response"]) @@ -278,7 +276,7 @@ def test_streaming_response_execute(self, client: Fireworks) -> None: output_model="outputModel", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" reinforcement_fine_tuning_step = response.parse() assert_matches_type(object, reinforcement_fine_tuning_step, path=["response"]) @@ -332,7 +330,7 @@ def test_raw_response_get(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" reinforcement_fine_tuning_step = response.parse() assert_matches_type(ReinforcementFineTuningStep, reinforcement_fine_tuning_step, path=["response"]) @@ -344,7 +342,7 @@ def test_streaming_response_get(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" reinforcement_fine_tuning_step = response.parse() assert_matches_type(ReinforcementFineTuningStep, reinforcement_fine_tuning_step, path=["response"]) @@ -386,7 +384,7 @@ def test_raw_response_resume(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" reinforcement_fine_tuning_step = response.parse() assert_matches_type(ReinforcementFineTuningStep, reinforcement_fine_tuning_step, path=["response"]) @@ -399,7 +397,7 @@ def test_streaming_response_resume(self, client: Fireworks) -> None: body={}, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" reinforcement_fine_tuning_step = response.parse() assert_matches_type(ReinforcementFineTuningStep, reinforcement_fine_tuning_step, path=["response"]) @@ -502,7 +500,7 @@ async def test_raw_response_create(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" reinforcement_fine_tuning_step = await response.parse() assert_matches_type(ReinforcementFineTuningStep, reinforcement_fine_tuning_step, path=["response"]) @@ -513,7 +511,7 @@ async def test_streaming_response_create(self, async_client: AsyncFireworks) -> account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" reinforcement_fine_tuning_step = await response.parse() assert_matches_type(ReinforcementFineTuningStep, reinforcement_fine_tuning_step, path=["response"]) @@ -565,7 +563,7 @@ async def test_raw_response_list(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" reinforcement_fine_tuning_step = await response.parse() assert_matches_type( AsyncCursorReinforcementFineTuningSteps[ReinforcementFineTuningStep], @@ -580,7 +578,7 @@ async def test_streaming_response_list(self, async_client: AsyncFireworks) -> No account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" reinforcement_fine_tuning_step = await response.parse() assert_matches_type( @@ -617,7 +615,7 @@ async def test_raw_response_delete(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" reinforcement_fine_tuning_step = await response.parse() assert_matches_type(object, reinforcement_fine_tuning_step, path=["response"]) @@ -629,7 +627,7 @@ async def test_streaming_response_delete(self, async_client: AsyncFireworks) -> account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" reinforcement_fine_tuning_step = await response.parse() assert_matches_type(object, reinforcement_fine_tuning_step, path=["response"]) @@ -673,7 +671,7 @@ async def test_raw_response_execute(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" reinforcement_fine_tuning_step = await response.parse() assert_matches_type(object, reinforcement_fine_tuning_step, path=["response"]) @@ -687,7 +685,7 @@ async def test_streaming_response_execute(self, async_client: AsyncFireworks) -> output_model="outputModel", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" reinforcement_fine_tuning_step = await response.parse() assert_matches_type(object, reinforcement_fine_tuning_step, path=["response"]) @@ -741,7 +739,7 @@ async def test_raw_response_get(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" reinforcement_fine_tuning_step = await response.parse() assert_matches_type(ReinforcementFineTuningStep, reinforcement_fine_tuning_step, path=["response"]) @@ -753,7 +751,7 @@ async def test_streaming_response_get(self, async_client: AsyncFireworks) -> Non account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" reinforcement_fine_tuning_step = await response.parse() assert_matches_type(ReinforcementFineTuningStep, reinforcement_fine_tuning_step, path=["response"]) @@ -795,7 +793,7 @@ async def test_raw_response_resume(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" reinforcement_fine_tuning_step = await response.parse() assert_matches_type(ReinforcementFineTuningStep, reinforcement_fine_tuning_step, path=["response"]) @@ -808,7 +806,7 @@ async def test_streaming_response_resume(self, async_client: AsyncFireworks) -> body={}, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" reinforcement_fine_tuning_step = await response.parse() assert_matches_type(ReinforcementFineTuningStep, reinforcement_fine_tuning_step, path=["response"]) diff --git a/tests/api_resources/test_secrets.py b/tests/api_resources/test_secrets.py index fc4ead74..3f238934 100644 --- a/tests/api_resources/test_secrets.py +++ b/tests/api_resources/test_secrets.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations import os @@ -49,7 +47,7 @@ def test_raw_response_create(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" secret = response.parse() assert_matches_type(Secret, secret, path=["response"]) @@ -62,7 +60,7 @@ def test_streaming_response_create(self, client: Fireworks) -> None: name="name", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" secret = response.parse() assert_matches_type(Secret, secret, path=["response"]) @@ -110,7 +108,7 @@ def test_raw_response_update(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" secret = response.parse() assert_matches_type(Secret, secret, path=["response"]) @@ -123,7 +121,7 @@ def test_streaming_response_update(self, client: Fireworks) -> None: key_name="keyName", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" secret = response.parse() assert_matches_type(Secret, secret, path=["response"]) @@ -176,7 +174,7 @@ def test_raw_response_list(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" secret = response.parse() assert_matches_type(SyncCursorSecrets[Secret], secret, path=["response"]) @@ -187,7 +185,7 @@ def test_streaming_response_list(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" secret = response.parse() assert_matches_type(SyncCursorSecrets[Secret], secret, path=["response"]) @@ -220,7 +218,7 @@ def test_raw_response_delete(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" secret = response.parse() assert_matches_type(object, secret, path=["response"]) @@ -232,7 +230,7 @@ def test_streaming_response_delete(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" secret = response.parse() assert_matches_type(object, secret, path=["response"]) @@ -282,7 +280,7 @@ def test_raw_response_get(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" secret = response.parse() assert_matches_type(Secret, secret, path=["response"]) @@ -294,7 +292,7 @@ def test_streaming_response_get(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" secret = response.parse() assert_matches_type(Secret, secret, path=["response"]) @@ -353,7 +351,7 @@ async def test_raw_response_create(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" secret = await response.parse() assert_matches_type(Secret, secret, path=["response"]) @@ -366,7 +364,7 @@ async def test_streaming_response_create(self, async_client: AsyncFireworks) -> name="name", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" secret = await response.parse() assert_matches_type(Secret, secret, path=["response"]) @@ -414,7 +412,7 @@ async def test_raw_response_update(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" secret = await response.parse() assert_matches_type(Secret, secret, path=["response"]) @@ -427,7 +425,7 @@ async def test_streaming_response_update(self, async_client: AsyncFireworks) -> key_name="keyName", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" secret = await response.parse() assert_matches_type(Secret, secret, path=["response"]) @@ -480,7 +478,7 @@ async def test_raw_response_list(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" secret = await response.parse() assert_matches_type(AsyncCursorSecrets[Secret], secret, path=["response"]) @@ -491,7 +489,7 @@ async def test_streaming_response_list(self, async_client: AsyncFireworks) -> No account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" secret = await response.parse() assert_matches_type(AsyncCursorSecrets[Secret], secret, path=["response"]) @@ -524,7 +522,7 @@ async def test_raw_response_delete(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" secret = await response.parse() assert_matches_type(object, secret, path=["response"]) @@ -536,7 +534,7 @@ async def test_streaming_response_delete(self, async_client: AsyncFireworks) -> account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" secret = await response.parse() assert_matches_type(object, secret, path=["response"]) @@ -586,7 +584,7 @@ async def test_raw_response_get(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" secret = await response.parse() assert_matches_type(Secret, secret, path=["response"]) @@ -598,7 +596,7 @@ async def test_streaming_response_get(self, async_client: AsyncFireworks) -> Non account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" secret = await response.parse() assert_matches_type(Secret, secret, path=["response"]) diff --git a/tests/api_resources/test_supervised_fine_tuning_jobs.py b/tests/api_resources/test_supervised_fine_tuning_jobs.py index e816f8d2..d7dfe452 100644 --- a/tests/api_resources/test_supervised_fine_tuning_jobs.py +++ b/tests/api_resources/test_supervised_fine_tuning_jobs.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations import os @@ -89,7 +87,7 @@ def test_raw_response_create(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" supervised_fine_tuning_job = response.parse() assert_matches_type(SupervisedFineTuningJob, supervised_fine_tuning_job, path=["response"]) @@ -101,7 +99,7 @@ def test_streaming_response_create(self, client: Fireworks) -> None: dataset="dataset", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" supervised_fine_tuning_job = response.parse() assert_matches_type(SupervisedFineTuningJob, supervised_fine_tuning_job, path=["response"]) @@ -150,7 +148,7 @@ def test_raw_response_list(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" supervised_fine_tuning_job = response.parse() assert_matches_type( SyncCursorSupervisedFineTuningJobs[SupervisedFineTuningJob], supervised_fine_tuning_job, path=["response"] @@ -163,7 +161,7 @@ def test_streaming_response_list(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" supervised_fine_tuning_job = response.parse() assert_matches_type( @@ -200,7 +198,7 @@ def test_raw_response_delete(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" supervised_fine_tuning_job = response.parse() assert_matches_type(object, supervised_fine_tuning_job, path=["response"]) @@ -212,7 +210,7 @@ def test_streaming_response_delete(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" supervised_fine_tuning_job = response.parse() assert_matches_type(object, supervised_fine_tuning_job, path=["response"]) @@ -264,7 +262,7 @@ def test_raw_response_get(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" supervised_fine_tuning_job = response.parse() assert_matches_type(SupervisedFineTuningJob, supervised_fine_tuning_job, path=["response"]) @@ -276,7 +274,7 @@ def test_streaming_response_get(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" supervised_fine_tuning_job = response.parse() assert_matches_type(SupervisedFineTuningJob, supervised_fine_tuning_job, path=["response"]) @@ -320,7 +318,7 @@ def test_raw_response_resume(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" supervised_fine_tuning_job = response.parse() assert_matches_type(SupervisedFineTuningJob, supervised_fine_tuning_job, path=["response"]) @@ -333,7 +331,7 @@ def test_streaming_response_resume(self, client: Fireworks) -> None: body={}, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" supervised_fine_tuning_job = response.parse() assert_matches_type(SupervisedFineTuningJob, supervised_fine_tuning_job, path=["response"]) @@ -434,7 +432,7 @@ async def test_raw_response_create(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" supervised_fine_tuning_job = await response.parse() assert_matches_type(SupervisedFineTuningJob, supervised_fine_tuning_job, path=["response"]) @@ -446,7 +444,7 @@ async def test_streaming_response_create(self, async_client: AsyncFireworks) -> dataset="dataset", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" supervised_fine_tuning_job = await response.parse() assert_matches_type(SupervisedFineTuningJob, supervised_fine_tuning_job, path=["response"]) @@ -495,7 +493,7 @@ async def test_raw_response_list(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" supervised_fine_tuning_job = await response.parse() assert_matches_type( AsyncCursorSupervisedFineTuningJobs[SupervisedFineTuningJob], supervised_fine_tuning_job, path=["response"] @@ -508,7 +506,7 @@ async def test_streaming_response_list(self, async_client: AsyncFireworks) -> No account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" supervised_fine_tuning_job = await response.parse() assert_matches_type( @@ -545,7 +543,7 @@ async def test_raw_response_delete(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" supervised_fine_tuning_job = await response.parse() assert_matches_type(object, supervised_fine_tuning_job, path=["response"]) @@ -557,7 +555,7 @@ async def test_streaming_response_delete(self, async_client: AsyncFireworks) -> account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" supervised_fine_tuning_job = await response.parse() assert_matches_type(object, supervised_fine_tuning_job, path=["response"]) @@ -609,7 +607,7 @@ async def test_raw_response_get(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" supervised_fine_tuning_job = await response.parse() assert_matches_type(SupervisedFineTuningJob, supervised_fine_tuning_job, path=["response"]) @@ -621,7 +619,7 @@ async def test_streaming_response_get(self, async_client: AsyncFireworks) -> Non account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" supervised_fine_tuning_job = await response.parse() assert_matches_type(SupervisedFineTuningJob, supervised_fine_tuning_job, path=["response"]) @@ -665,7 +663,7 @@ async def test_raw_response_resume(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" supervised_fine_tuning_job = await response.parse() assert_matches_type(SupervisedFineTuningJob, supervised_fine_tuning_job, path=["response"]) @@ -678,7 +676,7 @@ async def test_streaming_response_resume(self, async_client: AsyncFireworks) -> body={}, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" supervised_fine_tuning_job = await response.parse() assert_matches_type(SupervisedFineTuningJob, supervised_fine_tuning_job, path=["response"]) diff --git a/tests/api_resources/test_users.py b/tests/api_resources/test_users.py index d1e94f59..1de0bd6b 100644 --- a/tests/api_resources/test_users.py +++ b/tests/api_resources/test_users.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations import os @@ -49,7 +47,7 @@ def test_raw_response_create(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" user = response.parse() assert_matches_type(User, user, path=["response"]) @@ -61,7 +59,7 @@ def test_streaming_response_create(self, client: Fireworks) -> None: role="role", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" user = response.parse() assert_matches_type(User, user, path=["response"]) @@ -110,7 +108,7 @@ def test_raw_response_update(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" user = response.parse() assert_matches_type(User, user, path=["response"]) @@ -123,7 +121,7 @@ def test_streaming_response_update(self, client: Fireworks) -> None: role="role", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" user = response.parse() assert_matches_type(User, user, path=["response"]) @@ -176,7 +174,7 @@ def test_raw_response_list(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" user = response.parse() assert_matches_type(SyncCursorUsers[User], user, path=["response"]) @@ -187,7 +185,7 @@ def test_streaming_response_list(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" user = response.parse() assert_matches_type(SyncCursorUsers[User], user, path=["response"]) @@ -230,7 +228,7 @@ def test_raw_response_get(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" user = response.parse() assert_matches_type(User, user, path=["response"]) @@ -242,7 +240,7 @@ def test_streaming_response_get(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" user = response.parse() assert_matches_type(User, user, path=["response"]) @@ -301,7 +299,7 @@ async def test_raw_response_create(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" user = await response.parse() assert_matches_type(User, user, path=["response"]) @@ -313,7 +311,7 @@ async def test_streaming_response_create(self, async_client: AsyncFireworks) -> role="role", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" user = await response.parse() assert_matches_type(User, user, path=["response"]) @@ -362,7 +360,7 @@ async def test_raw_response_update(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" user = await response.parse() assert_matches_type(User, user, path=["response"]) @@ -375,7 +373,7 @@ async def test_streaming_response_update(self, async_client: AsyncFireworks) -> role="role", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" user = await response.parse() assert_matches_type(User, user, path=["response"]) @@ -428,7 +426,7 @@ async def test_raw_response_list(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" user = await response.parse() assert_matches_type(AsyncCursorUsers[User], user, path=["response"]) @@ -439,7 +437,7 @@ async def test_streaming_response_list(self, async_client: AsyncFireworks) -> No account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" user = await response.parse() assert_matches_type(AsyncCursorUsers[User], user, path=["response"]) @@ -482,7 +480,7 @@ async def test_raw_response_get(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" user = await response.parse() assert_matches_type(User, user, path=["response"]) @@ -494,7 +492,7 @@ async def test_streaming_response_get(self, async_client: AsyncFireworks) -> Non account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" + assert response.http_request.headers.get("X-Fireworks-Lang") == "python" user = await response.parse() assert_matches_type(User, user, path=["response"]) diff --git a/tests/conftest.py b/tests/conftest.py index 993c3f92..7cb81d55 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations import os diff --git a/tests/test_client.py b/tests/test_client.py index c9871cc5..44a0e693 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -1,5 +1,3 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from __future__ import annotations import gc @@ -382,7 +380,7 @@ def test_default_headers_option(self) -> None: ) request = test_client._build_request(FinalRequestOptions(method="get", url="/foo")) assert request.headers.get("x-foo") == "bar" - assert request.headers.get("x-stainless-lang") == "python" + assert request.headers.get("x-fireworks-lang") == "python" test_client2 = Fireworks( base_url=base_url, @@ -390,12 +388,12 @@ def test_default_headers_option(self) -> None: _strict_response_validation=True, default_headers={ "X-Foo": "stainless", - "X-Stainless-Lang": "my-overriding-header", + "X-Fireworks-Lang": "my-overriding-header", }, ) request = test_client2._build_request(FinalRequestOptions(method="get", url="/foo")) assert request.headers.get("x-foo") == "stainless" - assert request.headers.get("x-stainless-lang") == "my-overriding-header" + assert request.headers.get("x-fireworks-lang") == "my-overriding-header" test_client.close() test_client2.close() @@ -938,7 +936,7 @@ def retry_handler(_request: httpx.Request) -> httpx.Response: response = client.chat.completions.with_raw_response.create(messages=[{"role": "role"}], model="model") assert response.retries_taken == failures_before_success - assert int(response.http_request.headers.get("x-stainless-retry-count")) == failures_before_success + assert int(response.http_request.headers.get("x-fireworks-retry-count")) == failures_before_success @pytest.mark.parametrize("failures_before_success", [0, 2, 4]) @mock.patch("fireworks._base_client.BaseClient._calculate_retry_timeout", _low_retry_timeout) @@ -960,10 +958,10 @@ def retry_handler(_request: httpx.Request) -> httpx.Response: respx_mock.post("/v1/chat/completions").mock(side_effect=retry_handler) response = client.chat.completions.with_raw_response.create( - messages=[{"role": "role"}], model="model", extra_headers={"x-stainless-retry-count": Omit()} + messages=[{"role": "role"}], model="model", extra_headers={"x-fireworks-retry-count": Omit()} ) - assert len(response.http_request.headers.get_list("x-stainless-retry-count")) == 0 + assert len(response.http_request.headers.get_list("x-fireworks-retry-count")) == 0 @pytest.mark.parametrize("failures_before_success", [0, 2, 4]) @mock.patch("fireworks._base_client.BaseClient._calculate_retry_timeout", _low_retry_timeout) @@ -985,10 +983,10 @@ def retry_handler(_request: httpx.Request) -> httpx.Response: respx_mock.post("/v1/chat/completions").mock(side_effect=retry_handler) response = client.chat.completions.with_raw_response.create( - messages=[{"role": "role"}], model="model", extra_headers={"x-stainless-retry-count": "42"} + messages=[{"role": "role"}], model="model", extra_headers={"x-fireworks-retry-count": "42"} ) - assert response.http_request.headers.get("x-stainless-retry-count") == "42" + assert response.http_request.headers.get("x-fireworks-retry-count") == "42" def test_proxy_environment_variables(self, monkeypatch: pytest.MonkeyPatch) -> None: # Test that the proxy environment variables are set correctly @@ -1318,7 +1316,7 @@ async def test_default_headers_option(self) -> None: ) request = test_client._build_request(FinalRequestOptions(method="get", url="/foo")) assert request.headers.get("x-foo") == "bar" - assert request.headers.get("x-stainless-lang") == "python" + assert request.headers.get("x-fireworks-lang") == "python" test_client2 = AsyncFireworks( base_url=base_url, @@ -1326,12 +1324,12 @@ async def test_default_headers_option(self) -> None: _strict_response_validation=True, default_headers={ "X-Foo": "stainless", - "X-Stainless-Lang": "my-overriding-header", + "X-Fireworks-Lang": "my-overriding-header", }, ) request = test_client2._build_request(FinalRequestOptions(method="get", url="/foo")) assert request.headers.get("x-foo") == "stainless" - assert request.headers.get("x-stainless-lang") == "my-overriding-header" + assert request.headers.get("x-fireworks-lang") == "my-overriding-header" await test_client.close() await test_client2.close() @@ -1899,7 +1897,7 @@ def retry_handler(_request: httpx.Request) -> httpx.Response: response = await client.chat.completions.with_raw_response.create(messages=[{"role": "role"}], model="model") assert response.retries_taken == failures_before_success - assert int(response.http_request.headers.get("x-stainless-retry-count")) == failures_before_success + assert int(response.http_request.headers.get("x-fireworks-retry-count")) == failures_before_success @pytest.mark.parametrize("failures_before_success", [0, 2, 4]) @mock.patch("fireworks._base_client.BaseClient._calculate_retry_timeout", _low_retry_timeout) @@ -1921,10 +1919,10 @@ def retry_handler(_request: httpx.Request) -> httpx.Response: respx_mock.post("/v1/chat/completions").mock(side_effect=retry_handler) response = await client.chat.completions.with_raw_response.create( - messages=[{"role": "role"}], model="model", extra_headers={"x-stainless-retry-count": Omit()} + messages=[{"role": "role"}], model="model", extra_headers={"x-fireworks-retry-count": Omit()} ) - assert len(response.http_request.headers.get_list("x-stainless-retry-count")) == 0 + assert len(response.http_request.headers.get_list("x-fireworks-retry-count")) == 0 @pytest.mark.parametrize("failures_before_success", [0, 2, 4]) @mock.patch("fireworks._base_client.BaseClient._calculate_retry_timeout", _low_retry_timeout) @@ -1946,10 +1944,10 @@ def retry_handler(_request: httpx.Request) -> httpx.Response: respx_mock.post("/v1/chat/completions").mock(side_effect=retry_handler) response = await client.chat.completions.with_raw_response.create( - messages=[{"role": "role"}], model="model", extra_headers={"x-stainless-retry-count": "42"} + messages=[{"role": "role"}], model="model", extra_headers={"x-fireworks-retry-count": "42"} ) - assert response.http_request.headers.get("x-stainless-retry-count") == "42" + assert response.http_request.headers.get("x-fireworks-retry-count") == "42" async def test_get_platform(self) -> None: platform = await asyncify(get_platform)() From 791d518c02286244b1564e59f0fd71474734ddd4 Mon Sep 17 00:00:00 2001 From: Hecate0821 Date: Thu, 21 May 2026 00:07:10 -0700 Subject: [PATCH 2/3] review: make release-tag.yml label flip recoverable If "Create tag and GitHub Release" succeeded but "Mark release PR as tagged" failed (transient API hiccup), the previous structure exited early on rerun via the `skip=true` path because the tag now existed, leaving the release PR stuck at `autorelease: pending` forever. Split the gate: tag existence only skips tag/release creation. The label-flip step now runs unconditionally and is a no-op when there is no PR for the commit or the PR is not in `autorelease: pending` state. A run that just created the tag but cannot find an associated PR still fails loudly to surface misconfigured release commits. Co-Authored-By: Claude Opus 4.7 (1M context) --- .github/workflows/release-tag.yml | 54 +++++++++++++++++++------------ 1 file changed, 34 insertions(+), 20 deletions(-) diff --git a/.github/workflows/release-tag.yml b/.github/workflows/release-tag.yml index 23530cfd..0f043f06 100644 --- a/.github/workflows/release-tag.yml +++ b/.github/workflows/release-tag.yml @@ -51,28 +51,32 @@ jobs: exit 1 fi - tag="v${version}" - if git rev-parse -q --verify "refs/tags/${tag}" >/dev/null; then - echo "Tag ${tag} already exists; nothing to do." - echo "skip=true" >> "$GITHUB_OUTPUT" - exit 0 - fi - { - echo "skip=false" echo "version=${version}" - echo "tag=${tag}" + echo "tag=v${version}" } >> "$GITHUB_OUTPUT" + - name: Check if tag exists + id: tag + env: + TAG: ${{ steps.version.outputs.tag }} + run: | + set -euo pipefail + if git rev-parse -q --verify "refs/tags/${TAG}" >/dev/null; then + echo "Tag ${TAG} already exists." + echo "exists=true" >> "$GITHUB_OUTPUT" + else + echo "exists=false" >> "$GITHUB_OUTPUT" + fi + - name: Require FW_AI_BOT_TOKEN - if: steps.version.outputs.skip != 'true' env: BOT_TOKEN: ${{ secrets.FW_AI_BOT_TOKEN }} run: | [[ -n "${BOT_TOKEN}" ]] || { echo "::error::FW_AI_BOT_TOKEN is required"; exit 1; } - name: Create tag and GitHub Release - if: steps.version.outputs.skip != 'true' + if: steps.tag.outputs.exists == 'false' env: GH_TOKEN: ${{ secrets.FW_AI_BOT_TOKEN }} VERSION: ${{ steps.version.outputs.version }} @@ -106,22 +110,32 @@ jobs: ${prerelease_flag} - name: Mark release PR as tagged - if: steps.version.outputs.skip != 'true' + # Runs unconditionally so that recovering from a partial prior failure + # (tag created, label flip failed) just needs a workflow rerun. The + # step is a no-op on commits that aren't release-PR merges (no PR + # found) and on PRs already flipped to 'tagged' (no pending label). + # Loud failure only when this run just created the tag but no PR is + # associated — that indicates a misconfigured release commit. env: GH_TOKEN: ${{ secrets.FW_AI_BOT_TOKEN }} + TAG_JUST_CREATED: ${{ steps.tag.outputs.exists == 'false' }} run: | set -euo pipefail - # Find the PR that was squash-merged to produce this release commit - # and flip the autorelease labels: pending -> tagged. Fails loudly - # if the label flip cannot complete — no silent || true masks. If - # this step fails after the tag and Release are created, re-run - # the failed job; it is safe to re-run (label add/remove are - # idempotent). pr_number="$(gh api "repos/${GITHUB_REPOSITORY}/commits/${GITHUB_SHA}/pulls" \ --jq '.[0].number // empty')" if [[ -z "${pr_number}" ]]; then - echo "::error::No PR association found for ${GITHUB_SHA}. Cannot flip autorelease label." - exit 1 + if [[ "${TAG_JUST_CREATED}" == "true" ]]; then + echo "::error::Tag was created this run but no PR is associated with ${GITHUB_SHA}." + exit 1 + fi + echo "No PR associated with ${GITHUB_SHA}; nothing to flip." + exit 0 + fi + labels="$(gh pr view "${pr_number}" --repo "${GITHUB_REPOSITORY}" \ + --json labels --jq '[.labels[].name] | join(",")')" + if [[ ",${labels}," != *",autorelease: pending,"* ]]; then + echo "PR #${pr_number} does not carry 'autorelease: pending'; nothing to flip." + exit 0 fi gh pr edit "${pr_number}" --repo "${GITHUB_REPOSITORY}" \ --remove-label "autorelease: pending" \ From 73b54ce97a75f7b53cf63491dce678f1e8d16679 Mon Sep 17 00:00:00 2001 From: Hecate0821 Date: Thu, 21 May 2026 00:20:27 -0700 Subject: [PATCH 3/3] scope: revert generated-code touches; keep autorelease SST only Pulls the generated-code changes (Stainless boilerplate strip across 248 .py files + X-Stainless-* wire-header rename) out of this PR. They move to a separate follow-up PR. What stays: - .github/workflows/release-tag.yml rewritten to read version from pyproject.toml [project] (no manifest fallback, no commit-subject regex, no workflow_dispatch override). The label-flip step runs unconditionally and is a no-op when no PR is associated or the PR is not in `autorelease: pending`, so a partial-failure rerun recovers cleanly. This is the root-cause fix for the PR #88 stale-title incident. - .github/workflows/release-doctor.yml branch filter switched from release-please/ to autorelease/ to match the new bumper. - .release-please-manifest.json and release-please-config.json deleted (the new bumper reads pyproject.toml directly and inlines the changelog-sections + extra-files lists). What is reverted: - All 248 generated .py files under src/ and tests/ restored to main state (Stainless boilerplate header back, X-Stainless-* wire headers back). - {CLAUDE.md, README.md, SECURITY.md, llms.txt, pyproject.toml, src/fireworks/lib/.keep, src/fireworks/lib/_legacy_compat.py} restored to main. - .stats.yml restored (Stainless overlay artifact). Co-Authored-By: Claude Opus 4.7 (1M context) --- .stats.yml | 4 + CLAUDE.md | 2 +- README.md | 4 +- SECURITY.md | 20 ++++- llms.txt | 2 +- pyproject.toml | 2 +- src/fireworks/__init__.py | 2 + src/fireworks/_base_client.py | 22 +++--- src/fireworks/_client.py | 6 +- src/fireworks/_constants.py | 6 +- src/fireworks/_exceptions.py | 2 + src/fireworks/_resource.py | 2 + src/fireworks/_utils/_utils.py | 2 +- src/fireworks/_version.py | 2 + src/fireworks/lib/.keep | 5 +- src/fireworks/lib/_legacy_compat.py | 2 +- src/fireworks/pagination.py | 2 + src/fireworks/resources/__init__.py | 2 + src/fireworks/resources/accounts.py | 2 + src/fireworks/resources/api_keys.py | 2 + .../resources/batch_inference_jobs.py | 2 + src/fireworks/resources/chat/__init__.py | 2 + src/fireworks/resources/chat/chat.py | 2 + src/fireworks/resources/chat/completions.py | 2 + src/fireworks/resources/completions.py | 2 + src/fireworks/resources/datasets.py | 2 + .../resources/deployment_shape_versions.py | 2 + src/fireworks/resources/deployment_shapes.py | 2 + src/fireworks/resources/deployments.py | 2 + src/fireworks/resources/dpo_jobs.py | 2 + src/fireworks/resources/evaluation_jobs.py | 2 + src/fireworks/resources/evaluators.py | 2 + src/fireworks/resources/lora.py | 2 + src/fireworks/resources/messages.py | 2 + src/fireworks/resources/models.py | 2 + .../reinforcement_fine_tuning_jobs.py | 2 + .../reinforcement_fine_tuning_steps.py | 2 + src/fireworks/resources/secrets.py | 2 + .../resources/supervised_fine_tuning_jobs.py | 2 + src/fireworks/resources/users.py | 2 + src/fireworks/types/__init__.py | 2 + src/fireworks/types/account.py | 2 + src/fireworks/types/account_get_params.py | 2 + src/fireworks/types/account_list_params.py | 2 + src/fireworks/types/api_key.py | 2 + src/fireworks/types/api_key_create_params.py | 2 + src/fireworks/types/api_key_delete_params.py | 2 + src/fireworks/types/api_key_list_params.py | 2 + src/fireworks/types/api_key_param.py | 2 + src/fireworks/types/auto_tune.py | 2 + src/fireworks/types/auto_tune_param.py | 2 + src/fireworks/types/autoscaling_policy.py | 2 + .../types/autoscaling_policy_param.py | 2 + src/fireworks/types/base_model_details.py | 2 + .../types/base_model_details_param.py | 2 + src/fireworks/types/batch_inference_job.py | 2 + .../batch_inference_job_create_params.py | 2 + .../types/batch_inference_job_get_params.py | 2 + .../types/batch_inference_job_list_params.py | 2 + .../types/cache_control_ephemeral_param.py | 2 + src/fireworks/types/chat/__init__.py | 2 + .../types/chat/chat_completion_chunk.py | 2 + .../types/chat/completion_create_params.py | 2 + .../types/chat/completion_create_response.py | 2 + src/fireworks/types/completion_chunk.py | 2 + .../types/completion_create_params.py | 2 + .../types/completion_create_response.py | 2 + src/fireworks/types/content_block.py | 2 + src/fireworks/types/conversation_config.py | 2 + .../types/conversation_config_param.py | 2 + src/fireworks/types/dataset.py | 2 + src/fireworks/types/dataset_create_params.py | 2 + .../dataset_get_download_endpoint_params.py | 2 + .../dataset_get_download_endpoint_response.py | 2 + src/fireworks/types/dataset_get_params.py | 2 + .../dataset_get_upload_endpoint_params.py | 2 + .../dataset_get_upload_endpoint_response.py | 2 + src/fireworks/types/dataset_list_params.py | 2 + src/fireworks/types/dataset_param.py | 2 + src/fireworks/types/dataset_update_params.py | 2 + src/fireworks/types/dataset_upload_params.py | 2 + .../types/dataset_upload_response.py | 2 + .../types/dataset_validate_upload_params.py | 2 + src/fireworks/types/deployment.py | 2 + .../types/deployment_create_params.py | 2 + .../types/deployment_delete_params.py | 2 + src/fireworks/types/deployment_get_params.py | 2 + src/fireworks/types/deployment_list_params.py | 2 + .../types/deployment_scale_params.py | 2 + src/fireworks/types/deployment_shape.py | 2 + .../types/deployment_shape_get_params.py | 2 + .../types/deployment_shape_list_params.py | 2 + .../types/deployment_shape_version.py | 2 + .../deployment_shape_version_get_params.py | 2 + .../deployment_shape_version_list_params.py | 2 + .../types/deployment_undelete_params.py | 2 + .../types/deployment_update_params.py | 2 + src/fireworks/types/dpo_job.py | 2 + src/fireworks/types/dpo_job_create_params.py | 2 + ..._job_get_metrics_file_endpoint_response.py | 2 + src/fireworks/types/dpo_job_get_params.py | 2 + src/fireworks/types/dpo_job_list_params.py | 2 + src/fireworks/types/dpo_job_resume_params.py | 2 + .../types/evaluation_job_create_params.py | 2 + .../types/evaluation_job_create_response.py | 2 + ...valuation_job_get_log_endpoint_response.py | 2 + .../types/evaluation_job_get_params.py | 2 + .../types/evaluation_job_get_response.py | 2 + .../types/evaluation_job_list_params.py | 2 + .../types/evaluation_job_list_response.py | 2 + src/fireworks/types/evaluation_result.py | 2 + .../types/evaluation_result_param.py | 2 + .../types/evaluator_create_params.py | 2 + .../types/evaluator_create_response.py | 2 + ...evaluator_get_build_log_endpoint_params.py | 2 + ...aluator_get_build_log_endpoint_response.py | 2 + src/fireworks/types/evaluator_get_params.py | 2 + src/fireworks/types/evaluator_get_response.py | 2 + ...aluator_get_source_code_endpoint_params.py | 2 + ...uator_get_source_code_endpoint_response.py | 2 + .../evaluator_get_upload_endpoint_params.py | 2 + .../evaluator_get_upload_endpoint_response.py | 2 + src/fireworks/types/evaluator_list_params.py | 2 + .../types/evaluator_list_response.py | 2 + src/fireworks/types/evaluator_source.py | 2 + src/fireworks/types/evaluator_source_param.py | 2 + .../types/evaluator_update_params.py | 2 + .../types/evaluator_update_response.py | 2 + .../types/evaluator_validate_upload_params.py | 2 + src/fireworks/types/lora_get_params.py | 2 + src/fireworks/types/lora_list_params.py | 2 + src/fireworks/types/lora_load_params.py | 2 + src/fireworks/types/lora_update_params.py | 2 + src/fireworks/types/message_create_params.py | 2 + .../types/message_create_response.py | 2 + src/fireworks/types/model.py | 2 + src/fireworks/types/model_create_params.py | 2 + .../model_get_download_endpoint_params.py | 2 + .../model_get_download_endpoint_response.py | 2 + src/fireworks/types/model_get_params.py | 2 + .../types/model_get_upload_endpoint_params.py | 2 + .../model_get_upload_endpoint_response.py | 2 + src/fireworks/types/model_list_params.py | 2 + src/fireworks/types/model_param.py | 2 + src/fireworks/types/model_prepare_params.py | 2 + src/fireworks/types/model_update_params.py | 2 + .../types/model_validate_upload_params.py | 2 + .../types/model_validate_upload_response.py | 2 + src/fireworks/types/peft_details.py | 2 + src/fireworks/types/peft_details_param.py | 2 + src/fireworks/types/placement.py | 2 + src/fireworks/types/placement_param.py | 2 + .../types/reinforcement_fine_tuning_job.py | 2 + ...forcement_fine_tuning_job_cancel_params.py | 2 + ...forcement_fine_tuning_job_create_params.py | 2 + ...einforcement_fine_tuning_job_get_params.py | 2 + ...inforcement_fine_tuning_job_list_params.py | 2 + ...forcement_fine_tuning_job_resume_params.py | 2 + .../types/reinforcement_fine_tuning_step.py | 2 + ...orcement_fine_tuning_step_create_params.py | 2 + ...rcement_fine_tuning_step_execute_params.py | 2 + ...inforcement_fine_tuning_step_get_params.py | 2 + ...nforcement_fine_tuning_step_list_params.py | 2 + ...orcement_fine_tuning_step_resume_params.py | 2 + .../request_char_location_citation_param.py | 2 + ...t_content_block_location_citation_param.py | 2 + .../types/request_image_block_param.py | 2 + .../request_page_location_citation_param.py | 2 + ...t_search_result_location_citation_param.py | 2 + .../types/request_text_block_param.py | 2 + ...b_search_result_location_citation_param.py | 2 + .../types/response_char_location_citation.py | 2 + ...esponse_content_block_location_citation.py | 2 + .../types/response_page_location_citation.py | 2 + .../types/response_redacted_thinking_block.py | 2 + ...esponse_search_result_location_citation.py | 2 + src/fireworks/types/response_text_block.py | 2 + .../types/response_thinking_block.py | 2 + .../types/response_tool_use_block.py | 2 + ...nse_web_search_result_location_citation.py | 2 + src/fireworks/types/secret.py | 2 + src/fireworks/types/secret_create_params.py | 2 + src/fireworks/types/secret_get_params.py | 2 + src/fireworks/types/secret_list_params.py | 2 + src/fireworks/types/secret_update_params.py | 2 + src/fireworks/types/shared/__init__.py | 2 + .../chat_completion_message_tool_call.py | 2 + ...t_completion_message_tool_call_function.py | 2 + .../types/shared/chat_completion_tool.py | 2 + src/fireworks/types/shared/chat_message.py | 2 + src/fireworks/types/shared/choice.py | 2 + src/fireworks/types/shared/deployed_model.py | 2 + .../types/shared/deployed_model_ref.py | 2 + src/fireworks/types/shared/log_probs.py | 2 + src/fireworks/types/shared/new_log_probs.py | 2 + .../types/shared/new_log_probs_content.py | 2 + .../new_log_probs_content_top_log_probs.py | 2 + .../types/shared/prompt_tokens_details.py | 2 + src/fireworks/types/shared/raw_output.py | 2 + .../reinforcement_learning_loss_config.py | 2 + src/fireworks/types/shared/status.py | 2 + src/fireworks/types/shared/training_config.py | 2 + src/fireworks/types/shared/usage_info.py | 2 + src/fireworks/types/shared/wandb_config.py | 2 + src/fireworks/types/shared_params/__init__.py | 2 + .../chat_completion_message_tool_call.py | 2 + ...t_completion_message_tool_call_function.py | 2 + .../shared_params/chat_completion_tool.py | 2 + .../types/shared_params/chat_message.py | 2 + .../types/shared_params/deployed_model_ref.py | 2 + .../reinforcement_learning_loss_config.py | 2 + src/fireworks/types/shared_params/status.py | 2 + .../types/shared_params/training_config.py | 2 + .../types/shared_params/wandb_config.py | 2 + src/fireworks/types/splitted.py | 2 + src/fireworks/types/splitted_param.py | 2 + .../types/supervised_fine_tuning_job.py | 2 + ...upervised_fine_tuning_job_create_params.py | 2 + .../supervised_fine_tuning_job_get_params.py | 2 + .../supervised_fine_tuning_job_list_params.py | 2 + ...upervised_fine_tuning_job_resume_params.py | 2 + src/fireworks/types/transformed.py | 2 + src/fireworks/types/transformed_param.py | 2 + src/fireworks/types/type_date.py | 2 + src/fireworks/types/type_date_param.py | 2 + src/fireworks/types/user.py | 2 + src/fireworks/types/user_create_params.py | 2 + src/fireworks/types/user_get_params.py | 2 + src/fireworks/types/user_list_params.py | 2 + src/fireworks/types/user_update_params.py | 2 + src/fireworks_ai/lib/.keep | 5 +- tests/__init__.py | 1 + tests/api_resources/__init__.py | 1 + tests/api_resources/chat/__init__.py | 1 + tests/api_resources/chat/test_completions.py | 18 +++-- tests/api_resources/test_accounts.py | 18 +++-- tests/api_resources/test_api_keys.py | 26 ++++--- .../test_batch_inference_jobs.py | 34 +++++---- tests/api_resources/test_completions.py | 18 +++-- tests/api_resources/test_datasets.py | 74 ++++++++++--------- .../test_deployment_shape_versions.py | 18 +++-- tests/api_resources/test_deployment_shapes.py | 18 +++-- tests/api_resources/test_deployments.py | 58 ++++++++------- tests/api_resources/test_dpo_jobs.py | 50 +++++++------ tests/api_resources/test_evaluation_jobs.py | 42 ++++++----- tests/api_resources/test_evaluators.py | 74 ++++++++++--------- tests/api_resources/test_lora.py | 42 ++++++----- tests/api_resources/test_messages.py | 10 ++- tests/api_resources/test_models.py | 74 ++++++++++--------- .../test_reinforcement_fine_tuning_jobs.py | 50 +++++++------ .../test_reinforcement_fine_tuning_steps.py | 50 +++++++------ tests/api_resources/test_secrets.py | 42 ++++++----- .../test_supervised_fine_tuning_jobs.py | 42 ++++++----- tests/api_resources/test_users.py | 34 +++++---- tests/conftest.py | 2 + tests/test_client.py | 34 +++++---- 256 files changed, 927 insertions(+), 422 deletions(-) create mode 100644 .stats.yml diff --git a/.stats.yml b/.stats.yml new file mode 100644 index 00000000..87b3d32f --- /dev/null +++ b/.stats.yml @@ -0,0 +1,4 @@ +configured_endpoints: 92 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/fireworks-ai/fireworks-ai-65b17041c3092296c4492a7bb6a368b62cb49c14a7bea6e8f053261641d8a0cc.yml +openapi_spec_hash: e5c67d93df50bb94fca008115d11254c +config_hash: 3ed8f2695ae568c53993cfe3f347b89c diff --git a/CLAUDE.md b/CLAUDE.md index 7bdfcb28..acf8c303 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -4,7 +4,7 @@ When working on the tinker-style training SDK, **only look at code in `src/fireworks/training/`**. Do not reference or modify training-related code outside of this directory. -This SDK repo contains auto-generated REST API client code outside of `src/fireworks/training/`. The training SDK is developed independently and lives entirely within that directory. +This SDK repo contains auto-generated code from Stainless outside of `src/fireworks/training/`. The training SDK is developed independently and lives entirely within that directory. ## Skill lives in the cookbook diff --git a/README.md b/README.md index 25c0f202..618e6493 100644 --- a/README.md +++ b/README.md @@ -35,8 +35,8 @@ the SDK release unless you are intentionally testing a newer pairing. > **Note:** The training SDK source lives entirely in > [`src/fireworks/training/`](src/fireworks/training/). All other code in this -> repository is auto-generated from the Fireworks REST API spec and should -> **not** be referenced or modified when working on training features. See +> repository is auto-generated by Stainless and should **not** be referenced or +> modified when working on training features. See > [`src/fireworks/training/README.md`](src/fireworks/training/README.md) for > training-specific documentation. diff --git a/SECURITY.md b/SECURITY.md index 2313da38..325f0b93 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -2,14 +2,26 @@ ## Reporting Security Issues -Fireworks AI takes security seriously. If you believe you have found a security vulnerability in this SDK or in the Fireworks services and products it interacts with, please report it promptly so we can investigate and address it. +This SDK is generated by [Stainless Software Inc](http://stainless.com). Stainless takes security seriously, and encourages you to report any security vulnerability promptly so that appropriate action can be taken. -To report a security issue, please contact security@fireworks.ai. +To report a security issue, please contact the Stainless team at security@stainless.com. ## Responsible Disclosure -We appreciate the efforts of security researchers and individuals who help us maintain the security of this SDK and our services. Please adhere to responsible disclosure practices by allowing us a reasonable amount of time to investigate and address the issue before making any information public. +We appreciate the efforts of security researchers and individuals who help us maintain the security of +SDKs we generate. If you believe you have found a security vulnerability, please adhere to responsible +disclosure practices by allowing us a reasonable amount of time to investigate and address the issue +before making any information public. + +## Reporting Non-SDK Related Security Issues + +If you encounter security issues that are not directly related to SDKs but pertain to the services +or products provided by Fireworks, please follow the respective company's security reporting guidelines. + +### Fireworks Terms and Policies + +Please contact dhuang@fireworks.ai for any questions or concerns regarding the security of our services. --- -Thank you for helping us keep this SDK and the systems it interacts with secure. +Thank you for helping us keep the SDKs and systems they interact with secure. diff --git a/llms.txt b/llms.txt index df3a7b8c..37ee011c 100644 --- a/llms.txt +++ b/llms.txt @@ -2,7 +2,7 @@ This repository contains two separate codebases: -1. **Fireworks REST API SDK** (auto-generated from the Fireworks REST API spec) — everything outside of `src/fireworks/training/`. +1. **Fireworks REST API SDK** (auto-generated by Stainless) — everything outside of `src/fireworks/training/`. 2. **Tinker-style Training SDK** — located entirely in `src/fireworks/training/`. ## Important: Training SDK scope diff --git a/pyproject.toml b/pyproject.toml index f20402be..d2215a0f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -154,7 +154,7 @@ pattern = '\[(.+?)\]\(((?!https?://)\S+?)\)' replacement = '[\1](https://github.com/fw-ai-external/python-sdk/tree/main/\g<2>)' [tool.coverage.run] -# Exclude auto-generated CRUD (resources/types) and the training SDK +# Exclude Stainless-autogenerated CRUD (resources/types) and the training SDK # (which has its own test suite in src/fireworks/training/sdk/tests/). The gate # measures the SDK infrastructure and our backwards-compat shims. omit = [ diff --git a/src/fireworks/__init__.py b/src/fireworks/__init__.py index 6ea93fe1..131e0522 100644 --- a/src/fireworks/__init__.py +++ b/src/fireworks/__init__.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + import typing as _t from . import types diff --git a/src/fireworks/_base_client.py b/src/fireworks/_base_client.py index 722cc7ad..bfaaae7a 100644 --- a/src/fireworks/_base_client.py +++ b/src/fireworks/_base_client.py @@ -447,14 +447,14 @@ def _build_headers(self, options: FinalRequestOptions, *, retries_taken: int = 0 # Don't set these headers if they were already set or removed by the caller. We check # `custom_headers`, which can contain `Omit()`, instead of `headers` to account for the removal case. lower_custom_headers = [header.lower() for header in custom_headers] - if "x-fireworks-retry-count" not in lower_custom_headers: - headers["x-fireworks-retry-count"] = str(retries_taken) - if "x-fireworks-read-timeout" not in lower_custom_headers: + if "x-stainless-retry-count" not in lower_custom_headers: + headers["x-stainless-retry-count"] = str(retries_taken) + if "x-stainless-read-timeout" not in lower_custom_headers: timeout = self.timeout if isinstance(options.timeout, NotGiven) else options.timeout if isinstance(timeout, Timeout): timeout = timeout.read if timeout is not None: - headers["x-fireworks-read-timeout"] = str(timeout) + headers["x-stainless-read-timeout"] = str(timeout) return headers @@ -808,7 +808,7 @@ def _should_retry(self, response: httpx.Response) -> bool: return False def _idempotency_key(self) -> str: - return f"fireworks-python-retry-{uuid.uuid4()}" + return f"stainless-python-retry-{uuid.uuid4()}" class _DefaultHttpxClient(httpx.Client): @@ -2087,12 +2087,12 @@ def get_platform() -> Platform: @lru_cache(maxsize=None) def platform_headers(version: str, *, platform: Platform | None) -> Dict[str, str]: return { - "X-Fireworks-Lang": "python", - "X-Fireworks-Package-Version": version, - "X-Fireworks-OS": str(platform or get_platform()), - "X-Fireworks-Arch": str(get_architecture()), - "X-Fireworks-Runtime": get_python_runtime(), - "X-Fireworks-Runtime-Version": get_python_version(), + "X-Stainless-Lang": "python", + "X-Stainless-Package-Version": version, + "X-Stainless-OS": str(platform or get_platform()), + "X-Stainless-Arch": str(get_architecture()), + "X-Stainless-Runtime": get_python_runtime(), + "X-Stainless-Runtime-Version": get_python_version(), } diff --git a/src/fireworks/_client.py b/src/fireworks/_client.py index b9a89b35..af795b13 100644 --- a/src/fireworks/_client.py +++ b/src/fireworks/_client.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations import os @@ -319,7 +321,7 @@ def auth_headers(self) -> dict[str, str]: def default_headers(self) -> dict[str, str | Omit]: return { **super().default_headers, - "X-Fireworks-Async": "false", + "X-Stainless-Async": "false", **self._custom_headers, } @@ -640,7 +642,7 @@ def auth_headers(self) -> dict[str, str]: def default_headers(self) -> dict[str, str | Omit]: return { **super().default_headers, - "X-Fireworks-Async": f"async:{get_async_library()}", + "X-Stainless-Async": f"async:{get_async_library()}", **self._custom_headers, } diff --git a/src/fireworks/_constants.py b/src/fireworks/_constants.py index 3e6d93a6..1a6d56a7 100644 --- a/src/fireworks/_constants.py +++ b/src/fireworks/_constants.py @@ -1,7 +1,9 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + import httpx -RAW_RESPONSE_HEADER = "X-Fireworks-Raw-Response" -OVERRIDE_CAST_TO_HEADER = "____fireworks_override_cast_to" +RAW_RESPONSE_HEADER = "X-Stainless-Raw-Response" +OVERRIDE_CAST_TO_HEADER = "____stainless_override_cast_to" # default timeout is 1 minute DEFAULT_TIMEOUT = httpx.Timeout(timeout=60, connect=5.0) diff --git a/src/fireworks/_exceptions.py b/src/fireworks/_exceptions.py index 960501cd..8e7a3396 100644 --- a/src/fireworks/_exceptions.py +++ b/src/fireworks/_exceptions.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Literal diff --git a/src/fireworks/_resource.py b/src/fireworks/_resource.py index 42aaf65a..92391a03 100644 --- a/src/fireworks/_resource.py +++ b/src/fireworks/_resource.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations import time diff --git a/src/fireworks/_utils/_utils.py b/src/fireworks/_utils/_utils.py index c95995de..199cd231 100644 --- a/src/fireworks/_utils/_utils.py +++ b/src/fireworks/_utils/_utils.py @@ -389,7 +389,7 @@ def get_required_header(headers: HeadersLike, header: str) -> str: if k.lower() == lower_header and isinstance(v, str): return v - # to deal with the case where the header looks like Fireworks-Event-Id + # to deal with the case where the header looks like Stainless-Event-Id intercaps_header = re.sub(r"([^\w])(\w)", lambda pat: pat.group(1) + pat.group(2).upper(), header.capitalize()) for normalized_header in [header, lower_header, header.upper(), intercaps_header]: diff --git a/src/fireworks/_version.py b/src/fireworks/_version.py index 3dd3c5bd..3cc8870e 100644 --- a/src/fireworks/_version.py +++ b/src/fireworks/_version.py @@ -1,2 +1,4 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + __title__ = "fireworks" __version__ = "1.2.0-alpha.72" # x-release-please-version diff --git a/src/fireworks/lib/.keep b/src/fireworks/lib/.keep index 94387375..5e2c99fd 100644 --- a/src/fireworks/lib/.keep +++ b/src/fireworks/lib/.keep @@ -1,3 +1,4 @@ -This directory holds hand-maintained code that extends the SDK. +File generated from our OpenAPI spec by Stainless. -The REST API client code generator does not write into this directory; its contents (other than this keep file) are preserved across regenerations. \ No newline at end of file +This directory can be used to store custom files to expand the SDK. +It is ignored by Stainless code generation and its content (other than this keep file) won't be touched. \ No newline at end of file diff --git a/src/fireworks/lib/_legacy_compat.py b/src/fireworks/lib/_legacy_compat.py index a9240a14..0b53a643 100644 --- a/src/fireworks/lib/_legacy_compat.py +++ b/src/fireworks/lib/_legacy_compat.py @@ -1,7 +1,7 @@ """Backwards-compatibility shims for the 0.x SDK API surface. The old ``fireworks-ai`` (0.x) SDK exposed ``acreate()`` on async completion -resources. The new auto-generated 1.x SDK uses ``create()`` for both sync +resources. The new Stainless-generated 1.x SDK uses ``create()`` for both sync and async (the async version is a coroutine). Downstream packages like ``langchain-fireworks`` and ``instructor`` call ``acreate()``, so we add it as a deprecated alias. diff --git a/src/fireworks/pagination.py b/src/fireworks/pagination.py index 26e78e03..133288da 100644 --- a/src/fireworks/pagination.py +++ b/src/fireworks/pagination.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import List, Generic, TypeVar, Optional from typing_extensions import override diff --git a/src/fireworks/resources/__init__.py b/src/fireworks/resources/__init__.py index 7ee60a55..4a21e540 100644 --- a/src/fireworks/resources/__init__.py +++ b/src/fireworks/resources/__init__.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from .chat import ( ChatResource, AsyncChatResource, diff --git a/src/fireworks/resources/accounts.py b/src/fireworks/resources/accounts.py index 21dc04bf..0a48bb9f 100644 --- a/src/fireworks/resources/accounts.py +++ b/src/fireworks/resources/accounts.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations import httpx diff --git a/src/fireworks/resources/api_keys.py b/src/fireworks/resources/api_keys.py index 9866cccc..3abc7a8f 100644 --- a/src/fireworks/resources/api_keys.py +++ b/src/fireworks/resources/api_keys.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations import httpx diff --git a/src/fireworks/resources/batch_inference_jobs.py b/src/fireworks/resources/batch_inference_jobs.py index 25b85332..3d21239d 100644 --- a/src/fireworks/resources/batch_inference_jobs.py +++ b/src/fireworks/resources/batch_inference_jobs.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Literal diff --git a/src/fireworks/resources/chat/__init__.py b/src/fireworks/resources/chat/__init__.py index e4e5fe7c..ec960eb4 100644 --- a/src/fireworks/resources/chat/__init__.py +++ b/src/fireworks/resources/chat/__init__.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from .chat import ( ChatResource, AsyncChatResource, diff --git a/src/fireworks/resources/chat/chat.py b/src/fireworks/resources/chat/chat.py index aba24896..01c7439d 100644 --- a/src/fireworks/resources/chat/chat.py +++ b/src/fireworks/resources/chat/chat.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from ..._compat import cached_property diff --git a/src/fireworks/resources/chat/completions.py b/src/fireworks/resources/chat/completions.py index ca13c3ac..2041bcc8 100644 --- a/src/fireworks/resources/chat/completions.py +++ b/src/fireworks/resources/chat/completions.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing import Dict, Union, Iterable, Optional diff --git a/src/fireworks/resources/completions.py b/src/fireworks/resources/completions.py index 4195a982..6d70a759 100644 --- a/src/fireworks/resources/completions.py +++ b/src/fireworks/resources/completions.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing import Dict, Union, Iterable, Optional diff --git a/src/fireworks/resources/datasets.py b/src/fireworks/resources/datasets.py index 16bbda97..45a4f71d 100644 --- a/src/fireworks/resources/datasets.py +++ b/src/fireworks/resources/datasets.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing import Dict, Mapping, cast diff --git a/src/fireworks/resources/deployment_shape_versions.py b/src/fireworks/resources/deployment_shape_versions.py index 8013effa..c61bc975 100644 --- a/src/fireworks/resources/deployment_shape_versions.py +++ b/src/fireworks/resources/deployment_shape_versions.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations import httpx diff --git a/src/fireworks/resources/deployment_shapes.py b/src/fireworks/resources/deployment_shapes.py index 81336411..8bcdbdb1 100644 --- a/src/fireworks/resources/deployment_shapes.py +++ b/src/fireworks/resources/deployment_shapes.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations import httpx diff --git a/src/fireworks/resources/deployments.py b/src/fireworks/resources/deployments.py index bb7ca248..3941e79e 100644 --- a/src/fireworks/resources/deployments.py +++ b/src/fireworks/resources/deployments.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing import Union diff --git a/src/fireworks/resources/dpo_jobs.py b/src/fireworks/resources/dpo_jobs.py index 639fe3b8..847f58d9 100644 --- a/src/fireworks/resources/dpo_jobs.py +++ b/src/fireworks/resources/dpo_jobs.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations import httpx diff --git a/src/fireworks/resources/evaluation_jobs.py b/src/fireworks/resources/evaluation_jobs.py index 7fcd9db9..9bc3a7eb 100644 --- a/src/fireworks/resources/evaluation_jobs.py +++ b/src/fireworks/resources/evaluation_jobs.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations import httpx diff --git a/src/fireworks/resources/evaluators.py b/src/fireworks/resources/evaluators.py index 41c7becc..8b42c11d 100644 --- a/src/fireworks/resources/evaluators.py +++ b/src/fireworks/resources/evaluators.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing import Dict, Iterable diff --git a/src/fireworks/resources/lora.py b/src/fireworks/resources/lora.py index b52957c7..3b19152a 100644 --- a/src/fireworks/resources/lora.py +++ b/src/fireworks/resources/lora.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations import httpx diff --git a/src/fireworks/resources/messages.py b/src/fireworks/resources/messages.py index a312fd43..99ec6d2b 100644 --- a/src/fireworks/resources/messages.py +++ b/src/fireworks/resources/messages.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing import Union, Iterable, Optional diff --git a/src/fireworks/resources/models.py b/src/fireworks/resources/models.py index 13e31c6a..84a7871c 100644 --- a/src/fireworks/resources/models.py +++ b/src/fireworks/resources/models.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing import Dict diff --git a/src/fireworks/resources/reinforcement_fine_tuning_jobs.py b/src/fireworks/resources/reinforcement_fine_tuning_jobs.py index a8fe930a..1b509dc0 100644 --- a/src/fireworks/resources/reinforcement_fine_tuning_jobs.py +++ b/src/fireworks/resources/reinforcement_fine_tuning_jobs.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations import httpx diff --git a/src/fireworks/resources/reinforcement_fine_tuning_steps.py b/src/fireworks/resources/reinforcement_fine_tuning_steps.py index 67fa9b96..3d768619 100644 --- a/src/fireworks/resources/reinforcement_fine_tuning_steps.py +++ b/src/fireworks/resources/reinforcement_fine_tuning_steps.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations import httpx diff --git a/src/fireworks/resources/secrets.py b/src/fireworks/resources/secrets.py index 961d37a1..edee3ecd 100644 --- a/src/fireworks/resources/secrets.py +++ b/src/fireworks/resources/secrets.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations import httpx diff --git a/src/fireworks/resources/supervised_fine_tuning_jobs.py b/src/fireworks/resources/supervised_fine_tuning_jobs.py index cabf79ef..1a3b5c45 100644 --- a/src/fireworks/resources/supervised_fine_tuning_jobs.py +++ b/src/fireworks/resources/supervised_fine_tuning_jobs.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Literal diff --git a/src/fireworks/resources/users.py b/src/fireworks/resources/users.py index 2775c7fc..1c55dfc5 100644 --- a/src/fireworks/resources/users.py +++ b/src/fireworks/resources/users.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations import httpx diff --git a/src/fireworks/types/__init__.py b/src/fireworks/types/__init__.py index f473253c..5ac03a30 100644 --- a/src/fireworks/types/__init__.py +++ b/src/fireworks/types/__init__.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from .user import User as User diff --git a/src/fireworks/types/account.py b/src/fireworks/types/account.py index 31a98eed..5086b5e7 100644 --- a/src/fireworks/types/account.py +++ b/src/fireworks/types/account.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import Optional from datetime import datetime from typing_extensions import Literal diff --git a/src/fireworks/types/account_get_params.py b/src/fireworks/types/account_get_params.py index 01999227..b2741af9 100644 --- a/src/fireworks/types/account_get_params.py +++ b/src/fireworks/types/account_get_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/account_list_params.py b/src/fireworks/types/account_list_params.py index ce788432..7753efc5 100644 --- a/src/fireworks/types/account_list_params.py +++ b/src/fireworks/types/account_list_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/api_key.py b/src/fireworks/types/api_key.py index 81d0a04f..cb88a263 100644 --- a/src/fireworks/types/api_key.py +++ b/src/fireworks/types/api_key.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import Optional from datetime import datetime diff --git a/src/fireworks/types/api_key_create_params.py b/src/fireworks/types/api_key_create_params.py index a8422ec2..232a03ff 100644 --- a/src/fireworks/types/api_key_create_params.py +++ b/src/fireworks/types/api_key_create_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Required, Annotated, TypedDict diff --git a/src/fireworks/types/api_key_delete_params.py b/src/fireworks/types/api_key_delete_params.py index cb78b8d4..3959e011 100644 --- a/src/fireworks/types/api_key_delete_params.py +++ b/src/fireworks/types/api_key_delete_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Required, Annotated, TypedDict diff --git a/src/fireworks/types/api_key_list_params.py b/src/fireworks/types/api_key_list_params.py index e7368347..e4347cf0 100644 --- a/src/fireworks/types/api_key_list_params.py +++ b/src/fireworks/types/api_key_list_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/api_key_param.py b/src/fireworks/types/api_key_param.py index 2471b903..e21f100a 100644 --- a/src/fireworks/types/api_key_param.py +++ b/src/fireworks/types/api_key_param.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing import Union diff --git a/src/fireworks/types/auto_tune.py b/src/fireworks/types/auto_tune.py index 2c8c4408..adb2f71b 100644 --- a/src/fireworks/types/auto_tune.py +++ b/src/fireworks/types/auto_tune.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import Optional from pydantic import Field as FieldInfo diff --git a/src/fireworks/types/auto_tune_param.py b/src/fireworks/types/auto_tune_param.py index 70bbf9ac..83426f9c 100644 --- a/src/fireworks/types/auto_tune_param.py +++ b/src/fireworks/types/auto_tune_param.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/autoscaling_policy.py b/src/fireworks/types/autoscaling_policy.py index 4a7280a6..8721ed44 100644 --- a/src/fireworks/types/autoscaling_policy.py +++ b/src/fireworks/types/autoscaling_policy.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import Dict, Optional from pydantic import Field as FieldInfo diff --git a/src/fireworks/types/autoscaling_policy_param.py b/src/fireworks/types/autoscaling_policy_param.py index 7a68dd54..033d3a6f 100644 --- a/src/fireworks/types/autoscaling_policy_param.py +++ b/src/fireworks/types/autoscaling_policy_param.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing import Dict diff --git a/src/fireworks/types/base_model_details.py b/src/fireworks/types/base_model_details.py index 7f8becf5..73676d98 100644 --- a/src/fireworks/types/base_model_details.py +++ b/src/fireworks/types/base_model_details.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import Optional from typing_extensions import Literal diff --git a/src/fireworks/types/base_model_details_param.py b/src/fireworks/types/base_model_details_param.py index e3805bd4..029c519a 100644 --- a/src/fireworks/types/base_model_details_param.py +++ b/src/fireworks/types/base_model_details_param.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Literal, Annotated, TypedDict diff --git a/src/fireworks/types/batch_inference_job.py b/src/fireworks/types/batch_inference_job.py index 3579d695..f9e88634 100644 --- a/src/fireworks/types/batch_inference_job.py +++ b/src/fireworks/types/batch_inference_job.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import Optional from datetime import datetime from typing_extensions import Literal diff --git a/src/fireworks/types/batch_inference_job_create_params.py b/src/fireworks/types/batch_inference_job_create_params.py index bc9d8279..65e239dd 100644 --- a/src/fireworks/types/batch_inference_job_create_params.py +++ b/src/fireworks/types/batch_inference_job_create_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Literal, Annotated, TypedDict diff --git a/src/fireworks/types/batch_inference_job_get_params.py b/src/fireworks/types/batch_inference_job_get_params.py index e7a1c5a1..8b29cd63 100644 --- a/src/fireworks/types/batch_inference_job_get_params.py +++ b/src/fireworks/types/batch_inference_job_get_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/batch_inference_job_list_params.py b/src/fireworks/types/batch_inference_job_list_params.py index ca20d9c2..fb6d2010 100644 --- a/src/fireworks/types/batch_inference_job_list_params.py +++ b/src/fireworks/types/batch_inference_job_list_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/cache_control_ephemeral_param.py b/src/fireworks/types/cache_control_ephemeral_param.py index ae6a6eeb..0bdbe03c 100644 --- a/src/fireworks/types/cache_control_ephemeral_param.py +++ b/src/fireworks/types/cache_control_ephemeral_param.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Literal, Required, TypedDict diff --git a/src/fireworks/types/chat/__init__.py b/src/fireworks/types/chat/__init__.py index 51f4a4b7..f0243162 100644 --- a/src/fireworks/types/chat/__init__.py +++ b/src/fireworks/types/chat/__init__.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from .chat_completion_chunk import ChatCompletionChunk as ChatCompletionChunk diff --git a/src/fireworks/types/chat/chat_completion_chunk.py b/src/fireworks/types/chat/chat_completion_chunk.py index 259c8ed5..ef573472 100644 --- a/src/fireworks/types/chat/chat_completion_chunk.py +++ b/src/fireworks/types/chat/chat_completion_chunk.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + import builtins from typing import Dict, List, Union, Optional from typing_extensions import Literal, TypeAlias diff --git a/src/fireworks/types/chat/completion_create_params.py b/src/fireworks/types/chat/completion_create_params.py index ae397600..2f49a9b4 100644 --- a/src/fireworks/types/chat/completion_create_params.py +++ b/src/fireworks/types/chat/completion_create_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing import Dict, Union, Iterable, Optional diff --git a/src/fireworks/types/chat/completion_create_response.py b/src/fireworks/types/chat/completion_create_response.py index 9c770b94..1e07d19a 100644 --- a/src/fireworks/types/chat/completion_create_response.py +++ b/src/fireworks/types/chat/completion_create_response.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + import builtins from typing import Dict, List, Union, Optional from typing_extensions import TypeAlias diff --git a/src/fireworks/types/completion_chunk.py b/src/fireworks/types/completion_chunk.py index 74859f6b..99cb5aa6 100644 --- a/src/fireworks/types/completion_chunk.py +++ b/src/fireworks/types/completion_chunk.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + import builtins from typing import Dict, List, Union, Optional from typing_extensions import Literal, TypeAlias diff --git a/src/fireworks/types/completion_create_params.py b/src/fireworks/types/completion_create_params.py index f54614ee..0838fa61 100644 --- a/src/fireworks/types/completion_create_params.py +++ b/src/fireworks/types/completion_create_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing import Dict, Union, Iterable, Optional diff --git a/src/fireworks/types/completion_create_response.py b/src/fireworks/types/completion_create_response.py index 5c9c9749..5806a988 100644 --- a/src/fireworks/types/completion_create_response.py +++ b/src/fireworks/types/completion_create_response.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + import builtins from typing import Dict, List, Optional diff --git a/src/fireworks/types/content_block.py b/src/fireworks/types/content_block.py index 60d63127..97f7eea7 100644 --- a/src/fireworks/types/content_block.py +++ b/src/fireworks/types/content_block.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import Union from typing_extensions import Annotated, TypeAlias diff --git a/src/fireworks/types/conversation_config.py b/src/fireworks/types/conversation_config.py index 42f4771a..dff6bd55 100644 --- a/src/fireworks/types/conversation_config.py +++ b/src/fireworks/types/conversation_config.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import Optional from .._models import BaseModel diff --git a/src/fireworks/types/conversation_config_param.py b/src/fireworks/types/conversation_config_param.py index 25c21698..5b58a1cc 100644 --- a/src/fireworks/types/conversation_config_param.py +++ b/src/fireworks/types/conversation_config_param.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Required, TypedDict diff --git a/src/fireworks/types/dataset.py b/src/fireworks/types/dataset.py index 2be0465e..de8e9e76 100644 --- a/src/fireworks/types/dataset.py +++ b/src/fireworks/types/dataset.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import Optional from datetime import datetime from typing_extensions import Literal diff --git a/src/fireworks/types/dataset_create_params.py b/src/fireworks/types/dataset_create_params.py index 4d9717cb..b399c539 100644 --- a/src/fireworks/types/dataset_create_params.py +++ b/src/fireworks/types/dataset_create_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Required, Annotated, TypedDict diff --git a/src/fireworks/types/dataset_get_download_endpoint_params.py b/src/fireworks/types/dataset_get_download_endpoint_params.py index aa2f3bca..109969a6 100644 --- a/src/fireworks/types/dataset_get_download_endpoint_params.py +++ b/src/fireworks/types/dataset_get_download_endpoint_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/dataset_get_download_endpoint_response.py b/src/fireworks/types/dataset_get_download_endpoint_response.py index 8499fc3e..ebace4a4 100644 --- a/src/fireworks/types/dataset_get_download_endpoint_response.py +++ b/src/fireworks/types/dataset_get_download_endpoint_response.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import Dict, Optional from pydantic import Field as FieldInfo diff --git a/src/fireworks/types/dataset_get_params.py b/src/fireworks/types/dataset_get_params.py index 4d86b11f..a0ceb66f 100644 --- a/src/fireworks/types/dataset_get_params.py +++ b/src/fireworks/types/dataset_get_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/dataset_get_upload_endpoint_params.py b/src/fireworks/types/dataset_get_upload_endpoint_params.py index 934b6aaa..555afa22 100644 --- a/src/fireworks/types/dataset_get_upload_endpoint_params.py +++ b/src/fireworks/types/dataset_get_upload_endpoint_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing import Dict diff --git a/src/fireworks/types/dataset_get_upload_endpoint_response.py b/src/fireworks/types/dataset_get_upload_endpoint_response.py index 8b613a0f..ac3f98eb 100644 --- a/src/fireworks/types/dataset_get_upload_endpoint_response.py +++ b/src/fireworks/types/dataset_get_upload_endpoint_response.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import Dict, Optional from pydantic import Field as FieldInfo diff --git a/src/fireworks/types/dataset_list_params.py b/src/fireworks/types/dataset_list_params.py index c0a70a9f..acf4aa90 100644 --- a/src/fireworks/types/dataset_list_params.py +++ b/src/fireworks/types/dataset_list_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/dataset_param.py b/src/fireworks/types/dataset_param.py index 89475b0b..e0682d67 100644 --- a/src/fireworks/types/dataset_param.py +++ b/src/fireworks/types/dataset_param.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Literal, Annotated, TypedDict diff --git a/src/fireworks/types/dataset_update_params.py b/src/fireworks/types/dataset_update_params.py index 529f263d..aec75977 100644 --- a/src/fireworks/types/dataset_update_params.py +++ b/src/fireworks/types/dataset_update_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Literal, Annotated, TypedDict diff --git a/src/fireworks/types/dataset_upload_params.py b/src/fireworks/types/dataset_upload_params.py index 56d1e3a7..f03b632e 100644 --- a/src/fireworks/types/dataset_upload_params.py +++ b/src/fireworks/types/dataset_upload_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import TypedDict diff --git a/src/fireworks/types/dataset_upload_response.py b/src/fireworks/types/dataset_upload_response.py index 9bcfb238..2a9f127e 100644 --- a/src/fireworks/types/dataset_upload_response.py +++ b/src/fireworks/types/dataset_upload_response.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import Optional from .._models import BaseModel diff --git a/src/fireworks/types/dataset_validate_upload_params.py b/src/fireworks/types/dataset_validate_upload_params.py index 589beb1c..1b974f5e 100644 --- a/src/fireworks/types/dataset_validate_upload_params.py +++ b/src/fireworks/types/dataset_validate_upload_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Required, TypedDict diff --git a/src/fireworks/types/deployment.py b/src/fireworks/types/deployment.py index 439e0352..8cd7942d 100644 --- a/src/fireworks/types/deployment.py +++ b/src/fireworks/types/deployment.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import List, Optional from datetime import datetime from typing_extensions import Literal diff --git a/src/fireworks/types/deployment_create_params.py b/src/fireworks/types/deployment_create_params.py index 7b54ff9f..1a5a642f 100644 --- a/src/fireworks/types/deployment_create_params.py +++ b/src/fireworks/types/deployment_create_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing import Union diff --git a/src/fireworks/types/deployment_delete_params.py b/src/fireworks/types/deployment_delete_params.py index e3156452..748ecf59 100644 --- a/src/fireworks/types/deployment_delete_params.py +++ b/src/fireworks/types/deployment_delete_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/deployment_get_params.py b/src/fireworks/types/deployment_get_params.py index d7462d3f..b6668848 100644 --- a/src/fireworks/types/deployment_get_params.py +++ b/src/fireworks/types/deployment_get_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/deployment_list_params.py b/src/fireworks/types/deployment_list_params.py index 7af1837c..408becf6 100644 --- a/src/fireworks/types/deployment_list_params.py +++ b/src/fireworks/types/deployment_list_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/deployment_scale_params.py b/src/fireworks/types/deployment_scale_params.py index f57d0de0..e380f5ec 100644 --- a/src/fireworks/types/deployment_scale_params.py +++ b/src/fireworks/types/deployment_scale_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/deployment_shape.py b/src/fireworks/types/deployment_shape.py index 6249bdea..e1d04a57 100644 --- a/src/fireworks/types/deployment_shape.py +++ b/src/fireworks/types/deployment_shape.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import Optional from datetime import datetime from typing_extensions import Literal diff --git a/src/fireworks/types/deployment_shape_get_params.py b/src/fireworks/types/deployment_shape_get_params.py index e7d76d4c..b55e57ac 100644 --- a/src/fireworks/types/deployment_shape_get_params.py +++ b/src/fireworks/types/deployment_shape_get_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/deployment_shape_list_params.py b/src/fireworks/types/deployment_shape_list_params.py index 5b0ffb61..f9721878 100644 --- a/src/fireworks/types/deployment_shape_list_params.py +++ b/src/fireworks/types/deployment_shape_list_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/deployment_shape_version.py b/src/fireworks/types/deployment_shape_version.py index e73c8be3..ec190077 100644 --- a/src/fireworks/types/deployment_shape_version.py +++ b/src/fireworks/types/deployment_shape_version.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import Optional from datetime import datetime diff --git a/src/fireworks/types/deployment_shape_version_get_params.py b/src/fireworks/types/deployment_shape_version_get_params.py index 7c9b9734..c08bbd9b 100644 --- a/src/fireworks/types/deployment_shape_version_get_params.py +++ b/src/fireworks/types/deployment_shape_version_get_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Required, Annotated, TypedDict diff --git a/src/fireworks/types/deployment_shape_version_list_params.py b/src/fireworks/types/deployment_shape_version_list_params.py index f02ac544..984c07a3 100644 --- a/src/fireworks/types/deployment_shape_version_list_params.py +++ b/src/fireworks/types/deployment_shape_version_list_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/deployment_undelete_params.py b/src/fireworks/types/deployment_undelete_params.py index 4f99999b..707bce86 100644 --- a/src/fireworks/types/deployment_undelete_params.py +++ b/src/fireworks/types/deployment_undelete_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Required, TypedDict diff --git a/src/fireworks/types/deployment_update_params.py b/src/fireworks/types/deployment_update_params.py index d6ba3698..9481acbc 100644 --- a/src/fireworks/types/deployment_update_params.py +++ b/src/fireworks/types/deployment_update_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing import Union diff --git a/src/fireworks/types/dpo_job.py b/src/fireworks/types/dpo_job.py index c5f50457..b891a334 100644 --- a/src/fireworks/types/dpo_job.py +++ b/src/fireworks/types/dpo_job.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import Optional from datetime import datetime from typing_extensions import Literal diff --git a/src/fireworks/types/dpo_job_create_params.py b/src/fireworks/types/dpo_job_create_params.py index 6deeccc4..59ec6290 100644 --- a/src/fireworks/types/dpo_job_create_params.py +++ b/src/fireworks/types/dpo_job_create_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Required, Annotated, TypedDict diff --git a/src/fireworks/types/dpo_job_get_metrics_file_endpoint_response.py b/src/fireworks/types/dpo_job_get_metrics_file_endpoint_response.py index 31158028..0d11e4f1 100644 --- a/src/fireworks/types/dpo_job_get_metrics_file_endpoint_response.py +++ b/src/fireworks/types/dpo_job_get_metrics_file_endpoint_response.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import Optional from pydantic import Field as FieldInfo diff --git a/src/fireworks/types/dpo_job_get_params.py b/src/fireworks/types/dpo_job_get_params.py index fe8dcd21..79c5f4f0 100644 --- a/src/fireworks/types/dpo_job_get_params.py +++ b/src/fireworks/types/dpo_job_get_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/dpo_job_list_params.py b/src/fireworks/types/dpo_job_list_params.py index 1ed44ded..30abadf8 100644 --- a/src/fireworks/types/dpo_job_list_params.py +++ b/src/fireworks/types/dpo_job_list_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/dpo_job_resume_params.py b/src/fireworks/types/dpo_job_resume_params.py index bc160e88..6094f720 100644 --- a/src/fireworks/types/dpo_job_resume_params.py +++ b/src/fireworks/types/dpo_job_resume_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Required, TypedDict diff --git a/src/fireworks/types/evaluation_job_create_params.py b/src/fireworks/types/evaluation_job_create_params.py index 476acabb..351a0f03 100644 --- a/src/fireworks/types/evaluation_job_create_params.py +++ b/src/fireworks/types/evaluation_job_create_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Required, Annotated, TypedDict diff --git a/src/fireworks/types/evaluation_job_create_response.py b/src/fireworks/types/evaluation_job_create_response.py index b654e214..66b767a2 100644 --- a/src/fireworks/types/evaluation_job_create_response.py +++ b/src/fireworks/types/evaluation_job_create_response.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import Dict, Optional from datetime import datetime from typing_extensions import Literal diff --git a/src/fireworks/types/evaluation_job_get_log_endpoint_response.py b/src/fireworks/types/evaluation_job_get_log_endpoint_response.py index f4f7eef8..27ffa450 100644 --- a/src/fireworks/types/evaluation_job_get_log_endpoint_response.py +++ b/src/fireworks/types/evaluation_job_get_log_endpoint_response.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import Optional from datetime import datetime diff --git a/src/fireworks/types/evaluation_job_get_params.py b/src/fireworks/types/evaluation_job_get_params.py index e645019d..07214fc2 100644 --- a/src/fireworks/types/evaluation_job_get_params.py +++ b/src/fireworks/types/evaluation_job_get_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/evaluation_job_get_response.py b/src/fireworks/types/evaluation_job_get_response.py index 70cc3bc8..939bb8db 100644 --- a/src/fireworks/types/evaluation_job_get_response.py +++ b/src/fireworks/types/evaluation_job_get_response.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import Dict, Optional from datetime import datetime from typing_extensions import Literal diff --git a/src/fireworks/types/evaluation_job_list_params.py b/src/fireworks/types/evaluation_job_list_params.py index 3debf18e..0abb5d91 100644 --- a/src/fireworks/types/evaluation_job_list_params.py +++ b/src/fireworks/types/evaluation_job_list_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/evaluation_job_list_response.py b/src/fireworks/types/evaluation_job_list_response.py index 98204ed6..3cb91ec3 100644 --- a/src/fireworks/types/evaluation_job_list_response.py +++ b/src/fireworks/types/evaluation_job_list_response.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import Dict, Optional from datetime import datetime from typing_extensions import Literal diff --git a/src/fireworks/types/evaluation_result.py b/src/fireworks/types/evaluation_result.py index 9f727ac8..f31b8d7a 100644 --- a/src/fireworks/types/evaluation_result.py +++ b/src/fireworks/types/evaluation_result.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from pydantic import Field as FieldInfo from .._models import BaseModel diff --git a/src/fireworks/types/evaluation_result_param.py b/src/fireworks/types/evaluation_result_param.py index c84be7c2..0ca1d284 100644 --- a/src/fireworks/types/evaluation_result_param.py +++ b/src/fireworks/types/evaluation_result_param.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Required, Annotated, TypedDict diff --git a/src/fireworks/types/evaluator_create_params.py b/src/fireworks/types/evaluator_create_params.py index dfdf95f9..8d21e93f 100644 --- a/src/fireworks/types/evaluator_create_params.py +++ b/src/fireworks/types/evaluator_create_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing import Dict, Iterable diff --git a/src/fireworks/types/evaluator_create_response.py b/src/fireworks/types/evaluator_create_response.py index 7bf5d7b1..d13afdab 100644 --- a/src/fireworks/types/evaluator_create_response.py +++ b/src/fireworks/types/evaluator_create_response.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import Dict, List, Optional from datetime import datetime from typing_extensions import Literal diff --git a/src/fireworks/types/evaluator_get_build_log_endpoint_params.py b/src/fireworks/types/evaluator_get_build_log_endpoint_params.py index 78413cde..ccf2e8a4 100644 --- a/src/fireworks/types/evaluator_get_build_log_endpoint_params.py +++ b/src/fireworks/types/evaluator_get_build_log_endpoint_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/evaluator_get_build_log_endpoint_response.py b/src/fireworks/types/evaluator_get_build_log_endpoint_response.py index 2906cee1..35258006 100644 --- a/src/fireworks/types/evaluator_get_build_log_endpoint_response.py +++ b/src/fireworks/types/evaluator_get_build_log_endpoint_response.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import Optional from pydantic import Field as FieldInfo diff --git a/src/fireworks/types/evaluator_get_params.py b/src/fireworks/types/evaluator_get_params.py index 4848a7fc..4d02fa79 100644 --- a/src/fireworks/types/evaluator_get_params.py +++ b/src/fireworks/types/evaluator_get_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/evaluator_get_response.py b/src/fireworks/types/evaluator_get_response.py index cd5c3b69..72b09202 100644 --- a/src/fireworks/types/evaluator_get_response.py +++ b/src/fireworks/types/evaluator_get_response.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import Dict, List, Optional from datetime import datetime from typing_extensions import Literal diff --git a/src/fireworks/types/evaluator_get_source_code_endpoint_params.py b/src/fireworks/types/evaluator_get_source_code_endpoint_params.py index abc4905e..c8b45851 100644 --- a/src/fireworks/types/evaluator_get_source_code_endpoint_params.py +++ b/src/fireworks/types/evaluator_get_source_code_endpoint_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/evaluator_get_source_code_endpoint_response.py b/src/fireworks/types/evaluator_get_source_code_endpoint_response.py index 970099b1..30d1b0be 100644 --- a/src/fireworks/types/evaluator_get_source_code_endpoint_response.py +++ b/src/fireworks/types/evaluator_get_source_code_endpoint_response.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import Dict, Optional from pydantic import Field as FieldInfo diff --git a/src/fireworks/types/evaluator_get_upload_endpoint_params.py b/src/fireworks/types/evaluator_get_upload_endpoint_params.py index 95887b47..f717869c 100644 --- a/src/fireworks/types/evaluator_get_upload_endpoint_params.py +++ b/src/fireworks/types/evaluator_get_upload_endpoint_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing import Dict diff --git a/src/fireworks/types/evaluator_get_upload_endpoint_response.py b/src/fireworks/types/evaluator_get_upload_endpoint_response.py index 6eb10544..38e9e372 100644 --- a/src/fireworks/types/evaluator_get_upload_endpoint_response.py +++ b/src/fireworks/types/evaluator_get_upload_endpoint_response.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import Dict, Optional from pydantic import Field as FieldInfo diff --git a/src/fireworks/types/evaluator_list_params.py b/src/fireworks/types/evaluator_list_params.py index fa00bcb7..5b2b2432 100644 --- a/src/fireworks/types/evaluator_list_params.py +++ b/src/fireworks/types/evaluator_list_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/evaluator_list_response.py b/src/fireworks/types/evaluator_list_response.py index 0da30455..fea8c359 100644 --- a/src/fireworks/types/evaluator_list_response.py +++ b/src/fireworks/types/evaluator_list_response.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import Dict, List, Optional from datetime import datetime from typing_extensions import Literal diff --git a/src/fireworks/types/evaluator_source.py b/src/fireworks/types/evaluator_source.py index 38654c80..0d018b03 100644 --- a/src/fireworks/types/evaluator_source.py +++ b/src/fireworks/types/evaluator_source.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import Optional from typing_extensions import Literal diff --git a/src/fireworks/types/evaluator_source_param.py b/src/fireworks/types/evaluator_source_param.py index c2ac56d0..c7edf403 100644 --- a/src/fireworks/types/evaluator_source_param.py +++ b/src/fireworks/types/evaluator_source_param.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Literal, Annotated, TypedDict diff --git a/src/fireworks/types/evaluator_update_params.py b/src/fireworks/types/evaluator_update_params.py index 3d93e48e..ce2990a9 100644 --- a/src/fireworks/types/evaluator_update_params.py +++ b/src/fireworks/types/evaluator_update_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing import Dict, Iterable diff --git a/src/fireworks/types/evaluator_update_response.py b/src/fireworks/types/evaluator_update_response.py index e9bfa777..9030ca1d 100644 --- a/src/fireworks/types/evaluator_update_response.py +++ b/src/fireworks/types/evaluator_update_response.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import Dict, List, Optional from datetime import datetime from typing_extensions import Literal diff --git a/src/fireworks/types/evaluator_validate_upload_params.py b/src/fireworks/types/evaluator_validate_upload_params.py index 829a72eb..101366f5 100644 --- a/src/fireworks/types/evaluator_validate_upload_params.py +++ b/src/fireworks/types/evaluator_validate_upload_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Required, TypedDict diff --git a/src/fireworks/types/lora_get_params.py b/src/fireworks/types/lora_get_params.py index 7b5200cd..3f1a4e87 100644 --- a/src/fireworks/types/lora_get_params.py +++ b/src/fireworks/types/lora_get_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/lora_list_params.py b/src/fireworks/types/lora_list_params.py index a1049376..f6d649f9 100644 --- a/src/fireworks/types/lora_list_params.py +++ b/src/fireworks/types/lora_list_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/lora_load_params.py b/src/fireworks/types/lora_load_params.py index 0a6ca89e..60df5771 100644 --- a/src/fireworks/types/lora_load_params.py +++ b/src/fireworks/types/lora_load_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/lora_update_params.py b/src/fireworks/types/lora_update_params.py index de3b0dc1..150b4c03 100644 --- a/src/fireworks/types/lora_update_params.py +++ b/src/fireworks/types/lora_update_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/message_create_params.py b/src/fireworks/types/message_create_params.py index d9e1dbc0..9254d2be 100644 --- a/src/fireworks/types/message_create_params.py +++ b/src/fireworks/types/message_create_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing import Dict, Union, Iterable, Optional diff --git a/src/fireworks/types/message_create_response.py b/src/fireworks/types/message_create_response.py index 9acf45af..20a24ebe 100644 --- a/src/fireworks/types/message_create_response.py +++ b/src/fireworks/types/message_create_response.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import List, Union, Optional from typing_extensions import Literal diff --git a/src/fireworks/types/model.py b/src/fireworks/types/model.py index 865911e2..c6bea3f6 100644 --- a/src/fireworks/types/model.py +++ b/src/fireworks/types/model.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import Dict, List, Optional from datetime import datetime from typing_extensions import Literal diff --git a/src/fireworks/types/model_create_params.py b/src/fireworks/types/model_create_params.py index a97ebd8d..adecc81c 100644 --- a/src/fireworks/types/model_create_params.py +++ b/src/fireworks/types/model_create_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Required, Annotated, TypedDict diff --git a/src/fireworks/types/model_get_download_endpoint_params.py b/src/fireworks/types/model_get_download_endpoint_params.py index 187f66c8..4f9967c8 100644 --- a/src/fireworks/types/model_get_download_endpoint_params.py +++ b/src/fireworks/types/model_get_download_endpoint_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/model_get_download_endpoint_response.py b/src/fireworks/types/model_get_download_endpoint_response.py index af1dc825..67ed9530 100644 --- a/src/fireworks/types/model_get_download_endpoint_response.py +++ b/src/fireworks/types/model_get_download_endpoint_response.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import Dict, Optional from pydantic import Field as FieldInfo diff --git a/src/fireworks/types/model_get_params.py b/src/fireworks/types/model_get_params.py index 56b48e64..96ad3c88 100644 --- a/src/fireworks/types/model_get_params.py +++ b/src/fireworks/types/model_get_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/model_get_upload_endpoint_params.py b/src/fireworks/types/model_get_upload_endpoint_params.py index 5a4d4ae9..8ff57783 100644 --- a/src/fireworks/types/model_get_upload_endpoint_params.py +++ b/src/fireworks/types/model_get_upload_endpoint_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing import Dict diff --git a/src/fireworks/types/model_get_upload_endpoint_response.py b/src/fireworks/types/model_get_upload_endpoint_response.py index 8765521c..e273fbc4 100644 --- a/src/fireworks/types/model_get_upload_endpoint_response.py +++ b/src/fireworks/types/model_get_upload_endpoint_response.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import Dict, Optional from pydantic import Field as FieldInfo diff --git a/src/fireworks/types/model_list_params.py b/src/fireworks/types/model_list_params.py index 88f009b2..ff1ef1f3 100644 --- a/src/fireworks/types/model_list_params.py +++ b/src/fireworks/types/model_list_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/model_param.py b/src/fireworks/types/model_param.py index 5d4f5cc3..f5d47878 100644 --- a/src/fireworks/types/model_param.py +++ b/src/fireworks/types/model_param.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Literal, Annotated, TypedDict diff --git a/src/fireworks/types/model_prepare_params.py b/src/fireworks/types/model_prepare_params.py index 97c38ced..4e0bd190 100644 --- a/src/fireworks/types/model_prepare_params.py +++ b/src/fireworks/types/model_prepare_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Literal, Annotated, TypedDict diff --git a/src/fireworks/types/model_update_params.py b/src/fireworks/types/model_update_params.py index 3c35636c..8235681a 100644 --- a/src/fireworks/types/model_update_params.py +++ b/src/fireworks/types/model_update_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Literal, Annotated, TypedDict diff --git a/src/fireworks/types/model_validate_upload_params.py b/src/fireworks/types/model_validate_upload_params.py index f5b5cda6..46e27929 100644 --- a/src/fireworks/types/model_validate_upload_params.py +++ b/src/fireworks/types/model_validate_upload_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/model_validate_upload_response.py b/src/fireworks/types/model_validate_upload_response.py index 7b3da9c9..75d6f543 100644 --- a/src/fireworks/types/model_validate_upload_response.py +++ b/src/fireworks/types/model_validate_upload_response.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import List, Optional from .._models import BaseModel diff --git a/src/fireworks/types/peft_details.py b/src/fireworks/types/peft_details.py index 450104e5..33b8bb40 100644 --- a/src/fireworks/types/peft_details.py +++ b/src/fireworks/types/peft_details.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import List, Optional from pydantic import Field as FieldInfo diff --git a/src/fireworks/types/peft_details_param.py b/src/fireworks/types/peft_details_param.py index 7d46fe11..86691b9a 100644 --- a/src/fireworks/types/peft_details_param.py +++ b/src/fireworks/types/peft_details_param.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Required, Annotated, TypedDict diff --git a/src/fireworks/types/placement.py b/src/fireworks/types/placement.py index 0c0c7a41..93c4a33b 100644 --- a/src/fireworks/types/placement.py +++ b/src/fireworks/types/placement.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import List, Optional from typing_extensions import Literal diff --git a/src/fireworks/types/placement_param.py b/src/fireworks/types/placement_param.py index 3a724a4d..e460127f 100644 --- a/src/fireworks/types/placement_param.py +++ b/src/fireworks/types/placement_param.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing import List diff --git a/src/fireworks/types/reinforcement_fine_tuning_job.py b/src/fireworks/types/reinforcement_fine_tuning_job.py index 06e8d7d7..2ec2bc1e 100644 --- a/src/fireworks/types/reinforcement_fine_tuning_job.py +++ b/src/fireworks/types/reinforcement_fine_tuning_job.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import Dict, Optional from datetime import datetime from typing_extensions import Literal diff --git a/src/fireworks/types/reinforcement_fine_tuning_job_cancel_params.py b/src/fireworks/types/reinforcement_fine_tuning_job_cancel_params.py index 5e6f9c0b..28642c1f 100644 --- a/src/fireworks/types/reinforcement_fine_tuning_job_cancel_params.py +++ b/src/fireworks/types/reinforcement_fine_tuning_job_cancel_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Required, TypedDict diff --git a/src/fireworks/types/reinforcement_fine_tuning_job_create_params.py b/src/fireworks/types/reinforcement_fine_tuning_job_create_params.py index b9d73238..57ba0eab 100644 --- a/src/fireworks/types/reinforcement_fine_tuning_job_create_params.py +++ b/src/fireworks/types/reinforcement_fine_tuning_job_create_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Required, Annotated, TypedDict diff --git a/src/fireworks/types/reinforcement_fine_tuning_job_get_params.py b/src/fireworks/types/reinforcement_fine_tuning_job_get_params.py index 869615f3..8dea1e05 100644 --- a/src/fireworks/types/reinforcement_fine_tuning_job_get_params.py +++ b/src/fireworks/types/reinforcement_fine_tuning_job_get_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/reinforcement_fine_tuning_job_list_params.py b/src/fireworks/types/reinforcement_fine_tuning_job_list_params.py index c90f855f..d4ca4d9e 100644 --- a/src/fireworks/types/reinforcement_fine_tuning_job_list_params.py +++ b/src/fireworks/types/reinforcement_fine_tuning_job_list_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/reinforcement_fine_tuning_job_resume_params.py b/src/fireworks/types/reinforcement_fine_tuning_job_resume_params.py index 7737d2a1..9f99b834 100644 --- a/src/fireworks/types/reinforcement_fine_tuning_job_resume_params.py +++ b/src/fireworks/types/reinforcement_fine_tuning_job_resume_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Required, TypedDict diff --git a/src/fireworks/types/reinforcement_fine_tuning_step.py b/src/fireworks/types/reinforcement_fine_tuning_step.py index 13806b1f..07be5052 100644 --- a/src/fireworks/types/reinforcement_fine_tuning_step.py +++ b/src/fireworks/types/reinforcement_fine_tuning_step.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import Dict, List, Optional from datetime import datetime from typing_extensions import Literal diff --git a/src/fireworks/types/reinforcement_fine_tuning_step_create_params.py b/src/fireworks/types/reinforcement_fine_tuning_step_create_params.py index 63fa74fc..fca36328 100644 --- a/src/fireworks/types/reinforcement_fine_tuning_step_create_params.py +++ b/src/fireworks/types/reinforcement_fine_tuning_step_create_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/reinforcement_fine_tuning_step_execute_params.py b/src/fireworks/types/reinforcement_fine_tuning_step_execute_params.py index 43ab1b0f..1b2c4e50 100644 --- a/src/fireworks/types/reinforcement_fine_tuning_step_execute_params.py +++ b/src/fireworks/types/reinforcement_fine_tuning_step_execute_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Required, Annotated, TypedDict diff --git a/src/fireworks/types/reinforcement_fine_tuning_step_get_params.py b/src/fireworks/types/reinforcement_fine_tuning_step_get_params.py index 81a81497..faf8bf43 100644 --- a/src/fireworks/types/reinforcement_fine_tuning_step_get_params.py +++ b/src/fireworks/types/reinforcement_fine_tuning_step_get_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/reinforcement_fine_tuning_step_list_params.py b/src/fireworks/types/reinforcement_fine_tuning_step_list_params.py index ac765032..0be50603 100644 --- a/src/fireworks/types/reinforcement_fine_tuning_step_list_params.py +++ b/src/fireworks/types/reinforcement_fine_tuning_step_list_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/reinforcement_fine_tuning_step_resume_params.py b/src/fireworks/types/reinforcement_fine_tuning_step_resume_params.py index 40897d87..14723a2f 100644 --- a/src/fireworks/types/reinforcement_fine_tuning_step_resume_params.py +++ b/src/fireworks/types/reinforcement_fine_tuning_step_resume_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Required, TypedDict diff --git a/src/fireworks/types/request_char_location_citation_param.py b/src/fireworks/types/request_char_location_citation_param.py index 1fd9ce92..b7216a89 100644 --- a/src/fireworks/types/request_char_location_citation_param.py +++ b/src/fireworks/types/request_char_location_citation_param.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing import Optional diff --git a/src/fireworks/types/request_content_block_location_citation_param.py b/src/fireworks/types/request_content_block_location_citation_param.py index 97b6c4ad..fa1df15a 100644 --- a/src/fireworks/types/request_content_block_location_citation_param.py +++ b/src/fireworks/types/request_content_block_location_citation_param.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing import Optional diff --git a/src/fireworks/types/request_image_block_param.py b/src/fireworks/types/request_image_block_param.py index b6835558..fa952bed 100644 --- a/src/fireworks/types/request_image_block_param.py +++ b/src/fireworks/types/request_image_block_param.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing import Union, Optional diff --git a/src/fireworks/types/request_page_location_citation_param.py b/src/fireworks/types/request_page_location_citation_param.py index 512c3899..7ac20230 100644 --- a/src/fireworks/types/request_page_location_citation_param.py +++ b/src/fireworks/types/request_page_location_citation_param.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing import Optional diff --git a/src/fireworks/types/request_search_result_location_citation_param.py b/src/fireworks/types/request_search_result_location_citation_param.py index 9918a0f9..2fd900c7 100644 --- a/src/fireworks/types/request_search_result_location_citation_param.py +++ b/src/fireworks/types/request_search_result_location_citation_param.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing import Optional diff --git a/src/fireworks/types/request_text_block_param.py b/src/fireworks/types/request_text_block_param.py index 69301bbd..8ad86529 100644 --- a/src/fireworks/types/request_text_block_param.py +++ b/src/fireworks/types/request_text_block_param.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing import Union, Iterable, Optional diff --git a/src/fireworks/types/request_web_search_result_location_citation_param.py b/src/fireworks/types/request_web_search_result_location_citation_param.py index e253314b..94dcd8dc 100644 --- a/src/fireworks/types/request_web_search_result_location_citation_param.py +++ b/src/fireworks/types/request_web_search_result_location_citation_param.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing import Optional diff --git a/src/fireworks/types/response_char_location_citation.py b/src/fireworks/types/response_char_location_citation.py index c703344c..e7d01918 100644 --- a/src/fireworks/types/response_char_location_citation.py +++ b/src/fireworks/types/response_char_location_citation.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import Optional from typing_extensions import Literal diff --git a/src/fireworks/types/response_content_block_location_citation.py b/src/fireworks/types/response_content_block_location_citation.py index a8b68cef..d17d0ed0 100644 --- a/src/fireworks/types/response_content_block_location_citation.py +++ b/src/fireworks/types/response_content_block_location_citation.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import Optional from typing_extensions import Literal diff --git a/src/fireworks/types/response_page_location_citation.py b/src/fireworks/types/response_page_location_citation.py index 849117d7..a5956d87 100644 --- a/src/fireworks/types/response_page_location_citation.py +++ b/src/fireworks/types/response_page_location_citation.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import Optional from typing_extensions import Literal diff --git a/src/fireworks/types/response_redacted_thinking_block.py b/src/fireworks/types/response_redacted_thinking_block.py index f4bece0c..f1ce26f9 100644 --- a/src/fireworks/types/response_redacted_thinking_block.py +++ b/src/fireworks/types/response_redacted_thinking_block.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing_extensions import Literal from .._models import BaseModel diff --git a/src/fireworks/types/response_search_result_location_citation.py b/src/fireworks/types/response_search_result_location_citation.py index 1d3f65a7..c929fadb 100644 --- a/src/fireworks/types/response_search_result_location_citation.py +++ b/src/fireworks/types/response_search_result_location_citation.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import Optional from typing_extensions import Literal diff --git a/src/fireworks/types/response_text_block.py b/src/fireworks/types/response_text_block.py index 170067a3..92f83ef0 100644 --- a/src/fireworks/types/response_text_block.py +++ b/src/fireworks/types/response_text_block.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import List, Union, Optional from typing_extensions import Literal, Annotated, TypeAlias diff --git a/src/fireworks/types/response_thinking_block.py b/src/fireworks/types/response_thinking_block.py index 7f15197c..3defbe35 100644 --- a/src/fireworks/types/response_thinking_block.py +++ b/src/fireworks/types/response_thinking_block.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing_extensions import Literal from .._models import BaseModel diff --git a/src/fireworks/types/response_tool_use_block.py b/src/fireworks/types/response_tool_use_block.py index c1679f9e..517974ad 100644 --- a/src/fireworks/types/response_tool_use_block.py +++ b/src/fireworks/types/response_tool_use_block.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import Dict from typing_extensions import Literal diff --git a/src/fireworks/types/response_web_search_result_location_citation.py b/src/fireworks/types/response_web_search_result_location_citation.py index ba924b88..d28a3367 100644 --- a/src/fireworks/types/response_web_search_result_location_citation.py +++ b/src/fireworks/types/response_web_search_result_location_citation.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import Optional from typing_extensions import Literal diff --git a/src/fireworks/types/secret.py b/src/fireworks/types/secret.py index ce28b892..6b59f87e 100644 --- a/src/fireworks/types/secret.py +++ b/src/fireworks/types/secret.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import Optional from pydantic import Field as FieldInfo diff --git a/src/fireworks/types/secret_create_params.py b/src/fireworks/types/secret_create_params.py index 15431895..848391e1 100644 --- a/src/fireworks/types/secret_create_params.py +++ b/src/fireworks/types/secret_create_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Required, Annotated, TypedDict diff --git a/src/fireworks/types/secret_get_params.py b/src/fireworks/types/secret_get_params.py index 2545ffce..3f490f02 100644 --- a/src/fireworks/types/secret_get_params.py +++ b/src/fireworks/types/secret_get_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/secret_list_params.py b/src/fireworks/types/secret_list_params.py index 27d3da5e..25fcd81a 100644 --- a/src/fireworks/types/secret_list_params.py +++ b/src/fireworks/types/secret_list_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/secret_update_params.py b/src/fireworks/types/secret_update_params.py index 8b2886c7..fa30df6d 100644 --- a/src/fireworks/types/secret_update_params.py +++ b/src/fireworks/types/secret_update_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Required, Annotated, TypedDict diff --git a/src/fireworks/types/shared/__init__.py b/src/fireworks/types/shared/__init__.py index 9c98dfca..9a15ea01 100644 --- a/src/fireworks/types/shared/__init__.py +++ b/src/fireworks/types/shared/__init__.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from .choice import Choice as Choice from .status import Status as Status from .log_probs import LogProbs as LogProbs diff --git a/src/fireworks/types/shared/chat_completion_message_tool_call.py b/src/fireworks/types/shared/chat_completion_message_tool_call.py index 73d52aba..27f4a624 100644 --- a/src/fireworks/types/shared/chat_completion_message_tool_call.py +++ b/src/fireworks/types/shared/chat_completion_message_tool_call.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import Union, Optional from typing_extensions import TypeAlias diff --git a/src/fireworks/types/shared/chat_completion_message_tool_call_function.py b/src/fireworks/types/shared/chat_completion_message_tool_call_function.py index 06a856d3..27e970b8 100644 --- a/src/fireworks/types/shared/chat_completion_message_tool_call_function.py +++ b/src/fireworks/types/shared/chat_completion_message_tool_call_function.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import Dict, Union, Optional from ..._models import BaseModel diff --git a/src/fireworks/types/shared/chat_completion_tool.py b/src/fireworks/types/shared/chat_completion_tool.py index 8d60aaac..7c80a256 100644 --- a/src/fireworks/types/shared/chat_completion_tool.py +++ b/src/fireworks/types/shared/chat_completion_tool.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import Dict, Optional from typing_extensions import Literal diff --git a/src/fireworks/types/shared/chat_message.py b/src/fireworks/types/shared/chat_message.py index c6b32723..28d9ac3f 100644 --- a/src/fireworks/types/shared/chat_message.py +++ b/src/fireworks/types/shared/chat_message.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import List, Union, Optional from ..._models import BaseModel diff --git a/src/fireworks/types/shared/choice.py b/src/fireworks/types/shared/choice.py index 3c91eb63..10f39e79 100644 --- a/src/fireworks/types/shared/choice.py +++ b/src/fireworks/types/shared/choice.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import List, Union, Optional from typing_extensions import Literal, TypeAlias diff --git a/src/fireworks/types/shared/deployed_model.py b/src/fireworks/types/shared/deployed_model.py index 1bd1490d..7db95ee1 100644 --- a/src/fireworks/types/shared/deployed_model.py +++ b/src/fireworks/types/shared/deployed_model.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import Optional from datetime import datetime from typing_extensions import Literal diff --git a/src/fireworks/types/shared/deployed_model_ref.py b/src/fireworks/types/shared/deployed_model_ref.py index 63a551a5..536eba98 100644 --- a/src/fireworks/types/shared/deployed_model_ref.py +++ b/src/fireworks/types/shared/deployed_model_ref.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import Optional from typing_extensions import Literal diff --git a/src/fireworks/types/shared/log_probs.py b/src/fireworks/types/shared/log_probs.py index 32c3a9bd..5721bfb6 100644 --- a/src/fireworks/types/shared/log_probs.py +++ b/src/fireworks/types/shared/log_probs.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import Dict, List, Optional from ..._models import BaseModel diff --git a/src/fireworks/types/shared/new_log_probs.py b/src/fireworks/types/shared/new_log_probs.py index 85cf3360..cb9000f8 100644 --- a/src/fireworks/types/shared/new_log_probs.py +++ b/src/fireworks/types/shared/new_log_probs.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import List, Optional from ..._models import BaseModel diff --git a/src/fireworks/types/shared/new_log_probs_content.py b/src/fireworks/types/shared/new_log_probs_content.py index 9bf3334f..c985a319 100644 --- a/src/fireworks/types/shared/new_log_probs_content.py +++ b/src/fireworks/types/shared/new_log_probs_content.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import List, Optional from ..._models import BaseModel diff --git a/src/fireworks/types/shared/new_log_probs_content_top_log_probs.py b/src/fireworks/types/shared/new_log_probs_content_top_log_probs.py index adace06c..5c3519b3 100644 --- a/src/fireworks/types/shared/new_log_probs_content_top_log_probs.py +++ b/src/fireworks/types/shared/new_log_probs_content_top_log_probs.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import List, Optional from ..._models import BaseModel diff --git a/src/fireworks/types/shared/prompt_tokens_details.py b/src/fireworks/types/shared/prompt_tokens_details.py index 1d7819cb..2692236d 100644 --- a/src/fireworks/types/shared/prompt_tokens_details.py +++ b/src/fireworks/types/shared/prompt_tokens_details.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import Optional from ..._models import BaseModel diff --git a/src/fireworks/types/shared/raw_output.py b/src/fireworks/types/shared/raw_output.py index 9b077a6e..ceb4f20c 100644 --- a/src/fireworks/types/shared/raw_output.py +++ b/src/fireworks/types/shared/raw_output.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import List, Union, Optional from ..._models import BaseModel diff --git a/src/fireworks/types/shared/reinforcement_learning_loss_config.py b/src/fireworks/types/shared/reinforcement_learning_loss_config.py index 6b9caaa1..eac9aae3 100644 --- a/src/fireworks/types/shared/reinforcement_learning_loss_config.py +++ b/src/fireworks/types/shared/reinforcement_learning_loss_config.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import Optional from typing_extensions import Literal diff --git a/src/fireworks/types/shared/status.py b/src/fireworks/types/shared/status.py index 24670a82..2121d7c9 100644 --- a/src/fireworks/types/shared/status.py +++ b/src/fireworks/types/shared/status.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import Optional from typing_extensions import Literal diff --git a/src/fireworks/types/shared/training_config.py b/src/fireworks/types/shared/training_config.py index c8e06548..594a6665 100644 --- a/src/fireworks/types/shared/training_config.py +++ b/src/fireworks/types/shared/training_config.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import Optional from typing_extensions import Literal diff --git a/src/fireworks/types/shared/usage_info.py b/src/fireworks/types/shared/usage_info.py index bbf29990..421e4f4d 100644 --- a/src/fireworks/types/shared/usage_info.py +++ b/src/fireworks/types/shared/usage_info.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import Optional from ..._models import BaseModel diff --git a/src/fireworks/types/shared/wandb_config.py b/src/fireworks/types/shared/wandb_config.py index 40d7e538..8e6ad800 100644 --- a/src/fireworks/types/shared/wandb_config.py +++ b/src/fireworks/types/shared/wandb_config.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import Optional from pydantic import Field as FieldInfo diff --git a/src/fireworks/types/shared_params/__init__.py b/src/fireworks/types/shared_params/__init__.py index 24d30f05..ea021703 100644 --- a/src/fireworks/types/shared_params/__init__.py +++ b/src/fireworks/types/shared_params/__init__.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from .status import Status as Status from .chat_message import ChatMessage as ChatMessage from .wandb_config import WandbConfig as WandbConfig diff --git a/src/fireworks/types/shared_params/chat_completion_message_tool_call.py b/src/fireworks/types/shared_params/chat_completion_message_tool_call.py index 903aea42..666b9610 100644 --- a/src/fireworks/types/shared_params/chat_completion_message_tool_call.py +++ b/src/fireworks/types/shared_params/chat_completion_message_tool_call.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing import Union, Optional diff --git a/src/fireworks/types/shared_params/chat_completion_message_tool_call_function.py b/src/fireworks/types/shared_params/chat_completion_message_tool_call_function.py index b658a604..29fe62d1 100644 --- a/src/fireworks/types/shared_params/chat_completion_message_tool_call_function.py +++ b/src/fireworks/types/shared_params/chat_completion_message_tool_call_function.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing import Dict, Union, Optional diff --git a/src/fireworks/types/shared_params/chat_completion_tool.py b/src/fireworks/types/shared_params/chat_completion_tool.py index e23a5a51..37d1f1b8 100644 --- a/src/fireworks/types/shared_params/chat_completion_tool.py +++ b/src/fireworks/types/shared_params/chat_completion_tool.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing import Dict, Optional diff --git a/src/fireworks/types/shared_params/chat_message.py b/src/fireworks/types/shared_params/chat_message.py index 38ca206c..293c2f03 100644 --- a/src/fireworks/types/shared_params/chat_message.py +++ b/src/fireworks/types/shared_params/chat_message.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing import Union, Iterable, Optional diff --git a/src/fireworks/types/shared_params/deployed_model_ref.py b/src/fireworks/types/shared_params/deployed_model_ref.py index 143c7b04..57dead75 100644 --- a/src/fireworks/types/shared_params/deployed_model_ref.py +++ b/src/fireworks/types/shared_params/deployed_model_ref.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import TypedDict diff --git a/src/fireworks/types/shared_params/reinforcement_learning_loss_config.py b/src/fireworks/types/shared_params/reinforcement_learning_loss_config.py index c4609dac..6b406ff2 100644 --- a/src/fireworks/types/shared_params/reinforcement_learning_loss_config.py +++ b/src/fireworks/types/shared_params/reinforcement_learning_loss_config.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Literal, Annotated, TypedDict diff --git a/src/fireworks/types/shared_params/status.py b/src/fireworks/types/shared_params/status.py index 5a7a12a5..09f1d5b9 100644 --- a/src/fireworks/types/shared_params/status.py +++ b/src/fireworks/types/shared_params/status.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Literal, TypedDict diff --git a/src/fireworks/types/shared_params/training_config.py b/src/fireworks/types/shared_params/training_config.py index b46bb559..3704f20e 100644 --- a/src/fireworks/types/shared_params/training_config.py +++ b/src/fireworks/types/shared_params/training_config.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Literal, Annotated, TypedDict diff --git a/src/fireworks/types/shared_params/wandb_config.py b/src/fireworks/types/shared_params/wandb_config.py index 1f8052fc..e6a1cf1a 100644 --- a/src/fireworks/types/shared_params/wandb_config.py +++ b/src/fireworks/types/shared_params/wandb_config.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/splitted.py b/src/fireworks/types/splitted.py index 73e04049..c83dc18e 100644 --- a/src/fireworks/types/splitted.py +++ b/src/fireworks/types/splitted.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from pydantic import Field as FieldInfo from .._models import BaseModel diff --git a/src/fireworks/types/splitted_param.py b/src/fireworks/types/splitted_param.py index 3c72aa8e..3c099cfb 100644 --- a/src/fireworks/types/splitted_param.py +++ b/src/fireworks/types/splitted_param.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Required, Annotated, TypedDict diff --git a/src/fireworks/types/supervised_fine_tuning_job.py b/src/fireworks/types/supervised_fine_tuning_job.py index 1a794145..1ed706d4 100644 --- a/src/fireworks/types/supervised_fine_tuning_job.py +++ b/src/fireworks/types/supervised_fine_tuning_job.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import Optional from datetime import datetime from typing_extensions import Literal diff --git a/src/fireworks/types/supervised_fine_tuning_job_create_params.py b/src/fireworks/types/supervised_fine_tuning_job_create_params.py index 937b7b7e..64f0d5ba 100644 --- a/src/fireworks/types/supervised_fine_tuning_job_create_params.py +++ b/src/fireworks/types/supervised_fine_tuning_job_create_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Literal, Required, Annotated, TypedDict diff --git a/src/fireworks/types/supervised_fine_tuning_job_get_params.py b/src/fireworks/types/supervised_fine_tuning_job_get_params.py index 0d0e3b6b..a9732665 100644 --- a/src/fireworks/types/supervised_fine_tuning_job_get_params.py +++ b/src/fireworks/types/supervised_fine_tuning_job_get_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/supervised_fine_tuning_job_list_params.py b/src/fireworks/types/supervised_fine_tuning_job_list_params.py index 0d668cc1..c6126b2e 100644 --- a/src/fireworks/types/supervised_fine_tuning_job_list_params.py +++ b/src/fireworks/types/supervised_fine_tuning_job_list_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/supervised_fine_tuning_job_resume_params.py b/src/fireworks/types/supervised_fine_tuning_job_resume_params.py index dd50cca5..fa429b32 100644 --- a/src/fireworks/types/supervised_fine_tuning_job_resume_params.py +++ b/src/fireworks/types/supervised_fine_tuning_job_resume_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Required, TypedDict diff --git a/src/fireworks/types/transformed.py b/src/fireworks/types/transformed.py index 82e58495..8c95d2e9 100644 --- a/src/fireworks/types/transformed.py +++ b/src/fireworks/types/transformed.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import Optional from typing_extensions import Literal diff --git a/src/fireworks/types/transformed_param.py b/src/fireworks/types/transformed_param.py index 2800bcb0..10ba6bbd 100644 --- a/src/fireworks/types/transformed_param.py +++ b/src/fireworks/types/transformed_param.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Literal, Required, Annotated, TypedDict diff --git a/src/fireworks/types/type_date.py b/src/fireworks/types/type_date.py index 5b0719f0..4e699fdf 100644 --- a/src/fireworks/types/type_date.py +++ b/src/fireworks/types/type_date.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import Optional from .._models import BaseModel diff --git a/src/fireworks/types/type_date_param.py b/src/fireworks/types/type_date_param.py index 5c5ddc83..0486898b 100644 --- a/src/fireworks/types/type_date_param.py +++ b/src/fireworks/types/type_date_param.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import TypedDict diff --git a/src/fireworks/types/user.py b/src/fireworks/types/user.py index d457e66e..de3ef2cc 100644 --- a/src/fireworks/types/user.py +++ b/src/fireworks/types/user.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from typing import Optional from datetime import datetime from typing_extensions import Literal diff --git a/src/fireworks/types/user_create_params.py b/src/fireworks/types/user_create_params.py index bbcd60fe..75b5dfff 100644 --- a/src/fireworks/types/user_create_params.py +++ b/src/fireworks/types/user_create_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Required, Annotated, TypedDict diff --git a/src/fireworks/types/user_get_params.py b/src/fireworks/types/user_get_params.py index a6d169cd..c4b8548b 100644 --- a/src/fireworks/types/user_get_params.py +++ b/src/fireworks/types/user_get_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/user_list_params.py b/src/fireworks/types/user_list_params.py index dd4d40d1..b2bc76c2 100644 --- a/src/fireworks/types/user_list_params.py +++ b/src/fireworks/types/user_list_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Annotated, TypedDict diff --git a/src/fireworks/types/user_update_params.py b/src/fireworks/types/user_update_params.py index 4ff0e472..4292d26e 100644 --- a/src/fireworks/types/user_update_params.py +++ b/src/fireworks/types/user_update_params.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations from typing_extensions import Required, Annotated, TypedDict diff --git a/src/fireworks_ai/lib/.keep b/src/fireworks_ai/lib/.keep index 94387375..5e2c99fd 100644 --- a/src/fireworks_ai/lib/.keep +++ b/src/fireworks_ai/lib/.keep @@ -1,3 +1,4 @@ -This directory holds hand-maintained code that extends the SDK. +File generated from our OpenAPI spec by Stainless. -The REST API client code generator does not write into this directory; its contents (other than this keep file) are preserved across regenerations. \ No newline at end of file +This directory can be used to store custom files to expand the SDK. +It is ignored by Stainless code generation and its content (other than this keep file) won't be touched. \ No newline at end of file diff --git a/tests/__init__.py b/tests/__init__.py index e69de29b..fd8019a9 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -0,0 +1 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. diff --git a/tests/api_resources/__init__.py b/tests/api_resources/__init__.py index e69de29b..fd8019a9 100644 --- a/tests/api_resources/__init__.py +++ b/tests/api_resources/__init__.py @@ -0,0 +1 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. diff --git a/tests/api_resources/chat/__init__.py b/tests/api_resources/chat/__init__.py index e69de29b..fd8019a9 100644 --- a/tests/api_resources/chat/__init__.py +++ b/tests/api_resources/chat/__init__.py @@ -0,0 +1 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. diff --git a/tests/api_resources/chat/test_completions.py b/tests/api_resources/chat/test_completions.py index f0cd1bb6..afa92884 100644 --- a/tests/api_resources/chat/test_completions.py +++ b/tests/api_resources/chat/test_completions.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations import os @@ -131,7 +133,7 @@ def test_raw_response_create_overload_1(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" completion = response.parse() assert_matches_type(CompletionCreateResponse, completion, path=["response"]) @@ -143,7 +145,7 @@ def test_streaming_response_create_overload_1(self, client: Fireworks) -> None: model="model", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" completion = response.parse() assert_matches_type(CompletionCreateResponse, completion, path=["response"]) @@ -267,7 +269,7 @@ def test_raw_response_create_overload_2(self, client: Fireworks) -> None: stream=True, ) - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" stream = response.parse() stream.close() @@ -280,7 +282,7 @@ def test_streaming_response_create_overload_2(self, client: Fireworks) -> None: stream=True, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" stream = response.parse() stream.close() @@ -409,7 +411,7 @@ async def test_raw_response_create_overload_1(self, async_client: AsyncFireworks ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" completion = await response.parse() assert_matches_type(CompletionCreateResponse, completion, path=["response"]) @@ -421,7 +423,7 @@ async def test_streaming_response_create_overload_1(self, async_client: AsyncFir model="model", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" completion = await response.parse() assert_matches_type(CompletionCreateResponse, completion, path=["response"]) @@ -545,7 +547,7 @@ async def test_raw_response_create_overload_2(self, async_client: AsyncFireworks stream=True, ) - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" stream = await response.parse() await stream.close() @@ -558,7 +560,7 @@ async def test_streaming_response_create_overload_2(self, async_client: AsyncFir stream=True, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" stream = await response.parse() await stream.close() diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index e9f754e1..45bc3332 100644 --- a/tests/api_resources/test_accounts.py +++ b/tests/api_resources/test_accounts.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations import os @@ -40,7 +42,7 @@ def test_raw_response_list(self, client: Fireworks) -> None: response = client.accounts.with_raw_response.list() assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" account = response.parse() assert_matches_type(SyncCursorAccounts[Account], account, path=["response"]) @@ -49,7 +51,7 @@ def test_raw_response_list(self, client: Fireworks) -> None: def test_streaming_response_list(self, client: Fireworks) -> None: with client.accounts.with_streaming_response.list() as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" account = response.parse() assert_matches_type(SyncCursorAccounts[Account], account, path=["response"]) @@ -81,7 +83,7 @@ def test_raw_response_get(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" account = response.parse() assert_matches_type(Account, account, path=["response"]) @@ -92,7 +94,7 @@ def test_streaming_response_get(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" account = response.parse() assert_matches_type(Account, account, path=["response"]) @@ -137,7 +139,7 @@ async def test_raw_response_list(self, async_client: AsyncFireworks) -> None: response = await async_client.accounts.with_raw_response.list() assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" account = await response.parse() assert_matches_type(AsyncCursorAccounts[Account], account, path=["response"]) @@ -146,7 +148,7 @@ async def test_raw_response_list(self, async_client: AsyncFireworks) -> None: async def test_streaming_response_list(self, async_client: AsyncFireworks) -> None: async with async_client.accounts.with_streaming_response.list() as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" account = await response.parse() assert_matches_type(AsyncCursorAccounts[Account], account, path=["response"]) @@ -178,7 +180,7 @@ async def test_raw_response_get(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" account = await response.parse() assert_matches_type(Account, account, path=["response"]) @@ -189,7 +191,7 @@ async def test_streaming_response_get(self, async_client: AsyncFireworks) -> Non account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" account = await response.parse() assert_matches_type(Account, account, path=["response"]) diff --git a/tests/api_resources/test_api_keys.py b/tests/api_resources/test_api_keys.py index c6ba4b9a..170cbc06 100644 --- a/tests/api_resources/test_api_keys.py +++ b/tests/api_resources/test_api_keys.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations import os @@ -50,7 +52,7 @@ def test_raw_response_create(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" api_key = response.parse() assert_matches_type(APIKey, api_key, path=["response"]) @@ -63,7 +65,7 @@ def test_streaming_response_create(self, client: Fireworks) -> None: api_key={}, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" api_key = response.parse() assert_matches_type(APIKey, api_key, path=["response"]) @@ -119,7 +121,7 @@ def test_raw_response_list(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" api_key = response.parse() assert_matches_type(SyncCursorAPIKeys[APIKey], api_key, path=["response"]) @@ -131,7 +133,7 @@ def test_streaming_response_list(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" api_key = response.parse() assert_matches_type(SyncCursorAPIKeys[APIKey], api_key, path=["response"]) @@ -173,7 +175,7 @@ def test_raw_response_delete(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" api_key = response.parse() assert_matches_type(object, api_key, path=["response"]) @@ -186,7 +188,7 @@ def test_streaming_response_delete(self, client: Fireworks) -> None: key_id="keyId", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" api_key = response.parse() assert_matches_type(object, api_key, path=["response"]) @@ -249,7 +251,7 @@ async def test_raw_response_create(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" api_key = await response.parse() assert_matches_type(APIKey, api_key, path=["response"]) @@ -262,7 +264,7 @@ async def test_streaming_response_create(self, async_client: AsyncFireworks) -> api_key={}, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" api_key = await response.parse() assert_matches_type(APIKey, api_key, path=["response"]) @@ -318,7 +320,7 @@ async def test_raw_response_list(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" api_key = await response.parse() assert_matches_type(AsyncCursorAPIKeys[APIKey], api_key, path=["response"]) @@ -330,7 +332,7 @@ async def test_streaming_response_list(self, async_client: AsyncFireworks) -> No account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" api_key = await response.parse() assert_matches_type(AsyncCursorAPIKeys[APIKey], api_key, path=["response"]) @@ -372,7 +374,7 @@ async def test_raw_response_delete(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" api_key = await response.parse() assert_matches_type(object, api_key, path=["response"]) @@ -385,7 +387,7 @@ async def test_streaming_response_delete(self, async_client: AsyncFireworks) -> key_id="keyId", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" api_key = await response.parse() assert_matches_type(object, api_key, path=["response"]) diff --git a/tests/api_resources/test_batch_inference_jobs.py b/tests/api_resources/test_batch_inference_jobs.py index 8c73d640..11f0c51d 100644 --- a/tests/api_resources/test_batch_inference_jobs.py +++ b/tests/api_resources/test_batch_inference_jobs.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations import os @@ -57,7 +59,7 @@ def test_raw_response_create(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" batch_inference_job = response.parse() assert_matches_type(BatchInferenceJob, batch_inference_job, path=["response"]) @@ -68,7 +70,7 @@ def test_streaming_response_create(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" batch_inference_job = response.parse() assert_matches_type(BatchInferenceJob, batch_inference_job, path=["response"]) @@ -112,7 +114,7 @@ def test_raw_response_list(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" batch_inference_job = response.parse() assert_matches_type(SyncCursorBatchInferenceJobs[BatchInferenceJob], batch_inference_job, path=["response"]) @@ -123,7 +125,7 @@ def test_streaming_response_list(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" batch_inference_job = response.parse() assert_matches_type(SyncCursorBatchInferenceJobs[BatchInferenceJob], batch_inference_job, path=["response"]) @@ -156,7 +158,7 @@ def test_raw_response_delete(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" batch_inference_job = response.parse() assert_matches_type(object, batch_inference_job, path=["response"]) @@ -168,7 +170,7 @@ def test_streaming_response_delete(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" batch_inference_job = response.parse() assert_matches_type(object, batch_inference_job, path=["response"]) @@ -220,7 +222,7 @@ def test_raw_response_get(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" batch_inference_job = response.parse() assert_matches_type(BatchInferenceJob, batch_inference_job, path=["response"]) @@ -232,7 +234,7 @@ def test_streaming_response_get(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" batch_inference_job = response.parse() assert_matches_type(BatchInferenceJob, batch_inference_job, path=["response"]) @@ -301,7 +303,7 @@ async def test_raw_response_create(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" batch_inference_job = await response.parse() assert_matches_type(BatchInferenceJob, batch_inference_job, path=["response"]) @@ -312,7 +314,7 @@ async def test_streaming_response_create(self, async_client: AsyncFireworks) -> account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" batch_inference_job = await response.parse() assert_matches_type(BatchInferenceJob, batch_inference_job, path=["response"]) @@ -356,7 +358,7 @@ async def test_raw_response_list(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" batch_inference_job = await response.parse() assert_matches_type(AsyncCursorBatchInferenceJobs[BatchInferenceJob], batch_inference_job, path=["response"]) @@ -367,7 +369,7 @@ async def test_streaming_response_list(self, async_client: AsyncFireworks) -> No account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" batch_inference_job = await response.parse() assert_matches_type( @@ -402,7 +404,7 @@ async def test_raw_response_delete(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" batch_inference_job = await response.parse() assert_matches_type(object, batch_inference_job, path=["response"]) @@ -414,7 +416,7 @@ async def test_streaming_response_delete(self, async_client: AsyncFireworks) -> account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" batch_inference_job = await response.parse() assert_matches_type(object, batch_inference_job, path=["response"]) @@ -466,7 +468,7 @@ async def test_raw_response_get(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" batch_inference_job = await response.parse() assert_matches_type(BatchInferenceJob, batch_inference_job, path=["response"]) @@ -478,7 +480,7 @@ async def test_streaming_response_get(self, async_client: AsyncFireworks) -> Non account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" batch_inference_job = await response.parse() assert_matches_type(BatchInferenceJob, batch_inference_job, path=["response"]) diff --git a/tests/api_resources/test_completions.py b/tests/api_resources/test_completions.py index 7e00fdd7..3b41f32f 100644 --- a/tests/api_resources/test_completions.py +++ b/tests/api_resources/test_completions.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations import os @@ -91,7 +93,7 @@ def test_raw_response_create_overload_1(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" completion = response.parse() assert_matches_type(CompletionCreateResponse, completion, path=["response"]) @@ -103,7 +105,7 @@ def test_streaming_response_create_overload_1(self, client: Fireworks) -> None: prompt="string", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" completion = response.parse() assert_matches_type(CompletionCreateResponse, completion, path=["response"]) @@ -187,7 +189,7 @@ def test_raw_response_create_overload_2(self, client: Fireworks) -> None: stream=True, ) - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" stream = response.parse() stream.close() @@ -200,7 +202,7 @@ def test_streaming_response_create_overload_2(self, client: Fireworks) -> None: stream=True, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" stream = response.parse() stream.close() @@ -289,7 +291,7 @@ async def test_raw_response_create_overload_1(self, async_client: AsyncFireworks ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" completion = await response.parse() assert_matches_type(CompletionCreateResponse, completion, path=["response"]) @@ -301,7 +303,7 @@ async def test_streaming_response_create_overload_1(self, async_client: AsyncFir prompt="string", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" completion = await response.parse() assert_matches_type(CompletionCreateResponse, completion, path=["response"]) @@ -385,7 +387,7 @@ async def test_raw_response_create_overload_2(self, async_client: AsyncFireworks stream=True, ) - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" stream = await response.parse() await stream.close() @@ -398,7 +400,7 @@ async def test_streaming_response_create_overload_2(self, async_client: AsyncFir stream=True, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" stream = await response.parse() await stream.close() diff --git a/tests/api_resources/test_datasets.py b/tests/api_resources/test_datasets.py index a2798ef2..6e7bb111 100644 --- a/tests/api_resources/test_datasets.py +++ b/tests/api_resources/test_datasets.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations import os @@ -68,7 +70,7 @@ def test_raw_response_create(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" dataset = response.parse() assert_matches_type(Dataset, dataset, path=["response"]) @@ -81,7 +83,7 @@ def test_streaming_response_create(self, client: Fireworks) -> None: dataset_id="datasetId", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" dataset = response.parse() assert_matches_type(Dataset, dataset, path=["response"]) @@ -139,7 +141,7 @@ def test_raw_response_update(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" dataset = response.parse() assert_matches_type(Dataset, dataset, path=["response"]) @@ -151,7 +153,7 @@ def test_streaming_response_update(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" dataset = response.parse() assert_matches_type(Dataset, dataset, path=["response"]) @@ -202,7 +204,7 @@ def test_raw_response_list(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" dataset = response.parse() assert_matches_type(SyncCursorDatasets[Dataset], dataset, path=["response"]) @@ -213,7 +215,7 @@ def test_streaming_response_list(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" dataset = response.parse() assert_matches_type(SyncCursorDatasets[Dataset], dataset, path=["response"]) @@ -246,7 +248,7 @@ def test_raw_response_delete(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" dataset = response.parse() assert_matches_type(object, dataset, path=["response"]) @@ -258,7 +260,7 @@ def test_streaming_response_delete(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" dataset = response.parse() assert_matches_type(object, dataset, path=["response"]) @@ -308,7 +310,7 @@ def test_raw_response_get(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" dataset = response.parse() assert_matches_type(Dataset, dataset, path=["response"]) @@ -320,7 +322,7 @@ def test_streaming_response_get(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" dataset = response.parse() assert_matches_type(Dataset, dataset, path=["response"]) @@ -371,7 +373,7 @@ def test_raw_response_get_download_endpoint(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" dataset = response.parse() assert_matches_type(DatasetGetDownloadEndpointResponse, dataset, path=["response"]) @@ -383,7 +385,7 @@ def test_streaming_response_get_download_endpoint(self, client: Fireworks) -> No account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" dataset = response.parse() assert_matches_type(DatasetGetDownloadEndpointResponse, dataset, path=["response"]) @@ -436,7 +438,7 @@ def test_raw_response_get_upload_endpoint(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" dataset = response.parse() assert_matches_type(DatasetGetUploadEndpointResponse, dataset, path=["response"]) @@ -449,7 +451,7 @@ def test_streaming_response_get_upload_endpoint(self, client: Fireworks) -> None filename_to_size={"foo": "string"}, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" dataset = response.parse() assert_matches_type(DatasetGetUploadEndpointResponse, dataset, path=["response"]) @@ -501,7 +503,7 @@ def test_raw_response_upload(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" dataset = response.parse() assert_matches_type(DatasetUploadResponse, dataset, path=["response"]) @@ -513,7 +515,7 @@ def test_streaming_response_upload(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" dataset = response.parse() assert_matches_type(DatasetUploadResponse, dataset, path=["response"]) @@ -555,7 +557,7 @@ def test_raw_response_validate_upload(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" dataset = response.parse() assert_matches_type(object, dataset, path=["response"]) @@ -568,7 +570,7 @@ def test_streaming_response_validate_upload(self, client: Fireworks) -> None: body={}, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" dataset = response.parse() assert_matches_type(object, dataset, path=["response"]) @@ -645,7 +647,7 @@ async def test_raw_response_create(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" dataset = await response.parse() assert_matches_type(Dataset, dataset, path=["response"]) @@ -658,7 +660,7 @@ async def test_streaming_response_create(self, async_client: AsyncFireworks) -> dataset_id="datasetId", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" dataset = await response.parse() assert_matches_type(Dataset, dataset, path=["response"]) @@ -716,7 +718,7 @@ async def test_raw_response_update(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" dataset = await response.parse() assert_matches_type(Dataset, dataset, path=["response"]) @@ -728,7 +730,7 @@ async def test_streaming_response_update(self, async_client: AsyncFireworks) -> account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" dataset = await response.parse() assert_matches_type(Dataset, dataset, path=["response"]) @@ -779,7 +781,7 @@ async def test_raw_response_list(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" dataset = await response.parse() assert_matches_type(AsyncCursorDatasets[Dataset], dataset, path=["response"]) @@ -790,7 +792,7 @@ async def test_streaming_response_list(self, async_client: AsyncFireworks) -> No account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" dataset = await response.parse() assert_matches_type(AsyncCursorDatasets[Dataset], dataset, path=["response"]) @@ -823,7 +825,7 @@ async def test_raw_response_delete(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" dataset = await response.parse() assert_matches_type(object, dataset, path=["response"]) @@ -835,7 +837,7 @@ async def test_streaming_response_delete(self, async_client: AsyncFireworks) -> account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" dataset = await response.parse() assert_matches_type(object, dataset, path=["response"]) @@ -885,7 +887,7 @@ async def test_raw_response_get(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" dataset = await response.parse() assert_matches_type(Dataset, dataset, path=["response"]) @@ -897,7 +899,7 @@ async def test_streaming_response_get(self, async_client: AsyncFireworks) -> Non account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" dataset = await response.parse() assert_matches_type(Dataset, dataset, path=["response"]) @@ -948,7 +950,7 @@ async def test_raw_response_get_download_endpoint(self, async_client: AsyncFirew ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" dataset = await response.parse() assert_matches_type(DatasetGetDownloadEndpointResponse, dataset, path=["response"]) @@ -960,7 +962,7 @@ async def test_streaming_response_get_download_endpoint(self, async_client: Asyn account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" dataset = await response.parse() assert_matches_type(DatasetGetDownloadEndpointResponse, dataset, path=["response"]) @@ -1013,7 +1015,7 @@ async def test_raw_response_get_upload_endpoint(self, async_client: AsyncFirewor ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" dataset = await response.parse() assert_matches_type(DatasetGetUploadEndpointResponse, dataset, path=["response"]) @@ -1026,7 +1028,7 @@ async def test_streaming_response_get_upload_endpoint(self, async_client: AsyncF filename_to_size={"foo": "string"}, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" dataset = await response.parse() assert_matches_type(DatasetGetUploadEndpointResponse, dataset, path=["response"]) @@ -1078,7 +1080,7 @@ async def test_raw_response_upload(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" dataset = await response.parse() assert_matches_type(DatasetUploadResponse, dataset, path=["response"]) @@ -1090,7 +1092,7 @@ async def test_streaming_response_upload(self, async_client: AsyncFireworks) -> account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" dataset = await response.parse() assert_matches_type(DatasetUploadResponse, dataset, path=["response"]) @@ -1132,7 +1134,7 @@ async def test_raw_response_validate_upload(self, async_client: AsyncFireworks) ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" dataset = await response.parse() assert_matches_type(object, dataset, path=["response"]) @@ -1145,7 +1147,7 @@ async def test_streaming_response_validate_upload(self, async_client: AsyncFirew body={}, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" dataset = await response.parse() assert_matches_type(object, dataset, path=["response"]) diff --git a/tests/api_resources/test_deployment_shape_versions.py b/tests/api_resources/test_deployment_shape_versions.py index 73a7b24d..cbc4e110 100644 --- a/tests/api_resources/test_deployment_shape_versions.py +++ b/tests/api_resources/test_deployment_shape_versions.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations import os @@ -54,7 +56,7 @@ def test_raw_response_list(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" deployment_shape_version = response.parse() assert_matches_type( SyncCursorDeploymentShapeVersions[DeploymentShapeVersion], deployment_shape_version, path=["response"] @@ -68,7 +70,7 @@ def test_streaming_response_list(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" deployment_shape_version = response.parse() assert_matches_type( @@ -123,7 +125,7 @@ def test_raw_response_get(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" deployment_shape_version = response.parse() assert_matches_type(DeploymentShapeVersion, deployment_shape_version, path=["response"]) @@ -136,7 +138,7 @@ def test_streaming_response_get(self, client: Fireworks) -> None: deployment_shape_id="deployment_shape_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" deployment_shape_version = response.parse() assert_matches_type(DeploymentShapeVersion, deployment_shape_version, path=["response"]) @@ -209,7 +211,7 @@ async def test_raw_response_list(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" deployment_shape_version = await response.parse() assert_matches_type( AsyncCursorDeploymentShapeVersions[DeploymentShapeVersion], deployment_shape_version, path=["response"] @@ -223,7 +225,7 @@ async def test_streaming_response_list(self, async_client: AsyncFireworks) -> No account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" deployment_shape_version = await response.parse() assert_matches_type( @@ -278,7 +280,7 @@ async def test_raw_response_get(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" deployment_shape_version = await response.parse() assert_matches_type(DeploymentShapeVersion, deployment_shape_version, path=["response"]) @@ -291,7 +293,7 @@ async def test_streaming_response_get(self, async_client: AsyncFireworks) -> Non deployment_shape_id="deployment_shape_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" deployment_shape_version = await response.parse() assert_matches_type(DeploymentShapeVersion, deployment_shape_version, path=["response"]) diff --git a/tests/api_resources/test_deployment_shapes.py b/tests/api_resources/test_deployment_shapes.py index be80724c..62c17265 100644 --- a/tests/api_resources/test_deployment_shapes.py +++ b/tests/api_resources/test_deployment_shapes.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations import os @@ -46,7 +48,7 @@ def test_raw_response_list(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" deployment_shape = response.parse() assert_matches_type(SyncCursorDeploymentShapes[DeploymentShape], deployment_shape, path=["response"]) @@ -57,7 +59,7 @@ def test_streaming_response_list(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" deployment_shape = response.parse() assert_matches_type(SyncCursorDeploymentShapes[DeploymentShape], deployment_shape, path=["response"]) @@ -100,7 +102,7 @@ def test_raw_response_get(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" deployment_shape = response.parse() assert_matches_type(DeploymentShape, deployment_shape, path=["response"]) @@ -112,7 +114,7 @@ def test_streaming_response_get(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" deployment_shape = response.parse() assert_matches_type(DeploymentShape, deployment_shape, path=["response"]) @@ -170,7 +172,7 @@ async def test_raw_response_list(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" deployment_shape = await response.parse() assert_matches_type(AsyncCursorDeploymentShapes[DeploymentShape], deployment_shape, path=["response"]) @@ -181,7 +183,7 @@ async def test_streaming_response_list(self, async_client: AsyncFireworks) -> No account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" deployment_shape = await response.parse() assert_matches_type(AsyncCursorDeploymentShapes[DeploymentShape], deployment_shape, path=["response"]) @@ -224,7 +226,7 @@ async def test_raw_response_get(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" deployment_shape = await response.parse() assert_matches_type(DeploymentShape, deployment_shape, path=["response"]) @@ -236,7 +238,7 @@ async def test_streaming_response_get(self, async_client: AsyncFireworks) -> Non account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" deployment_shape = await response.parse() assert_matches_type(DeploymentShape, deployment_shape, path=["response"]) diff --git a/tests/api_resources/test_deployments.py b/tests/api_resources/test_deployments.py index cadd8707..15d45550 100644 --- a/tests/api_resources/test_deployments.py +++ b/tests/api_resources/test_deployments.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations import os @@ -92,7 +94,7 @@ def test_raw_response_create(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" deployment = response.parse() assert_matches_type(Deployment, deployment, path=["response"]) @@ -104,7 +106,7 @@ def test_streaming_response_create(self, client: Fireworks) -> None: base_model="baseModel", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" deployment = response.parse() assert_matches_type(Deployment, deployment, path=["response"]) @@ -191,7 +193,7 @@ def test_raw_response_update(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" deployment = response.parse() assert_matches_type(Deployment, deployment, path=["response"]) @@ -204,7 +206,7 @@ def test_streaming_response_update(self, client: Fireworks) -> None: base_model="baseModel", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" deployment = response.parse() assert_matches_type(Deployment, deployment, path=["response"]) @@ -258,7 +260,7 @@ def test_raw_response_list(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" deployment = response.parse() assert_matches_type(SyncCursorDeployments[Deployment], deployment, path=["response"]) @@ -269,7 +271,7 @@ def test_streaming_response_list(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" deployment = response.parse() assert_matches_type(SyncCursorDeployments[Deployment], deployment, path=["response"]) @@ -313,7 +315,7 @@ def test_raw_response_delete(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" deployment = response.parse() assert_matches_type(object, deployment, path=["response"]) @@ -325,7 +327,7 @@ def test_streaming_response_delete(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" deployment = response.parse() assert_matches_type(object, deployment, path=["response"]) @@ -375,7 +377,7 @@ def test_raw_response_get(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" deployment = response.parse() assert_matches_type(Deployment, deployment, path=["response"]) @@ -387,7 +389,7 @@ def test_streaming_response_get(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" deployment = response.parse() assert_matches_type(Deployment, deployment, path=["response"]) @@ -437,7 +439,7 @@ def test_raw_response_scale(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" deployment = response.parse() assert_matches_type(object, deployment, path=["response"]) @@ -449,7 +451,7 @@ def test_streaming_response_scale(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" deployment = response.parse() assert_matches_type(object, deployment, path=["response"]) @@ -491,7 +493,7 @@ def test_raw_response_undelete(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" deployment = response.parse() assert_matches_type(Deployment, deployment, path=["response"]) @@ -504,7 +506,7 @@ def test_streaming_response_undelete(self, client: Fireworks) -> None: body={}, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" deployment = response.parse() assert_matches_type(Deployment, deployment, path=["response"]) @@ -607,7 +609,7 @@ async def test_raw_response_create(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" deployment = await response.parse() assert_matches_type(Deployment, deployment, path=["response"]) @@ -619,7 +621,7 @@ async def test_streaming_response_create(self, async_client: AsyncFireworks) -> base_model="baseModel", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" deployment = await response.parse() assert_matches_type(Deployment, deployment, path=["response"]) @@ -706,7 +708,7 @@ async def test_raw_response_update(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" deployment = await response.parse() assert_matches_type(Deployment, deployment, path=["response"]) @@ -719,7 +721,7 @@ async def test_streaming_response_update(self, async_client: AsyncFireworks) -> base_model="baseModel", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" deployment = await response.parse() assert_matches_type(Deployment, deployment, path=["response"]) @@ -773,7 +775,7 @@ async def test_raw_response_list(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" deployment = await response.parse() assert_matches_type(AsyncCursorDeployments[Deployment], deployment, path=["response"]) @@ -784,7 +786,7 @@ async def test_streaming_response_list(self, async_client: AsyncFireworks) -> No account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" deployment = await response.parse() assert_matches_type(AsyncCursorDeployments[Deployment], deployment, path=["response"]) @@ -828,7 +830,7 @@ async def test_raw_response_delete(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" deployment = await response.parse() assert_matches_type(object, deployment, path=["response"]) @@ -840,7 +842,7 @@ async def test_streaming_response_delete(self, async_client: AsyncFireworks) -> account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" deployment = await response.parse() assert_matches_type(object, deployment, path=["response"]) @@ -890,7 +892,7 @@ async def test_raw_response_get(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" deployment = await response.parse() assert_matches_type(Deployment, deployment, path=["response"]) @@ -902,7 +904,7 @@ async def test_streaming_response_get(self, async_client: AsyncFireworks) -> Non account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" deployment = await response.parse() assert_matches_type(Deployment, deployment, path=["response"]) @@ -952,7 +954,7 @@ async def test_raw_response_scale(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" deployment = await response.parse() assert_matches_type(object, deployment, path=["response"]) @@ -964,7 +966,7 @@ async def test_streaming_response_scale(self, async_client: AsyncFireworks) -> N account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" deployment = await response.parse() assert_matches_type(object, deployment, path=["response"]) @@ -1006,7 +1008,7 @@ async def test_raw_response_undelete(self, async_client: AsyncFireworks) -> None ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" deployment = await response.parse() assert_matches_type(Deployment, deployment, path=["response"]) @@ -1019,7 +1021,7 @@ async def test_streaming_response_undelete(self, async_client: AsyncFireworks) - body={}, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" deployment = await response.parse() assert_matches_type(Deployment, deployment, path=["response"]) diff --git a/tests/api_resources/test_dpo_jobs.py b/tests/api_resources/test_dpo_jobs.py index 78668438..826e94f6 100644 --- a/tests/api_resources/test_dpo_jobs.py +++ b/tests/api_resources/test_dpo_jobs.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations import os @@ -84,7 +86,7 @@ def test_raw_response_create(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" dpo_job = response.parse() assert_matches_type(DpoJob, dpo_job, path=["response"]) @@ -96,7 +98,7 @@ def test_streaming_response_create(self, client: Fireworks) -> None: dataset="dataset", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" dpo_job = response.parse() assert_matches_type(DpoJob, dpo_job, path=["response"]) @@ -141,7 +143,7 @@ def test_raw_response_list(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" dpo_job = response.parse() assert_matches_type(SyncCursorDpoJobs[DpoJob], dpo_job, path=["response"]) @@ -152,7 +154,7 @@ def test_streaming_response_list(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" dpo_job = response.parse() assert_matches_type(SyncCursorDpoJobs[DpoJob], dpo_job, path=["response"]) @@ -185,7 +187,7 @@ def test_raw_response_delete(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" dpo_job = response.parse() assert_matches_type(object, dpo_job, path=["response"]) @@ -197,7 +199,7 @@ def test_streaming_response_delete(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" dpo_job = response.parse() assert_matches_type(object, dpo_job, path=["response"]) @@ -247,7 +249,7 @@ def test_raw_response_get(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" dpo_job = response.parse() assert_matches_type(DpoJob, dpo_job, path=["response"]) @@ -259,7 +261,7 @@ def test_streaming_response_get(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" dpo_job = response.parse() assert_matches_type(DpoJob, dpo_job, path=["response"]) @@ -299,7 +301,7 @@ def test_raw_response_get_metrics_file_endpoint(self, client: Fireworks) -> None ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" dpo_job = response.parse() assert_matches_type(DpoJobGetMetricsFileEndpointResponse, dpo_job, path=["response"]) @@ -311,7 +313,7 @@ def test_streaming_response_get_metrics_file_endpoint(self, client: Fireworks) - account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" dpo_job = response.parse() assert_matches_type(DpoJobGetMetricsFileEndpointResponse, dpo_job, path=["response"]) @@ -353,7 +355,7 @@ def test_raw_response_resume(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" dpo_job = response.parse() assert_matches_type(DpoJob, dpo_job, path=["response"]) @@ -366,7 +368,7 @@ def test_streaming_response_resume(self, client: Fireworks) -> None: body={}, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" dpo_job = response.parse() assert_matches_type(DpoJob, dpo_job, path=["response"]) @@ -461,7 +463,7 @@ async def test_raw_response_create(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" dpo_job = await response.parse() assert_matches_type(DpoJob, dpo_job, path=["response"]) @@ -473,7 +475,7 @@ async def test_streaming_response_create(self, async_client: AsyncFireworks) -> dataset="dataset", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" dpo_job = await response.parse() assert_matches_type(DpoJob, dpo_job, path=["response"]) @@ -518,7 +520,7 @@ async def test_raw_response_list(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" dpo_job = await response.parse() assert_matches_type(AsyncCursorDpoJobs[DpoJob], dpo_job, path=["response"]) @@ -529,7 +531,7 @@ async def test_streaming_response_list(self, async_client: AsyncFireworks) -> No account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" dpo_job = await response.parse() assert_matches_type(AsyncCursorDpoJobs[DpoJob], dpo_job, path=["response"]) @@ -562,7 +564,7 @@ async def test_raw_response_delete(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" dpo_job = await response.parse() assert_matches_type(object, dpo_job, path=["response"]) @@ -574,7 +576,7 @@ async def test_streaming_response_delete(self, async_client: AsyncFireworks) -> account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" dpo_job = await response.parse() assert_matches_type(object, dpo_job, path=["response"]) @@ -624,7 +626,7 @@ async def test_raw_response_get(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" dpo_job = await response.parse() assert_matches_type(DpoJob, dpo_job, path=["response"]) @@ -636,7 +638,7 @@ async def test_streaming_response_get(self, async_client: AsyncFireworks) -> Non account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" dpo_job = await response.parse() assert_matches_type(DpoJob, dpo_job, path=["response"]) @@ -676,7 +678,7 @@ async def test_raw_response_get_metrics_file_endpoint(self, async_client: AsyncF ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" dpo_job = await response.parse() assert_matches_type(DpoJobGetMetricsFileEndpointResponse, dpo_job, path=["response"]) @@ -688,7 +690,7 @@ async def test_streaming_response_get_metrics_file_endpoint(self, async_client: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" dpo_job = await response.parse() assert_matches_type(DpoJobGetMetricsFileEndpointResponse, dpo_job, path=["response"]) @@ -730,7 +732,7 @@ async def test_raw_response_resume(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" dpo_job = await response.parse() assert_matches_type(DpoJob, dpo_job, path=["response"]) @@ -743,7 +745,7 @@ async def test_streaming_response_resume(self, async_client: AsyncFireworks) -> body={}, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" dpo_job = await response.parse() assert_matches_type(DpoJob, dpo_job, path=["response"]) diff --git a/tests/api_resources/test_evaluation_jobs.py b/tests/api_resources/test_evaluation_jobs.py index 0a59b733..46d010fb 100644 --- a/tests/api_resources/test_evaluation_jobs.py +++ b/tests/api_resources/test_evaluation_jobs.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations import os @@ -68,7 +70,7 @@ def test_raw_response_create(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" evaluation_job = response.parse() assert_matches_type(EvaluationJobCreateResponse, evaluation_job, path=["response"]) @@ -84,7 +86,7 @@ def test_streaming_response_create(self, client: Fireworks) -> None: }, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" evaluation_job = response.parse() assert_matches_type(EvaluationJobCreateResponse, evaluation_job, path=["response"]) @@ -133,7 +135,7 @@ def test_raw_response_list(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" evaluation_job = response.parse() assert_matches_type(SyncCursorEvaluationJobs[EvaluationJobListResponse], evaluation_job, path=["response"]) @@ -144,7 +146,7 @@ def test_streaming_response_list(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" evaluation_job = response.parse() assert_matches_type(SyncCursorEvaluationJobs[EvaluationJobListResponse], evaluation_job, path=["response"]) @@ -177,7 +179,7 @@ def test_raw_response_delete(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" evaluation_job = response.parse() assert_matches_type(object, evaluation_job, path=["response"]) @@ -189,7 +191,7 @@ def test_streaming_response_delete(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" evaluation_job = response.parse() assert_matches_type(object, evaluation_job, path=["response"]) @@ -239,7 +241,7 @@ def test_raw_response_get(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" evaluation_job = response.parse() assert_matches_type(EvaluationJobGetResponse, evaluation_job, path=["response"]) @@ -251,7 +253,7 @@ def test_streaming_response_get(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" evaluation_job = response.parse() assert_matches_type(EvaluationJobGetResponse, evaluation_job, path=["response"]) @@ -291,7 +293,7 @@ def test_raw_response_get_log_endpoint(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" evaluation_job = response.parse() assert_matches_type(EvaluationJobGetLogEndpointResponse, evaluation_job, path=["response"]) @@ -303,7 +305,7 @@ def test_streaming_response_get_log_endpoint(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" evaluation_job = response.parse() assert_matches_type(EvaluationJobGetLogEndpointResponse, evaluation_job, path=["response"]) @@ -378,7 +380,7 @@ async def test_raw_response_create(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" evaluation_job = await response.parse() assert_matches_type(EvaluationJobCreateResponse, evaluation_job, path=["response"]) @@ -394,7 +396,7 @@ async def test_streaming_response_create(self, async_client: AsyncFireworks) -> }, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" evaluation_job = await response.parse() assert_matches_type(EvaluationJobCreateResponse, evaluation_job, path=["response"]) @@ -443,7 +445,7 @@ async def test_raw_response_list(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" evaluation_job = await response.parse() assert_matches_type(AsyncCursorEvaluationJobs[EvaluationJobListResponse], evaluation_job, path=["response"]) @@ -454,7 +456,7 @@ async def test_streaming_response_list(self, async_client: AsyncFireworks) -> No account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" evaluation_job = await response.parse() assert_matches_type(AsyncCursorEvaluationJobs[EvaluationJobListResponse], evaluation_job, path=["response"]) @@ -487,7 +489,7 @@ async def test_raw_response_delete(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" evaluation_job = await response.parse() assert_matches_type(object, evaluation_job, path=["response"]) @@ -499,7 +501,7 @@ async def test_streaming_response_delete(self, async_client: AsyncFireworks) -> account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" evaluation_job = await response.parse() assert_matches_type(object, evaluation_job, path=["response"]) @@ -549,7 +551,7 @@ async def test_raw_response_get(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" evaluation_job = await response.parse() assert_matches_type(EvaluationJobGetResponse, evaluation_job, path=["response"]) @@ -561,7 +563,7 @@ async def test_streaming_response_get(self, async_client: AsyncFireworks) -> Non account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" evaluation_job = await response.parse() assert_matches_type(EvaluationJobGetResponse, evaluation_job, path=["response"]) @@ -601,7 +603,7 @@ async def test_raw_response_get_log_endpoint(self, async_client: AsyncFireworks) ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" evaluation_job = await response.parse() assert_matches_type(EvaluationJobGetLogEndpointResponse, evaluation_job, path=["response"]) @@ -613,7 +615,7 @@ async def test_streaming_response_get_log_endpoint(self, async_client: AsyncFire account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" evaluation_job = await response.parse() assert_matches_type(EvaluationJobGetLogEndpointResponse, evaluation_job, path=["response"]) diff --git a/tests/api_resources/test_evaluators.py b/tests/api_resources/test_evaluators.py index 4801d797..76c09207 100644 --- a/tests/api_resources/test_evaluators.py +++ b/tests/api_resources/test_evaluators.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations import os @@ -76,7 +78,7 @@ def test_raw_response_create(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" evaluator = response.parse() assert_matches_type(EvaluatorCreateResponse, evaluator, path=["response"]) @@ -88,7 +90,7 @@ def test_streaming_response_create(self, client: Fireworks) -> None: evaluator={}, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" evaluator = response.parse() assert_matches_type(EvaluatorCreateResponse, evaluator, path=["response"]) @@ -155,7 +157,7 @@ def test_raw_response_update(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" evaluator = response.parse() assert_matches_type(EvaluatorUpdateResponse, evaluator, path=["response"]) @@ -167,7 +169,7 @@ def test_streaming_response_update(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" evaluator = response.parse() assert_matches_type(EvaluatorUpdateResponse, evaluator, path=["response"]) @@ -218,7 +220,7 @@ def test_raw_response_list(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" evaluator = response.parse() assert_matches_type(SyncCursorEvaluators[EvaluatorListResponse], evaluator, path=["response"]) @@ -229,7 +231,7 @@ def test_streaming_response_list(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" evaluator = response.parse() assert_matches_type(SyncCursorEvaluators[EvaluatorListResponse], evaluator, path=["response"]) @@ -262,7 +264,7 @@ def test_raw_response_delete(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" evaluator = response.parse() assert_matches_type(object, evaluator, path=["response"]) @@ -274,7 +276,7 @@ def test_streaming_response_delete(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" evaluator = response.parse() assert_matches_type(object, evaluator, path=["response"]) @@ -324,7 +326,7 @@ def test_raw_response_get(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" evaluator = response.parse() assert_matches_type(EvaluatorGetResponse, evaluator, path=["response"]) @@ -336,7 +338,7 @@ def test_streaming_response_get(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" evaluator = response.parse() assert_matches_type(EvaluatorGetResponse, evaluator, path=["response"]) @@ -386,7 +388,7 @@ def test_raw_response_get_build_log_endpoint(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" evaluator = response.parse() assert_matches_type(EvaluatorGetBuildLogEndpointResponse, evaluator, path=["response"]) @@ -398,7 +400,7 @@ def test_streaming_response_get_build_log_endpoint(self, client: Fireworks) -> N account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" evaluator = response.parse() assert_matches_type(EvaluatorGetBuildLogEndpointResponse, evaluator, path=["response"]) @@ -448,7 +450,7 @@ def test_raw_response_get_source_code_endpoint(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" evaluator = response.parse() assert_matches_type(EvaluatorGetSourceCodeEndpointResponse, evaluator, path=["response"]) @@ -460,7 +462,7 @@ def test_streaming_response_get_source_code_endpoint(self, client: Fireworks) -> account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" evaluator = response.parse() assert_matches_type(EvaluatorGetSourceCodeEndpointResponse, evaluator, path=["response"]) @@ -513,7 +515,7 @@ def test_raw_response_get_upload_endpoint(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" evaluator = response.parse() assert_matches_type(EvaluatorGetUploadEndpointResponse, evaluator, path=["response"]) @@ -526,7 +528,7 @@ def test_streaming_response_get_upload_endpoint(self, client: Fireworks) -> None filename_to_size={"foo": "string"}, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" evaluator = response.parse() assert_matches_type(EvaluatorGetUploadEndpointResponse, evaluator, path=["response"]) @@ -570,7 +572,7 @@ def test_raw_response_validate_upload(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" evaluator = response.parse() assert_matches_type(object, evaluator, path=["response"]) @@ -583,7 +585,7 @@ def test_streaming_response_validate_upload(self, client: Fireworks) -> None: body={}, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" evaluator = response.parse() assert_matches_type(object, evaluator, path=["response"]) @@ -665,7 +667,7 @@ async def test_raw_response_create(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" evaluator = await response.parse() assert_matches_type(EvaluatorCreateResponse, evaluator, path=["response"]) @@ -677,7 +679,7 @@ async def test_streaming_response_create(self, async_client: AsyncFireworks) -> evaluator={}, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" evaluator = await response.parse() assert_matches_type(EvaluatorCreateResponse, evaluator, path=["response"]) @@ -744,7 +746,7 @@ async def test_raw_response_update(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" evaluator = await response.parse() assert_matches_type(EvaluatorUpdateResponse, evaluator, path=["response"]) @@ -756,7 +758,7 @@ async def test_streaming_response_update(self, async_client: AsyncFireworks) -> account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" evaluator = await response.parse() assert_matches_type(EvaluatorUpdateResponse, evaluator, path=["response"]) @@ -807,7 +809,7 @@ async def test_raw_response_list(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" evaluator = await response.parse() assert_matches_type(AsyncCursorEvaluators[EvaluatorListResponse], evaluator, path=["response"]) @@ -818,7 +820,7 @@ async def test_streaming_response_list(self, async_client: AsyncFireworks) -> No account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" evaluator = await response.parse() assert_matches_type(AsyncCursorEvaluators[EvaluatorListResponse], evaluator, path=["response"]) @@ -851,7 +853,7 @@ async def test_raw_response_delete(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" evaluator = await response.parse() assert_matches_type(object, evaluator, path=["response"]) @@ -863,7 +865,7 @@ async def test_streaming_response_delete(self, async_client: AsyncFireworks) -> account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" evaluator = await response.parse() assert_matches_type(object, evaluator, path=["response"]) @@ -913,7 +915,7 @@ async def test_raw_response_get(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" evaluator = await response.parse() assert_matches_type(EvaluatorGetResponse, evaluator, path=["response"]) @@ -925,7 +927,7 @@ async def test_streaming_response_get(self, async_client: AsyncFireworks) -> Non account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" evaluator = await response.parse() assert_matches_type(EvaluatorGetResponse, evaluator, path=["response"]) @@ -975,7 +977,7 @@ async def test_raw_response_get_build_log_endpoint(self, async_client: AsyncFire ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" evaluator = await response.parse() assert_matches_type(EvaluatorGetBuildLogEndpointResponse, evaluator, path=["response"]) @@ -987,7 +989,7 @@ async def test_streaming_response_get_build_log_endpoint(self, async_client: Asy account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" evaluator = await response.parse() assert_matches_type(EvaluatorGetBuildLogEndpointResponse, evaluator, path=["response"]) @@ -1037,7 +1039,7 @@ async def test_raw_response_get_source_code_endpoint(self, async_client: AsyncFi ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" evaluator = await response.parse() assert_matches_type(EvaluatorGetSourceCodeEndpointResponse, evaluator, path=["response"]) @@ -1049,7 +1051,7 @@ async def test_streaming_response_get_source_code_endpoint(self, async_client: A account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" evaluator = await response.parse() assert_matches_type(EvaluatorGetSourceCodeEndpointResponse, evaluator, path=["response"]) @@ -1102,7 +1104,7 @@ async def test_raw_response_get_upload_endpoint(self, async_client: AsyncFirewor ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" evaluator = await response.parse() assert_matches_type(EvaluatorGetUploadEndpointResponse, evaluator, path=["response"]) @@ -1115,7 +1117,7 @@ async def test_streaming_response_get_upload_endpoint(self, async_client: AsyncF filename_to_size={"foo": "string"}, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" evaluator = await response.parse() assert_matches_type(EvaluatorGetUploadEndpointResponse, evaluator, path=["response"]) @@ -1159,7 +1161,7 @@ async def test_raw_response_validate_upload(self, async_client: AsyncFireworks) ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" evaluator = await response.parse() assert_matches_type(object, evaluator, path=["response"]) @@ -1172,7 +1174,7 @@ async def test_streaming_response_validate_upload(self, async_client: AsyncFirew body={}, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" evaluator = await response.parse() assert_matches_type(object, evaluator, path=["response"]) diff --git a/tests/api_resources/test_lora.py b/tests/api_resources/test_lora.py index 5443d63e..c141e19c 100644 --- a/tests/api_resources/test_lora.py +++ b/tests/api_resources/test_lora.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations import os @@ -50,7 +52,7 @@ def test_raw_response_update(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" lora = response.parse() assert_matches_type(DeployedModel, lora, path=["response"]) @@ -62,7 +64,7 @@ def test_streaming_response_update(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" lora = response.parse() assert_matches_type(DeployedModel, lora, path=["response"]) @@ -113,7 +115,7 @@ def test_raw_response_list(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" lora = response.parse() assert_matches_type(SyncCursorLora[DeployedModel], lora, path=["response"]) @@ -124,7 +126,7 @@ def test_streaming_response_list(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" lora = response.parse() assert_matches_type(SyncCursorLora[DeployedModel], lora, path=["response"]) @@ -167,7 +169,7 @@ def test_raw_response_get(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" lora = response.parse() assert_matches_type(DeployedModel, lora, path=["response"]) @@ -179,7 +181,7 @@ def test_streaming_response_get(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" lora = response.parse() assert_matches_type(DeployedModel, lora, path=["response"]) @@ -233,7 +235,7 @@ def test_raw_response_load(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" lora = response.parse() assert_matches_type(DeployedModel, lora, path=["response"]) @@ -244,7 +246,7 @@ def test_streaming_response_load(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" lora = response.parse() assert_matches_type(DeployedModel, lora, path=["response"]) @@ -277,7 +279,7 @@ def test_raw_response_unload(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" lora = response.parse() assert_matches_type(object, lora, path=["response"]) @@ -289,7 +291,7 @@ def test_streaming_response_unload(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" lora = response.parse() assert_matches_type(object, lora, path=["response"]) @@ -351,7 +353,7 @@ async def test_raw_response_update(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" lora = await response.parse() assert_matches_type(DeployedModel, lora, path=["response"]) @@ -363,7 +365,7 @@ async def test_streaming_response_update(self, async_client: AsyncFireworks) -> account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" lora = await response.parse() assert_matches_type(DeployedModel, lora, path=["response"]) @@ -414,7 +416,7 @@ async def test_raw_response_list(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" lora = await response.parse() assert_matches_type(AsyncCursorLora[DeployedModel], lora, path=["response"]) @@ -425,7 +427,7 @@ async def test_streaming_response_list(self, async_client: AsyncFireworks) -> No account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" lora = await response.parse() assert_matches_type(AsyncCursorLora[DeployedModel], lora, path=["response"]) @@ -468,7 +470,7 @@ async def test_raw_response_get(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" lora = await response.parse() assert_matches_type(DeployedModel, lora, path=["response"]) @@ -480,7 +482,7 @@ async def test_streaming_response_get(self, async_client: AsyncFireworks) -> Non account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" lora = await response.parse() assert_matches_type(DeployedModel, lora, path=["response"]) @@ -534,7 +536,7 @@ async def test_raw_response_load(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" lora = await response.parse() assert_matches_type(DeployedModel, lora, path=["response"]) @@ -545,7 +547,7 @@ async def test_streaming_response_load(self, async_client: AsyncFireworks) -> No account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" lora = await response.parse() assert_matches_type(DeployedModel, lora, path=["response"]) @@ -578,7 +580,7 @@ async def test_raw_response_unload(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" lora = await response.parse() assert_matches_type(object, lora, path=["response"]) @@ -590,7 +592,7 @@ async def test_streaming_response_unload(self, async_client: AsyncFireworks) -> account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" lora = await response.parse() assert_matches_type(object, lora, path=["response"]) diff --git a/tests/api_resources/test_messages.py b/tests/api_resources/test_messages.py index f974cc42..6a363c33 100644 --- a/tests/api_resources/test_messages.py +++ b/tests/api_resources/test_messages.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations import os @@ -116,7 +118,7 @@ def test_raw_response_create(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" message = response.parse() assert_matches_type(MessageCreateResponse, message, path=["response"]) @@ -133,7 +135,7 @@ def test_streaming_response_create(self, client: Fireworks) -> None: model="claude-opus-4-6", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" message = response.parse() assert_matches_type(MessageCreateResponse, message, path=["response"]) @@ -247,7 +249,7 @@ async def test_raw_response_create(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" message = await response.parse() assert_matches_type(MessageCreateResponse, message, path=["response"]) @@ -264,7 +266,7 @@ async def test_streaming_response_create(self, async_client: AsyncFireworks) -> model="claude-opus-4-6", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" message = await response.parse() assert_matches_type(MessageCreateResponse, message, path=["response"]) diff --git a/tests/api_resources/test_models.py b/tests/api_resources/test_models.py index 6c111ee5..fceaf0f7 100644 --- a/tests/api_resources/test_models.py +++ b/tests/api_resources/test_models.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations import os @@ -93,7 +95,7 @@ def test_raw_response_create(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" model = response.parse() assert_matches_type(Model, model, path=["response"]) @@ -105,7 +107,7 @@ def test_streaming_response_create(self, client: Fireworks) -> None: model_id="modelId", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" model = response.parse() assert_matches_type(Model, model, path=["response"]) @@ -190,7 +192,7 @@ def test_raw_response_update(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" model = response.parse() assert_matches_type(Model, model, path=["response"]) @@ -202,7 +204,7 @@ def test_streaming_response_update(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" model = response.parse() assert_matches_type(Model, model, path=["response"]) @@ -253,7 +255,7 @@ def test_raw_response_list(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" model = response.parse() assert_matches_type(SyncCursorModels[Model], model, path=["response"]) @@ -264,7 +266,7 @@ def test_streaming_response_list(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" model = response.parse() assert_matches_type(SyncCursorModels[Model], model, path=["response"]) @@ -297,7 +299,7 @@ def test_raw_response_delete(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" model = response.parse() assert_matches_type(object, model, path=["response"]) @@ -309,7 +311,7 @@ def test_streaming_response_delete(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" model = response.parse() assert_matches_type(object, model, path=["response"]) @@ -359,7 +361,7 @@ def test_raw_response_get(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" model = response.parse() assert_matches_type(Model, model, path=["response"]) @@ -371,7 +373,7 @@ def test_streaming_response_get(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" model = response.parse() assert_matches_type(Model, model, path=["response"]) @@ -421,7 +423,7 @@ def test_raw_response_get_download_endpoint(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" model = response.parse() assert_matches_type(ModelGetDownloadEndpointResponse, model, path=["response"]) @@ -433,7 +435,7 @@ def test_streaming_response_get_download_endpoint(self, client: Fireworks) -> No account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" model = response.parse() assert_matches_type(ModelGetDownloadEndpointResponse, model, path=["response"]) @@ -487,7 +489,7 @@ def test_raw_response_get_upload_endpoint(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" model = response.parse() assert_matches_type(ModelGetUploadEndpointResponse, model, path=["response"]) @@ -500,7 +502,7 @@ def test_streaming_response_get_upload_endpoint(self, client: Fireworks) -> None filename_to_size={"foo": "string"}, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" model = response.parse() assert_matches_type(ModelGetUploadEndpointResponse, model, path=["response"]) @@ -553,7 +555,7 @@ def test_raw_response_prepare(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" model = response.parse() assert_matches_type(object, model, path=["response"]) @@ -565,7 +567,7 @@ def test_streaming_response_prepare(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" model = response.parse() assert_matches_type(object, model, path=["response"]) @@ -617,7 +619,7 @@ def test_raw_response_validate_upload(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" model = response.parse() assert_matches_type(ModelValidateUploadResponse, model, path=["response"]) @@ -629,7 +631,7 @@ def test_streaming_response_validate_upload(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" model = response.parse() assert_matches_type(ModelValidateUploadResponse, model, path=["response"]) @@ -729,7 +731,7 @@ async def test_raw_response_create(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" model = await response.parse() assert_matches_type(Model, model, path=["response"]) @@ -741,7 +743,7 @@ async def test_streaming_response_create(self, async_client: AsyncFireworks) -> model_id="modelId", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" model = await response.parse() assert_matches_type(Model, model, path=["response"]) @@ -826,7 +828,7 @@ async def test_raw_response_update(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" model = await response.parse() assert_matches_type(Model, model, path=["response"]) @@ -838,7 +840,7 @@ async def test_streaming_response_update(self, async_client: AsyncFireworks) -> account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" model = await response.parse() assert_matches_type(Model, model, path=["response"]) @@ -889,7 +891,7 @@ async def test_raw_response_list(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" model = await response.parse() assert_matches_type(AsyncCursorModels[Model], model, path=["response"]) @@ -900,7 +902,7 @@ async def test_streaming_response_list(self, async_client: AsyncFireworks) -> No account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" model = await response.parse() assert_matches_type(AsyncCursorModels[Model], model, path=["response"]) @@ -933,7 +935,7 @@ async def test_raw_response_delete(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" model = await response.parse() assert_matches_type(object, model, path=["response"]) @@ -945,7 +947,7 @@ async def test_streaming_response_delete(self, async_client: AsyncFireworks) -> account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" model = await response.parse() assert_matches_type(object, model, path=["response"]) @@ -995,7 +997,7 @@ async def test_raw_response_get(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" model = await response.parse() assert_matches_type(Model, model, path=["response"]) @@ -1007,7 +1009,7 @@ async def test_streaming_response_get(self, async_client: AsyncFireworks) -> Non account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" model = await response.parse() assert_matches_type(Model, model, path=["response"]) @@ -1057,7 +1059,7 @@ async def test_raw_response_get_download_endpoint(self, async_client: AsyncFirew ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" model = await response.parse() assert_matches_type(ModelGetDownloadEndpointResponse, model, path=["response"]) @@ -1069,7 +1071,7 @@ async def test_streaming_response_get_download_endpoint(self, async_client: Asyn account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" model = await response.parse() assert_matches_type(ModelGetDownloadEndpointResponse, model, path=["response"]) @@ -1123,7 +1125,7 @@ async def test_raw_response_get_upload_endpoint(self, async_client: AsyncFirewor ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" model = await response.parse() assert_matches_type(ModelGetUploadEndpointResponse, model, path=["response"]) @@ -1136,7 +1138,7 @@ async def test_streaming_response_get_upload_endpoint(self, async_client: AsyncF filename_to_size={"foo": "string"}, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" model = await response.parse() assert_matches_type(ModelGetUploadEndpointResponse, model, path=["response"]) @@ -1189,7 +1191,7 @@ async def test_raw_response_prepare(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" model = await response.parse() assert_matches_type(object, model, path=["response"]) @@ -1201,7 +1203,7 @@ async def test_streaming_response_prepare(self, async_client: AsyncFireworks) -> account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" model = await response.parse() assert_matches_type(object, model, path=["response"]) @@ -1253,7 +1255,7 @@ async def test_raw_response_validate_upload(self, async_client: AsyncFireworks) ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" model = await response.parse() assert_matches_type(ModelValidateUploadResponse, model, path=["response"]) @@ -1265,7 +1267,7 @@ async def test_streaming_response_validate_upload(self, async_client: AsyncFirew account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" model = await response.parse() assert_matches_type(ModelValidateUploadResponse, model, path=["response"]) diff --git a/tests/api_resources/test_reinforcement_fine_tuning_jobs.py b/tests/api_resources/test_reinforcement_fine_tuning_jobs.py index 39e9baeb..0ce08d65 100644 --- a/tests/api_resources/test_reinforcement_fine_tuning_jobs.py +++ b/tests/api_resources/test_reinforcement_fine_tuning_jobs.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations import os @@ -102,7 +104,7 @@ def test_raw_response_create(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" reinforcement_fine_tuning_job = response.parse() assert_matches_type(ReinforcementFineTuningJob, reinforcement_fine_tuning_job, path=["response"]) @@ -115,7 +117,7 @@ def test_streaming_response_create(self, client: Fireworks) -> None: evaluator="evaluator", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" reinforcement_fine_tuning_job = response.parse() assert_matches_type(ReinforcementFineTuningJob, reinforcement_fine_tuning_job, path=["response"]) @@ -169,7 +171,7 @@ def test_raw_response_list(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" reinforcement_fine_tuning_job = response.parse() assert_matches_type( SyncCursorReinforcementFineTuningJobs[ReinforcementFineTuningJob], @@ -184,7 +186,7 @@ def test_streaming_response_list(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" reinforcement_fine_tuning_job = response.parse() assert_matches_type( @@ -221,7 +223,7 @@ def test_raw_response_delete(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" reinforcement_fine_tuning_job = response.parse() assert_matches_type(object, reinforcement_fine_tuning_job, path=["response"]) @@ -233,7 +235,7 @@ def test_streaming_response_delete(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" reinforcement_fine_tuning_job = response.parse() assert_matches_type(object, reinforcement_fine_tuning_job, path=["response"]) @@ -277,7 +279,7 @@ def test_raw_response_cancel(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" reinforcement_fine_tuning_job = response.parse() assert_matches_type(object, reinforcement_fine_tuning_job, path=["response"]) @@ -290,7 +292,7 @@ def test_streaming_response_cancel(self, client: Fireworks) -> None: body={}, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" reinforcement_fine_tuning_job = response.parse() assert_matches_type(object, reinforcement_fine_tuning_job, path=["response"]) @@ -344,7 +346,7 @@ def test_raw_response_get(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" reinforcement_fine_tuning_job = response.parse() assert_matches_type(ReinforcementFineTuningJob, reinforcement_fine_tuning_job, path=["response"]) @@ -356,7 +358,7 @@ def test_streaming_response_get(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" reinforcement_fine_tuning_job = response.parse() assert_matches_type(ReinforcementFineTuningJob, reinforcement_fine_tuning_job, path=["response"]) @@ -400,7 +402,7 @@ def test_raw_response_resume(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" reinforcement_fine_tuning_job = response.parse() assert_matches_type(ReinforcementFineTuningJob, reinforcement_fine_tuning_job, path=["response"]) @@ -413,7 +415,7 @@ def test_streaming_response_resume(self, client: Fireworks) -> None: body={}, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" reinforcement_fine_tuning_job = response.parse() assert_matches_type(ReinforcementFineTuningJob, reinforcement_fine_tuning_job, path=["response"]) @@ -529,7 +531,7 @@ async def test_raw_response_create(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" reinforcement_fine_tuning_job = await response.parse() assert_matches_type(ReinforcementFineTuningJob, reinforcement_fine_tuning_job, path=["response"]) @@ -542,7 +544,7 @@ async def test_streaming_response_create(self, async_client: AsyncFireworks) -> evaluator="evaluator", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" reinforcement_fine_tuning_job = await response.parse() assert_matches_type(ReinforcementFineTuningJob, reinforcement_fine_tuning_job, path=["response"]) @@ -596,7 +598,7 @@ async def test_raw_response_list(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" reinforcement_fine_tuning_job = await response.parse() assert_matches_type( AsyncCursorReinforcementFineTuningJobs[ReinforcementFineTuningJob], @@ -611,7 +613,7 @@ async def test_streaming_response_list(self, async_client: AsyncFireworks) -> No account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" reinforcement_fine_tuning_job = await response.parse() assert_matches_type( @@ -648,7 +650,7 @@ async def test_raw_response_delete(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" reinforcement_fine_tuning_job = await response.parse() assert_matches_type(object, reinforcement_fine_tuning_job, path=["response"]) @@ -660,7 +662,7 @@ async def test_streaming_response_delete(self, async_client: AsyncFireworks) -> account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" reinforcement_fine_tuning_job = await response.parse() assert_matches_type(object, reinforcement_fine_tuning_job, path=["response"]) @@ -704,7 +706,7 @@ async def test_raw_response_cancel(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" reinforcement_fine_tuning_job = await response.parse() assert_matches_type(object, reinforcement_fine_tuning_job, path=["response"]) @@ -717,7 +719,7 @@ async def test_streaming_response_cancel(self, async_client: AsyncFireworks) -> body={}, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" reinforcement_fine_tuning_job = await response.parse() assert_matches_type(object, reinforcement_fine_tuning_job, path=["response"]) @@ -771,7 +773,7 @@ async def test_raw_response_get(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" reinforcement_fine_tuning_job = await response.parse() assert_matches_type(ReinforcementFineTuningJob, reinforcement_fine_tuning_job, path=["response"]) @@ -783,7 +785,7 @@ async def test_streaming_response_get(self, async_client: AsyncFireworks) -> Non account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" reinforcement_fine_tuning_job = await response.parse() assert_matches_type(ReinforcementFineTuningJob, reinforcement_fine_tuning_job, path=["response"]) @@ -827,7 +829,7 @@ async def test_raw_response_resume(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" reinforcement_fine_tuning_job = await response.parse() assert_matches_type(ReinforcementFineTuningJob, reinforcement_fine_tuning_job, path=["response"]) @@ -840,7 +842,7 @@ async def test_streaming_response_resume(self, async_client: AsyncFireworks) -> body={}, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" reinforcement_fine_tuning_job = await response.parse() assert_matches_type(ReinforcementFineTuningJob, reinforcement_fine_tuning_job, path=["response"]) diff --git a/tests/api_resources/test_reinforcement_fine_tuning_steps.py b/tests/api_resources/test_reinforcement_fine_tuning_steps.py index f774f2c6..35195872 100644 --- a/tests/api_resources/test_reinforcement_fine_tuning_steps.py +++ b/tests/api_resources/test_reinforcement_fine_tuning_steps.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations import os @@ -91,7 +93,7 @@ def test_raw_response_create(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" reinforcement_fine_tuning_step = response.parse() assert_matches_type(ReinforcementFineTuningStep, reinforcement_fine_tuning_step, path=["response"]) @@ -102,7 +104,7 @@ def test_streaming_response_create(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" reinforcement_fine_tuning_step = response.parse() assert_matches_type(ReinforcementFineTuningStep, reinforcement_fine_tuning_step, path=["response"]) @@ -154,7 +156,7 @@ def test_raw_response_list(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" reinforcement_fine_tuning_step = response.parse() assert_matches_type( SyncCursorReinforcementFineTuningSteps[ReinforcementFineTuningStep], @@ -169,7 +171,7 @@ def test_streaming_response_list(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" reinforcement_fine_tuning_step = response.parse() assert_matches_type( @@ -206,7 +208,7 @@ def test_raw_response_delete(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" reinforcement_fine_tuning_step = response.parse() assert_matches_type(object, reinforcement_fine_tuning_step, path=["response"]) @@ -218,7 +220,7 @@ def test_streaming_response_delete(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" reinforcement_fine_tuning_step = response.parse() assert_matches_type(object, reinforcement_fine_tuning_step, path=["response"]) @@ -262,7 +264,7 @@ def test_raw_response_execute(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" reinforcement_fine_tuning_step = response.parse() assert_matches_type(object, reinforcement_fine_tuning_step, path=["response"]) @@ -276,7 +278,7 @@ def test_streaming_response_execute(self, client: Fireworks) -> None: output_model="outputModel", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" reinforcement_fine_tuning_step = response.parse() assert_matches_type(object, reinforcement_fine_tuning_step, path=["response"]) @@ -330,7 +332,7 @@ def test_raw_response_get(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" reinforcement_fine_tuning_step = response.parse() assert_matches_type(ReinforcementFineTuningStep, reinforcement_fine_tuning_step, path=["response"]) @@ -342,7 +344,7 @@ def test_streaming_response_get(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" reinforcement_fine_tuning_step = response.parse() assert_matches_type(ReinforcementFineTuningStep, reinforcement_fine_tuning_step, path=["response"]) @@ -384,7 +386,7 @@ def test_raw_response_resume(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" reinforcement_fine_tuning_step = response.parse() assert_matches_type(ReinforcementFineTuningStep, reinforcement_fine_tuning_step, path=["response"]) @@ -397,7 +399,7 @@ def test_streaming_response_resume(self, client: Fireworks) -> None: body={}, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" reinforcement_fine_tuning_step = response.parse() assert_matches_type(ReinforcementFineTuningStep, reinforcement_fine_tuning_step, path=["response"]) @@ -500,7 +502,7 @@ async def test_raw_response_create(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" reinforcement_fine_tuning_step = await response.parse() assert_matches_type(ReinforcementFineTuningStep, reinforcement_fine_tuning_step, path=["response"]) @@ -511,7 +513,7 @@ async def test_streaming_response_create(self, async_client: AsyncFireworks) -> account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" reinforcement_fine_tuning_step = await response.parse() assert_matches_type(ReinforcementFineTuningStep, reinforcement_fine_tuning_step, path=["response"]) @@ -563,7 +565,7 @@ async def test_raw_response_list(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" reinforcement_fine_tuning_step = await response.parse() assert_matches_type( AsyncCursorReinforcementFineTuningSteps[ReinforcementFineTuningStep], @@ -578,7 +580,7 @@ async def test_streaming_response_list(self, async_client: AsyncFireworks) -> No account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" reinforcement_fine_tuning_step = await response.parse() assert_matches_type( @@ -615,7 +617,7 @@ async def test_raw_response_delete(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" reinforcement_fine_tuning_step = await response.parse() assert_matches_type(object, reinforcement_fine_tuning_step, path=["response"]) @@ -627,7 +629,7 @@ async def test_streaming_response_delete(self, async_client: AsyncFireworks) -> account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" reinforcement_fine_tuning_step = await response.parse() assert_matches_type(object, reinforcement_fine_tuning_step, path=["response"]) @@ -671,7 +673,7 @@ async def test_raw_response_execute(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" reinforcement_fine_tuning_step = await response.parse() assert_matches_type(object, reinforcement_fine_tuning_step, path=["response"]) @@ -685,7 +687,7 @@ async def test_streaming_response_execute(self, async_client: AsyncFireworks) -> output_model="outputModel", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" reinforcement_fine_tuning_step = await response.parse() assert_matches_type(object, reinforcement_fine_tuning_step, path=["response"]) @@ -739,7 +741,7 @@ async def test_raw_response_get(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" reinforcement_fine_tuning_step = await response.parse() assert_matches_type(ReinforcementFineTuningStep, reinforcement_fine_tuning_step, path=["response"]) @@ -751,7 +753,7 @@ async def test_streaming_response_get(self, async_client: AsyncFireworks) -> Non account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" reinforcement_fine_tuning_step = await response.parse() assert_matches_type(ReinforcementFineTuningStep, reinforcement_fine_tuning_step, path=["response"]) @@ -793,7 +795,7 @@ async def test_raw_response_resume(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" reinforcement_fine_tuning_step = await response.parse() assert_matches_type(ReinforcementFineTuningStep, reinforcement_fine_tuning_step, path=["response"]) @@ -806,7 +808,7 @@ async def test_streaming_response_resume(self, async_client: AsyncFireworks) -> body={}, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" reinforcement_fine_tuning_step = await response.parse() assert_matches_type(ReinforcementFineTuningStep, reinforcement_fine_tuning_step, path=["response"]) diff --git a/tests/api_resources/test_secrets.py b/tests/api_resources/test_secrets.py index 3f238934..fc4ead74 100644 --- a/tests/api_resources/test_secrets.py +++ b/tests/api_resources/test_secrets.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations import os @@ -47,7 +49,7 @@ def test_raw_response_create(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" secret = response.parse() assert_matches_type(Secret, secret, path=["response"]) @@ -60,7 +62,7 @@ def test_streaming_response_create(self, client: Fireworks) -> None: name="name", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" secret = response.parse() assert_matches_type(Secret, secret, path=["response"]) @@ -108,7 +110,7 @@ def test_raw_response_update(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" secret = response.parse() assert_matches_type(Secret, secret, path=["response"]) @@ -121,7 +123,7 @@ def test_streaming_response_update(self, client: Fireworks) -> None: key_name="keyName", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" secret = response.parse() assert_matches_type(Secret, secret, path=["response"]) @@ -174,7 +176,7 @@ def test_raw_response_list(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" secret = response.parse() assert_matches_type(SyncCursorSecrets[Secret], secret, path=["response"]) @@ -185,7 +187,7 @@ def test_streaming_response_list(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" secret = response.parse() assert_matches_type(SyncCursorSecrets[Secret], secret, path=["response"]) @@ -218,7 +220,7 @@ def test_raw_response_delete(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" secret = response.parse() assert_matches_type(object, secret, path=["response"]) @@ -230,7 +232,7 @@ def test_streaming_response_delete(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" secret = response.parse() assert_matches_type(object, secret, path=["response"]) @@ -280,7 +282,7 @@ def test_raw_response_get(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" secret = response.parse() assert_matches_type(Secret, secret, path=["response"]) @@ -292,7 +294,7 @@ def test_streaming_response_get(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" secret = response.parse() assert_matches_type(Secret, secret, path=["response"]) @@ -351,7 +353,7 @@ async def test_raw_response_create(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" secret = await response.parse() assert_matches_type(Secret, secret, path=["response"]) @@ -364,7 +366,7 @@ async def test_streaming_response_create(self, async_client: AsyncFireworks) -> name="name", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" secret = await response.parse() assert_matches_type(Secret, secret, path=["response"]) @@ -412,7 +414,7 @@ async def test_raw_response_update(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" secret = await response.parse() assert_matches_type(Secret, secret, path=["response"]) @@ -425,7 +427,7 @@ async def test_streaming_response_update(self, async_client: AsyncFireworks) -> key_name="keyName", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" secret = await response.parse() assert_matches_type(Secret, secret, path=["response"]) @@ -478,7 +480,7 @@ async def test_raw_response_list(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" secret = await response.parse() assert_matches_type(AsyncCursorSecrets[Secret], secret, path=["response"]) @@ -489,7 +491,7 @@ async def test_streaming_response_list(self, async_client: AsyncFireworks) -> No account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" secret = await response.parse() assert_matches_type(AsyncCursorSecrets[Secret], secret, path=["response"]) @@ -522,7 +524,7 @@ async def test_raw_response_delete(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" secret = await response.parse() assert_matches_type(object, secret, path=["response"]) @@ -534,7 +536,7 @@ async def test_streaming_response_delete(self, async_client: AsyncFireworks) -> account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" secret = await response.parse() assert_matches_type(object, secret, path=["response"]) @@ -584,7 +586,7 @@ async def test_raw_response_get(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" secret = await response.parse() assert_matches_type(Secret, secret, path=["response"]) @@ -596,7 +598,7 @@ async def test_streaming_response_get(self, async_client: AsyncFireworks) -> Non account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" secret = await response.parse() assert_matches_type(Secret, secret, path=["response"]) diff --git a/tests/api_resources/test_supervised_fine_tuning_jobs.py b/tests/api_resources/test_supervised_fine_tuning_jobs.py index d7dfe452..e816f8d2 100644 --- a/tests/api_resources/test_supervised_fine_tuning_jobs.py +++ b/tests/api_resources/test_supervised_fine_tuning_jobs.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations import os @@ -87,7 +89,7 @@ def test_raw_response_create(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" supervised_fine_tuning_job = response.parse() assert_matches_type(SupervisedFineTuningJob, supervised_fine_tuning_job, path=["response"]) @@ -99,7 +101,7 @@ def test_streaming_response_create(self, client: Fireworks) -> None: dataset="dataset", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" supervised_fine_tuning_job = response.parse() assert_matches_type(SupervisedFineTuningJob, supervised_fine_tuning_job, path=["response"]) @@ -148,7 +150,7 @@ def test_raw_response_list(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" supervised_fine_tuning_job = response.parse() assert_matches_type( SyncCursorSupervisedFineTuningJobs[SupervisedFineTuningJob], supervised_fine_tuning_job, path=["response"] @@ -161,7 +163,7 @@ def test_streaming_response_list(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" supervised_fine_tuning_job = response.parse() assert_matches_type( @@ -198,7 +200,7 @@ def test_raw_response_delete(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" supervised_fine_tuning_job = response.parse() assert_matches_type(object, supervised_fine_tuning_job, path=["response"]) @@ -210,7 +212,7 @@ def test_streaming_response_delete(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" supervised_fine_tuning_job = response.parse() assert_matches_type(object, supervised_fine_tuning_job, path=["response"]) @@ -262,7 +264,7 @@ def test_raw_response_get(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" supervised_fine_tuning_job = response.parse() assert_matches_type(SupervisedFineTuningJob, supervised_fine_tuning_job, path=["response"]) @@ -274,7 +276,7 @@ def test_streaming_response_get(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" supervised_fine_tuning_job = response.parse() assert_matches_type(SupervisedFineTuningJob, supervised_fine_tuning_job, path=["response"]) @@ -318,7 +320,7 @@ def test_raw_response_resume(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" supervised_fine_tuning_job = response.parse() assert_matches_type(SupervisedFineTuningJob, supervised_fine_tuning_job, path=["response"]) @@ -331,7 +333,7 @@ def test_streaming_response_resume(self, client: Fireworks) -> None: body={}, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" supervised_fine_tuning_job = response.parse() assert_matches_type(SupervisedFineTuningJob, supervised_fine_tuning_job, path=["response"]) @@ -432,7 +434,7 @@ async def test_raw_response_create(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" supervised_fine_tuning_job = await response.parse() assert_matches_type(SupervisedFineTuningJob, supervised_fine_tuning_job, path=["response"]) @@ -444,7 +446,7 @@ async def test_streaming_response_create(self, async_client: AsyncFireworks) -> dataset="dataset", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" supervised_fine_tuning_job = await response.parse() assert_matches_type(SupervisedFineTuningJob, supervised_fine_tuning_job, path=["response"]) @@ -493,7 +495,7 @@ async def test_raw_response_list(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" supervised_fine_tuning_job = await response.parse() assert_matches_type( AsyncCursorSupervisedFineTuningJobs[SupervisedFineTuningJob], supervised_fine_tuning_job, path=["response"] @@ -506,7 +508,7 @@ async def test_streaming_response_list(self, async_client: AsyncFireworks) -> No account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" supervised_fine_tuning_job = await response.parse() assert_matches_type( @@ -543,7 +545,7 @@ async def test_raw_response_delete(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" supervised_fine_tuning_job = await response.parse() assert_matches_type(object, supervised_fine_tuning_job, path=["response"]) @@ -555,7 +557,7 @@ async def test_streaming_response_delete(self, async_client: AsyncFireworks) -> account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" supervised_fine_tuning_job = await response.parse() assert_matches_type(object, supervised_fine_tuning_job, path=["response"]) @@ -607,7 +609,7 @@ async def test_raw_response_get(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" supervised_fine_tuning_job = await response.parse() assert_matches_type(SupervisedFineTuningJob, supervised_fine_tuning_job, path=["response"]) @@ -619,7 +621,7 @@ async def test_streaming_response_get(self, async_client: AsyncFireworks) -> Non account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" supervised_fine_tuning_job = await response.parse() assert_matches_type(SupervisedFineTuningJob, supervised_fine_tuning_job, path=["response"]) @@ -663,7 +665,7 @@ async def test_raw_response_resume(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" supervised_fine_tuning_job = await response.parse() assert_matches_type(SupervisedFineTuningJob, supervised_fine_tuning_job, path=["response"]) @@ -676,7 +678,7 @@ async def test_streaming_response_resume(self, async_client: AsyncFireworks) -> body={}, ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" supervised_fine_tuning_job = await response.parse() assert_matches_type(SupervisedFineTuningJob, supervised_fine_tuning_job, path=["response"]) diff --git a/tests/api_resources/test_users.py b/tests/api_resources/test_users.py index 1de0bd6b..d1e94f59 100644 --- a/tests/api_resources/test_users.py +++ b/tests/api_resources/test_users.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations import os @@ -47,7 +49,7 @@ def test_raw_response_create(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" user = response.parse() assert_matches_type(User, user, path=["response"]) @@ -59,7 +61,7 @@ def test_streaming_response_create(self, client: Fireworks) -> None: role="role", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" user = response.parse() assert_matches_type(User, user, path=["response"]) @@ -108,7 +110,7 @@ def test_raw_response_update(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" user = response.parse() assert_matches_type(User, user, path=["response"]) @@ -121,7 +123,7 @@ def test_streaming_response_update(self, client: Fireworks) -> None: role="role", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" user = response.parse() assert_matches_type(User, user, path=["response"]) @@ -174,7 +176,7 @@ def test_raw_response_list(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" user = response.parse() assert_matches_type(SyncCursorUsers[User], user, path=["response"]) @@ -185,7 +187,7 @@ def test_streaming_response_list(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" user = response.parse() assert_matches_type(SyncCursorUsers[User], user, path=["response"]) @@ -228,7 +230,7 @@ def test_raw_response_get(self, client: Fireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" user = response.parse() assert_matches_type(User, user, path=["response"]) @@ -240,7 +242,7 @@ def test_streaming_response_get(self, client: Fireworks) -> None: account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" user = response.parse() assert_matches_type(User, user, path=["response"]) @@ -299,7 +301,7 @@ async def test_raw_response_create(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" user = await response.parse() assert_matches_type(User, user, path=["response"]) @@ -311,7 +313,7 @@ async def test_streaming_response_create(self, async_client: AsyncFireworks) -> role="role", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" user = await response.parse() assert_matches_type(User, user, path=["response"]) @@ -360,7 +362,7 @@ async def test_raw_response_update(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" user = await response.parse() assert_matches_type(User, user, path=["response"]) @@ -373,7 +375,7 @@ async def test_streaming_response_update(self, async_client: AsyncFireworks) -> role="role", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" user = await response.parse() assert_matches_type(User, user, path=["response"]) @@ -426,7 +428,7 @@ async def test_raw_response_list(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" user = await response.parse() assert_matches_type(AsyncCursorUsers[User], user, path=["response"]) @@ -437,7 +439,7 @@ async def test_streaming_response_list(self, async_client: AsyncFireworks) -> No account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" user = await response.parse() assert_matches_type(AsyncCursorUsers[User], user, path=["response"]) @@ -480,7 +482,7 @@ async def test_raw_response_get(self, async_client: AsyncFireworks) -> None: ) assert response.is_closed is True - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" user = await response.parse() assert_matches_type(User, user, path=["response"]) @@ -492,7 +494,7 @@ async def test_streaming_response_get(self, async_client: AsyncFireworks) -> Non account_id="account_id", ) as response: assert not response.is_closed - assert response.http_request.headers.get("X-Fireworks-Lang") == "python" + assert response.http_request.headers.get("X-Stainless-Lang") == "python" user = await response.parse() assert_matches_type(User, user, path=["response"]) diff --git a/tests/conftest.py b/tests/conftest.py index 7cb81d55..993c3f92 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations import os diff --git a/tests/test_client.py b/tests/test_client.py index 44a0e693..c9871cc5 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -1,3 +1,5 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from __future__ import annotations import gc @@ -380,7 +382,7 @@ def test_default_headers_option(self) -> None: ) request = test_client._build_request(FinalRequestOptions(method="get", url="/foo")) assert request.headers.get("x-foo") == "bar" - assert request.headers.get("x-fireworks-lang") == "python" + assert request.headers.get("x-stainless-lang") == "python" test_client2 = Fireworks( base_url=base_url, @@ -388,12 +390,12 @@ def test_default_headers_option(self) -> None: _strict_response_validation=True, default_headers={ "X-Foo": "stainless", - "X-Fireworks-Lang": "my-overriding-header", + "X-Stainless-Lang": "my-overriding-header", }, ) request = test_client2._build_request(FinalRequestOptions(method="get", url="/foo")) assert request.headers.get("x-foo") == "stainless" - assert request.headers.get("x-fireworks-lang") == "my-overriding-header" + assert request.headers.get("x-stainless-lang") == "my-overriding-header" test_client.close() test_client2.close() @@ -936,7 +938,7 @@ def retry_handler(_request: httpx.Request) -> httpx.Response: response = client.chat.completions.with_raw_response.create(messages=[{"role": "role"}], model="model") assert response.retries_taken == failures_before_success - assert int(response.http_request.headers.get("x-fireworks-retry-count")) == failures_before_success + assert int(response.http_request.headers.get("x-stainless-retry-count")) == failures_before_success @pytest.mark.parametrize("failures_before_success", [0, 2, 4]) @mock.patch("fireworks._base_client.BaseClient._calculate_retry_timeout", _low_retry_timeout) @@ -958,10 +960,10 @@ def retry_handler(_request: httpx.Request) -> httpx.Response: respx_mock.post("/v1/chat/completions").mock(side_effect=retry_handler) response = client.chat.completions.with_raw_response.create( - messages=[{"role": "role"}], model="model", extra_headers={"x-fireworks-retry-count": Omit()} + messages=[{"role": "role"}], model="model", extra_headers={"x-stainless-retry-count": Omit()} ) - assert len(response.http_request.headers.get_list("x-fireworks-retry-count")) == 0 + assert len(response.http_request.headers.get_list("x-stainless-retry-count")) == 0 @pytest.mark.parametrize("failures_before_success", [0, 2, 4]) @mock.patch("fireworks._base_client.BaseClient._calculate_retry_timeout", _low_retry_timeout) @@ -983,10 +985,10 @@ def retry_handler(_request: httpx.Request) -> httpx.Response: respx_mock.post("/v1/chat/completions").mock(side_effect=retry_handler) response = client.chat.completions.with_raw_response.create( - messages=[{"role": "role"}], model="model", extra_headers={"x-fireworks-retry-count": "42"} + messages=[{"role": "role"}], model="model", extra_headers={"x-stainless-retry-count": "42"} ) - assert response.http_request.headers.get("x-fireworks-retry-count") == "42" + assert response.http_request.headers.get("x-stainless-retry-count") == "42" def test_proxy_environment_variables(self, monkeypatch: pytest.MonkeyPatch) -> None: # Test that the proxy environment variables are set correctly @@ -1316,7 +1318,7 @@ async def test_default_headers_option(self) -> None: ) request = test_client._build_request(FinalRequestOptions(method="get", url="/foo")) assert request.headers.get("x-foo") == "bar" - assert request.headers.get("x-fireworks-lang") == "python" + assert request.headers.get("x-stainless-lang") == "python" test_client2 = AsyncFireworks( base_url=base_url, @@ -1324,12 +1326,12 @@ async def test_default_headers_option(self) -> None: _strict_response_validation=True, default_headers={ "X-Foo": "stainless", - "X-Fireworks-Lang": "my-overriding-header", + "X-Stainless-Lang": "my-overriding-header", }, ) request = test_client2._build_request(FinalRequestOptions(method="get", url="/foo")) assert request.headers.get("x-foo") == "stainless" - assert request.headers.get("x-fireworks-lang") == "my-overriding-header" + assert request.headers.get("x-stainless-lang") == "my-overriding-header" await test_client.close() await test_client2.close() @@ -1897,7 +1899,7 @@ def retry_handler(_request: httpx.Request) -> httpx.Response: response = await client.chat.completions.with_raw_response.create(messages=[{"role": "role"}], model="model") assert response.retries_taken == failures_before_success - assert int(response.http_request.headers.get("x-fireworks-retry-count")) == failures_before_success + assert int(response.http_request.headers.get("x-stainless-retry-count")) == failures_before_success @pytest.mark.parametrize("failures_before_success", [0, 2, 4]) @mock.patch("fireworks._base_client.BaseClient._calculate_retry_timeout", _low_retry_timeout) @@ -1919,10 +1921,10 @@ def retry_handler(_request: httpx.Request) -> httpx.Response: respx_mock.post("/v1/chat/completions").mock(side_effect=retry_handler) response = await client.chat.completions.with_raw_response.create( - messages=[{"role": "role"}], model="model", extra_headers={"x-fireworks-retry-count": Omit()} + messages=[{"role": "role"}], model="model", extra_headers={"x-stainless-retry-count": Omit()} ) - assert len(response.http_request.headers.get_list("x-fireworks-retry-count")) == 0 + assert len(response.http_request.headers.get_list("x-stainless-retry-count")) == 0 @pytest.mark.parametrize("failures_before_success", [0, 2, 4]) @mock.patch("fireworks._base_client.BaseClient._calculate_retry_timeout", _low_retry_timeout) @@ -1944,10 +1946,10 @@ def retry_handler(_request: httpx.Request) -> httpx.Response: respx_mock.post("/v1/chat/completions").mock(side_effect=retry_handler) response = await client.chat.completions.with_raw_response.create( - messages=[{"role": "role"}], model="model", extra_headers={"x-fireworks-retry-count": "42"} + messages=[{"role": "role"}], model="model", extra_headers={"x-stainless-retry-count": "42"} ) - assert response.http_request.headers.get("x-fireworks-retry-count") == "42" + assert response.http_request.headers.get("x-stainless-retry-count") == "42" async def test_get_platform(self) -> None: platform = await asyncify(get_platform)()