From c4b20b4a4b3783f481a269006c1d449d60583618 Mon Sep 17 00:00:00 2001 From: anthonyduong Date: Sun, 1 Jun 2025 20:24:10 -0700 Subject: [PATCH] removes unused schemas files --- .../.github/workflows/python.yml | 31 ----- .../.gitlab-ci.yml | 31 ----- .../.openapi-generator-ignore | 23 ---- .../.openapi-generator/FILES | 21 --- .../.openapi-generator/VERSION | 2 +- .../neuronpedia-autointerp-client/.travis.yml | 17 --- .../neuronpedia-autointerp-client/README.md | 2 +- .../neuronpedia-autointerp-client/git_push.sh | 57 -------- .../configuration.py | 11 +- .../neuronpedia_autointerp_client/rest.py | 1 + .../requirements.txt | 4 - .../neuronpedia-autointerp-client/setup.cfg | 2 - .../test-requirements.txt | 6 - .../test/__init__.py | 0 .../test/test_default_api.py | 53 -------- .../test_explain_default_post200_response.py | 53 -------- .../test/test_explain_default_post_request.py | 65 --------- .../test/test_np_activation.py | 55 -------- .../test/test_np_score_fuzz_detection_type.py | 34 ----- .../test_score_embedding_post200_response.py | 65 --------- ...edding_post200_response_breakdown_inner.py | 57 -------- .../test/test_score_embedding_post_request.py | 63 --------- ...t_score_fuzz_detection_post200_response.py | 83 ------------ ...ection_post200_response_breakdown_inner.py | 63 --------- .../test_score_fuzz_detection_post_request.py | 69 ---------- .../neuronpedia-autointerp-client/tox.ini | 9 -- .../.github/workflows/python.yml | 31 ----- .../.gitlab-ci.yml | 31 ----- .../.openapi-generator-ignore | 23 ---- .../.openapi-generator/FILES | 42 ------ .../neuronpedia-inference-client/.travis.yml | 17 --- .../neuronpedia-inference-client/git_push.sh | 57 -------- .../requirements.txt | 4 - .../neuronpedia-inference-client/setup.cfg | 2 - .../test-requirements.txt | 6 - .../test/__init__.py | 0 .../test_activation_all_post200_response.py | 94 ------------- ..._all_post200_response_activations_inner.py | 71 ---------- .../test/test_activation_all_post_request.py | 75 ----------- ...test_activation_single_post200_response.py | 79 ----------- ...tion_single_post200_response_activation.py | 66 --------- .../test_activation_single_post_request.py | 61 --------- ...tivation_topk_by_token_post200_response.py | 77 ----------- ...by_token_post200_response_results_inner.py | 65 --------- ...sponse_results_inner_top_features_inner.py | 55 -------- ...t_activation_topk_by_token_post_request.py | 60 --------- .../test/test_default_api.py | 88 ------------ .../test/test_np_feature.py | 57 -------- .../test/test_np_logprob.py | 65 --------- .../test/test_np_logprob_top.py | 55 -------- .../test/test_np_steer_chat_message.py | 55 -------- .../test/test_np_steer_chat_result.py | 74 ---------- ...test_np_steer_completion_response_inner.py | 65 --------- .../test/test_np_steer_feature.py | 62 --------- .../test/test_np_steer_method.py | 34 ----- .../test/test_np_steer_type.py | 34 ----- .../test/test_np_steer_vector.py | 61 --------- ..._steer_completion_chat_post200_response.py | 127 ------------------ ...test_steer_completion_chat_post_request.py | 98 -------------- .../test_steer_completion_post200_response.py | 81 ----------- .../test/test_steer_completion_request.py | 88 ------------ .../test/test_tokenize_post200_response.py | 65 --------- .../test/test_tokenize_post_request.py | 56 -------- ...topk_by_decoder_cossim_post200_response.py | 63 --------- ...onse_topk_decoder_cossim_features_inner.py | 56 -------- ...sae_topk_by_decoder_cossim_post_request.py | 64 --------- .../test_util_sae_vector_post200_response.py | 57 -------- .../test/test_util_sae_vector_post_request.py | 57 -------- .../neuronpedia-inference-client/tox.ini | 9 -- .../.openapi-generator-ignore | 23 ---- .../.openapi-generator/FILES | 1 - .../.openapi-generator/VERSION | 2 +- .../.openapi-generator-ignore | 23 ---- .../.openapi-generator/FILES | 1 - schemas/.openapi-generator-ignore | 26 ++++ schemas/Makefile | 13 +- 76 files changed, 48 insertions(+), 3305 deletions(-) delete mode 100644 packages/python/neuronpedia-autointerp-client/.github/workflows/python.yml delete mode 100644 packages/python/neuronpedia-autointerp-client/.gitlab-ci.yml delete mode 100644 packages/python/neuronpedia-autointerp-client/.openapi-generator-ignore delete mode 100644 packages/python/neuronpedia-autointerp-client/.travis.yml delete mode 100644 packages/python/neuronpedia-autointerp-client/git_push.sh delete mode 100644 packages/python/neuronpedia-autointerp-client/requirements.txt delete mode 100644 packages/python/neuronpedia-autointerp-client/setup.cfg delete mode 100644 packages/python/neuronpedia-autointerp-client/test-requirements.txt delete mode 100644 packages/python/neuronpedia-autointerp-client/test/__init__.py delete mode 100644 packages/python/neuronpedia-autointerp-client/test/test_default_api.py delete mode 100644 packages/python/neuronpedia-autointerp-client/test/test_explain_default_post200_response.py delete mode 100644 packages/python/neuronpedia-autointerp-client/test/test_explain_default_post_request.py delete mode 100644 packages/python/neuronpedia-autointerp-client/test/test_np_activation.py delete mode 100644 packages/python/neuronpedia-autointerp-client/test/test_np_score_fuzz_detection_type.py delete mode 100644 packages/python/neuronpedia-autointerp-client/test/test_score_embedding_post200_response.py delete mode 100644 packages/python/neuronpedia-autointerp-client/test/test_score_embedding_post200_response_breakdown_inner.py delete mode 100644 packages/python/neuronpedia-autointerp-client/test/test_score_embedding_post_request.py delete mode 100644 packages/python/neuronpedia-autointerp-client/test/test_score_fuzz_detection_post200_response.py delete mode 100644 packages/python/neuronpedia-autointerp-client/test/test_score_fuzz_detection_post200_response_breakdown_inner.py delete mode 100644 packages/python/neuronpedia-autointerp-client/test/test_score_fuzz_detection_post_request.py delete mode 100644 packages/python/neuronpedia-autointerp-client/tox.ini delete mode 100644 packages/python/neuronpedia-inference-client/.github/workflows/python.yml delete mode 100644 packages/python/neuronpedia-inference-client/.gitlab-ci.yml delete mode 100644 packages/python/neuronpedia-inference-client/.openapi-generator-ignore delete mode 100644 packages/python/neuronpedia-inference-client/.travis.yml delete mode 100644 packages/python/neuronpedia-inference-client/git_push.sh delete mode 100644 packages/python/neuronpedia-inference-client/requirements.txt delete mode 100644 packages/python/neuronpedia-inference-client/setup.cfg delete mode 100644 packages/python/neuronpedia-inference-client/test-requirements.txt delete mode 100644 packages/python/neuronpedia-inference-client/test/__init__.py delete mode 100644 packages/python/neuronpedia-inference-client/test/test_activation_all_post200_response.py delete mode 100644 packages/python/neuronpedia-inference-client/test/test_activation_all_post200_response_activations_inner.py delete mode 100644 packages/python/neuronpedia-inference-client/test/test_activation_all_post_request.py delete mode 100644 packages/python/neuronpedia-inference-client/test/test_activation_single_post200_response.py delete mode 100644 packages/python/neuronpedia-inference-client/test/test_activation_single_post200_response_activation.py delete mode 100644 packages/python/neuronpedia-inference-client/test/test_activation_single_post_request.py delete mode 100644 packages/python/neuronpedia-inference-client/test/test_activation_topk_by_token_post200_response.py delete mode 100644 packages/python/neuronpedia-inference-client/test/test_activation_topk_by_token_post200_response_results_inner.py delete mode 100644 packages/python/neuronpedia-inference-client/test/test_activation_topk_by_token_post200_response_results_inner_top_features_inner.py delete mode 100644 packages/python/neuronpedia-inference-client/test/test_activation_topk_by_token_post_request.py delete mode 100644 packages/python/neuronpedia-inference-client/test/test_default_api.py delete mode 100644 packages/python/neuronpedia-inference-client/test/test_np_feature.py delete mode 100644 packages/python/neuronpedia-inference-client/test/test_np_logprob.py delete mode 100644 packages/python/neuronpedia-inference-client/test/test_np_logprob_top.py delete mode 100644 packages/python/neuronpedia-inference-client/test/test_np_steer_chat_message.py delete mode 100644 packages/python/neuronpedia-inference-client/test/test_np_steer_chat_result.py delete mode 100644 packages/python/neuronpedia-inference-client/test/test_np_steer_completion_response_inner.py delete mode 100644 packages/python/neuronpedia-inference-client/test/test_np_steer_feature.py delete mode 100644 packages/python/neuronpedia-inference-client/test/test_np_steer_method.py delete mode 100644 packages/python/neuronpedia-inference-client/test/test_np_steer_type.py delete mode 100644 packages/python/neuronpedia-inference-client/test/test_np_steer_vector.py delete mode 100644 packages/python/neuronpedia-inference-client/test/test_steer_completion_chat_post200_response.py delete mode 100644 packages/python/neuronpedia-inference-client/test/test_steer_completion_chat_post_request.py delete mode 100644 packages/python/neuronpedia-inference-client/test/test_steer_completion_post200_response.py delete mode 100644 packages/python/neuronpedia-inference-client/test/test_steer_completion_request.py delete mode 100644 packages/python/neuronpedia-inference-client/test/test_tokenize_post200_response.py delete mode 100644 packages/python/neuronpedia-inference-client/test/test_tokenize_post_request.py delete mode 100644 packages/python/neuronpedia-inference-client/test/test_util_sae_topk_by_decoder_cossim_post200_response.py delete mode 100644 packages/python/neuronpedia-inference-client/test/test_util_sae_topk_by_decoder_cossim_post200_response_topk_decoder_cossim_features_inner.py delete mode 100644 packages/python/neuronpedia-inference-client/test/test_util_sae_topk_by_decoder_cossim_post_request.py delete mode 100644 packages/python/neuronpedia-inference-client/test/test_util_sae_vector_post200_response.py delete mode 100644 packages/python/neuronpedia-inference-client/test/test_util_sae_vector_post_request.py delete mode 100644 packages/python/neuronpedia-inference-client/tox.ini delete mode 100644 packages/typescript/neuronpedia-autointerp-client/.openapi-generator-ignore delete mode 100644 packages/typescript/neuronpedia-inference-client/.openapi-generator-ignore create mode 100644 schemas/.openapi-generator-ignore diff --git a/packages/python/neuronpedia-autointerp-client/.github/workflows/python.yml b/packages/python/neuronpedia-autointerp-client/.github/workflows/python.yml deleted file mode 100644 index 7a1d8fc84..000000000 --- a/packages/python/neuronpedia-autointerp-client/.github/workflows/python.yml +++ /dev/null @@ -1,31 +0,0 @@ -# NOTE: This file is auto generated by OpenAPI Generator. -# URL: https://openapi-generator.tech -# -# ref: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python - -name: neuronpedia_autointerp_client Python package - -on: [push, pull_request] - -jobs: - build: - - runs-on: ubuntu-latest - strategy: - matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] - - steps: - - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install -r requirements.txt - pip install -r test-requirements.txt - - name: Test with pytest - run: | - pytest --cov={{packageName}} diff --git a/packages/python/neuronpedia-autointerp-client/.gitlab-ci.yml b/packages/python/neuronpedia-autointerp-client/.gitlab-ci.yml deleted file mode 100644 index 94fb2dc18..000000000 --- a/packages/python/neuronpedia-autointerp-client/.gitlab-ci.yml +++ /dev/null @@ -1,31 +0,0 @@ -# NOTE: This file is auto generated by OpenAPI Generator. -# URL: https://openapi-generator.tech -# -# ref: https://docs.gitlab.com/ee/ci/README.html -# ref: https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Python.gitlab-ci.yml - -stages: - - test - -.pytest: - stage: test - script: - - pip install -r requirements.txt - - pip install -r test-requirements.txt - - pytest --cov=neuronpedia_autointerp_client - -pytest-3.8: - extends: .pytest - image: python:3.8-alpine -pytest-3.9: - extends: .pytest - image: python:3.9-alpine -pytest-3.10: - extends: .pytest - image: python:3.10-alpine -pytest-3.11: - extends: .pytest - image: python:3.11-alpine -pytest-3.12: - extends: .pytest - image: python:3.12-alpine diff --git a/packages/python/neuronpedia-autointerp-client/.openapi-generator-ignore b/packages/python/neuronpedia-autointerp-client/.openapi-generator-ignore deleted file mode 100644 index 7484ee590..000000000 --- a/packages/python/neuronpedia-autointerp-client/.openapi-generator-ignore +++ /dev/null @@ -1,23 +0,0 @@ -# OpenAPI Generator Ignore -# Generated by openapi-generator https://github.com/openapitools/openapi-generator - -# Use this file to prevent files from being overwritten by the generator. -# The patterns follow closely to .gitignore or .dockerignore. - -# As an example, the C# client generator defines ApiClient.cs. -# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: -#ApiClient.cs - -# You can match any string of characters against a directory, file or extension with a single asterisk (*): -#foo/*/qux -# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux - -# You can recursively match patterns against a directory, file or extension with a double asterisk (**): -#foo/**/qux -# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux - -# You can also negate patterns with an exclamation (!). -# For example, you can ignore all files in a docs folder with the file extension .md: -#docs/*.md -# Then explicitly reverse the ignore rule for a single file: -#!docs/README.md diff --git a/packages/python/neuronpedia-autointerp-client/.openapi-generator/FILES b/packages/python/neuronpedia-autointerp-client/.openapi-generator/FILES index b1d05f214..db6a5640f 100644 --- a/packages/python/neuronpedia-autointerp-client/.openapi-generator/FILES +++ b/packages/python/neuronpedia-autointerp-client/.openapi-generator/FILES @@ -1,8 +1,4 @@ -.github/workflows/python.yml .gitignore -.gitlab-ci.yml -.openapi-generator-ignore -.travis.yml README.md docs/DefaultApi.md docs/ExplainDefaultPost200Response.md @@ -15,7 +11,6 @@ docs/ScoreEmbeddingPostRequest.md docs/ScoreFuzzDetectionPost200Response.md docs/ScoreFuzzDetectionPost200ResponseBreakdownInner.md docs/ScoreFuzzDetectionPostRequest.md -git_push.sh neuronpedia_autointerp_client/__init__.py neuronpedia_autointerp_client/api/__init__.py neuronpedia_autointerp_client/api/default_api.py @@ -37,20 +32,4 @@ neuronpedia_autointerp_client/models/score_fuzz_detection_post_request.py neuronpedia_autointerp_client/py.typed neuronpedia_autointerp_client/rest.py pyproject.toml -requirements.txt -setup.cfg setup.py -test-requirements.txt -test/__init__.py -test/test_default_api.py -test/test_explain_default_post200_response.py -test/test_explain_default_post_request.py -test/test_np_activation.py -test/test_np_score_fuzz_detection_type.py -test/test_score_embedding_post200_response.py -test/test_score_embedding_post200_response_breakdown_inner.py -test/test_score_embedding_post_request.py -test/test_score_fuzz_detection_post200_response.py -test/test_score_fuzz_detection_post200_response_breakdown_inner.py -test/test_score_fuzz_detection_post_request.py -tox.ini diff --git a/packages/python/neuronpedia-autointerp-client/.openapi-generator/VERSION b/packages/python/neuronpedia-autointerp-client/.openapi-generator/VERSION index b23eb2752..5f84a81db 100644 --- a/packages/python/neuronpedia-autointerp-client/.openapi-generator/VERSION +++ b/packages/python/neuronpedia-autointerp-client/.openapi-generator/VERSION @@ -1 +1 @@ -7.11.0 +7.12.0 diff --git a/packages/python/neuronpedia-autointerp-client/.travis.yml b/packages/python/neuronpedia-autointerp-client/.travis.yml deleted file mode 100644 index 04b0cd1fe..000000000 --- a/packages/python/neuronpedia-autointerp-client/.travis.yml +++ /dev/null @@ -1,17 +0,0 @@ -# ref: https://docs.travis-ci.com/user/languages/python -language: python -python: - - "3.8" - - "3.9" - - "3.10" - - "3.11" - - "3.12" - # uncomment the following if needed - #- "3.12-dev" # 3.12 development branch - #- "nightly" # nightly build -# command to install dependencies -install: - - "pip install -r requirements.txt" - - "pip install -r test-requirements.txt" -# command to run tests -script: pytest --cov=neuronpedia_autointerp_client diff --git a/packages/python/neuronpedia-autointerp-client/README.md b/packages/python/neuronpedia-autointerp-client/README.md index c114dbe19..9caba4c2d 100644 --- a/packages/python/neuronpedia-autointerp-client/README.md +++ b/packages/python/neuronpedia-autointerp-client/README.md @@ -5,7 +5,7 @@ This Python package is automatically generated by the [OpenAPI Generator](https: - API version: 1.0.0 - Package version: 1.0.0 -- Generator version: 7.11.0 +- Generator version: 7.12.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen ## Requirements. diff --git a/packages/python/neuronpedia-autointerp-client/git_push.sh b/packages/python/neuronpedia-autointerp-client/git_push.sh deleted file mode 100644 index f53a75d4f..000000000 --- a/packages/python/neuronpedia-autointerp-client/git_push.sh +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/sh -# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ -# -# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" - -git_user_id=$1 -git_repo_id=$2 -release_note=$3 -git_host=$4 - -if [ "$git_host" = "" ]; then - git_host="github.com" - echo "[INFO] No command line input provided. Set \$git_host to $git_host" -fi - -if [ "$git_user_id" = "" ]; then - git_user_id="GIT_USER_ID" - echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" -fi - -if [ "$git_repo_id" = "" ]; then - git_repo_id="GIT_REPO_ID" - echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" -fi - -if [ "$release_note" = "" ]; then - release_note="Minor update" - echo "[INFO] No command line input provided. Set \$release_note to $release_note" -fi - -# Initialize the local directory as a Git repository -git init - -# Adds the files in the local repository and stages them for commit. -git add . - -# Commits the tracked changes and prepares them to be pushed to a remote repository. -git commit -m "$release_note" - -# Sets the new remote -git_remote=$(git remote) -if [ "$git_remote" = "" ]; then # git remote not defined - - if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." - git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git - else - git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git - fi - -fi - -git pull origin master - -# Pushes (Forces) the changes in the local repository up to the remote repository -echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" -git push origin master 2>&1 | grep -v 'To https' diff --git a/packages/python/neuronpedia-autointerp-client/neuronpedia_autointerp_client/configuration.py b/packages/python/neuronpedia-autointerp-client/neuronpedia_autointerp_client/configuration.py index 1fbaada85..6e31850b2 100644 --- a/packages/python/neuronpedia-autointerp-client/neuronpedia_autointerp_client/configuration.py +++ b/packages/python/neuronpedia-autointerp-client/neuronpedia_autointerp_client/configuration.py @@ -19,7 +19,7 @@ from logging import FileHandler import multiprocessing import sys -from typing import Any, ClassVar, Dict, List, Literal, Optional, TypedDict +from typing import Any, ClassVar, Dict, List, Literal, Optional, TypedDict, Union from typing_extensions import NotRequired, Self import urllib3 @@ -162,6 +162,8 @@ class Configuration: :param ssl_ca_cert: str - the path to a file of concatenated CA certificates in PEM format. :param retries: Number of retries for API requests. + :param ca_cert_data: verify the peer using concatenated CA certificate data + in PEM (str) or DER (bytes) format. :Example: @@ -195,13 +197,14 @@ def __init__( username: Optional[str]=None, password: Optional[str]=None, access_token: Optional[str]=None, - server_index: Optional[int]=None, + server_index: Optional[int]=None, server_variables: Optional[ServerVariablesT]=None, server_operation_index: Optional[Dict[int, int]]=None, server_operation_variables: Optional[Dict[int, ServerVariablesT]]=None, ignore_operation_servers: bool=False, ssl_ca_cert: Optional[str]=None, retries: Optional[int] = None, + ca_cert_data: Optional[Union[str, bytes]] = None, *, debug: Optional[bool] = None, ) -> None: @@ -279,6 +282,10 @@ def __init__( self.ssl_ca_cert = ssl_ca_cert """Set this to customize the certificate file to verify the peer. """ + self.ca_cert_data = ca_cert_data + """Set this to verify the peer using PEM (str) or DER (bytes) + certificate data. + """ self.cert_file = None """client certificate file """ diff --git a/packages/python/neuronpedia-autointerp-client/neuronpedia_autointerp_client/rest.py b/packages/python/neuronpedia-autointerp-client/neuronpedia_autointerp_client/rest.py index 58ba2dfc3..c1f1061ec 100644 --- a/packages/python/neuronpedia-autointerp-client/neuronpedia_autointerp_client/rest.py +++ b/packages/python/neuronpedia-autointerp-client/neuronpedia_autointerp_client/rest.py @@ -77,6 +77,7 @@ def __init__(self, configuration) -> None: "ca_certs": configuration.ssl_ca_cert, "cert_file": configuration.cert_file, "key_file": configuration.key_file, + "ca_cert_data": configuration.ca_cert_data, } if configuration.assert_hostname is not None: pool_args['assert_hostname'] = ( diff --git a/packages/python/neuronpedia-autointerp-client/requirements.txt b/packages/python/neuronpedia-autointerp-client/requirements.txt deleted file mode 100644 index 67f7f68df..000000000 --- a/packages/python/neuronpedia-autointerp-client/requirements.txt +++ /dev/null @@ -1,4 +0,0 @@ -urllib3 >= 1.25.3, < 3.0.0 -python_dateutil >= 2.8.2 -pydantic >= 2 -typing-extensions >= 4.7.1 diff --git a/packages/python/neuronpedia-autointerp-client/setup.cfg b/packages/python/neuronpedia-autointerp-client/setup.cfg deleted file mode 100644 index 11433ee87..000000000 --- a/packages/python/neuronpedia-autointerp-client/setup.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[flake8] -max-line-length=99 diff --git a/packages/python/neuronpedia-autointerp-client/test-requirements.txt b/packages/python/neuronpedia-autointerp-client/test-requirements.txt deleted file mode 100644 index e98555c11..000000000 --- a/packages/python/neuronpedia-autointerp-client/test-requirements.txt +++ /dev/null @@ -1,6 +0,0 @@ -pytest >= 7.2.1 -pytest-cov >= 2.8.1 -tox >= 3.9.0 -flake8 >= 4.0.0 -types-python-dateutil >= 2.8.19.14 -mypy >= 1.5 diff --git a/packages/python/neuronpedia-autointerp-client/test/__init__.py b/packages/python/neuronpedia-autointerp-client/test/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/packages/python/neuronpedia-autointerp-client/test/test_default_api.py b/packages/python/neuronpedia-autointerp-client/test/test_default_api.py deleted file mode 100644 index eb03c2027..000000000 --- a/packages/python/neuronpedia-autointerp-client/test/test_default_api.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - Neuronpedia - AutoInterp Server - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 1.0.0 - Contact: johnny@neuronpedia.org - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from neuronpedia_autointerp_client.api.default_api import DefaultApi - - -class TestDefaultApi(unittest.TestCase): - """DefaultApi unit test stubs""" - - def setUp(self) -> None: - self.api = DefaultApi() - - def tearDown(self) -> None: - pass - - def test_explain_default_post(self) -> None: - """Test case for explain_default_post - - Generate an explanation for neuron/feature behavior using the default explainer - """ - pass - - def test_score_embedding_post(self) -> None: - """Test case for score_embedding_post - - Score an explanation using embedding similarity, using the dunzhang/stella_en_400M_v5 model. - """ - pass - - def test_score_fuzz_detection_post(self) -> None: - """Test case for score_fuzz_detection_post - - Score an explanation using fuzzing or detection methods - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/packages/python/neuronpedia-autointerp-client/test/test_explain_default_post200_response.py b/packages/python/neuronpedia-autointerp-client/test/test_explain_default_post200_response.py deleted file mode 100644 index bec3d1431..000000000 --- a/packages/python/neuronpedia-autointerp-client/test/test_explain_default_post200_response.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - Neuronpedia - AutoInterp Server - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 1.0.0 - Contact: johnny@neuronpedia.org - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from neuronpedia_autointerp_client.models.explain_default_post200_response import ExplainDefaultPost200Response - -class TestExplainDefaultPost200Response(unittest.TestCase): - """ExplainDefaultPost200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ExplainDefaultPost200Response: - """Test ExplainDefaultPost200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ExplainDefaultPost200Response` - """ - model = ExplainDefaultPost200Response() - if include_optional: - return ExplainDefaultPost200Response( - explanation = '' - ) - else: - return ExplainDefaultPost200Response( - explanation = '', - ) - """ - - def testExplainDefaultPost200Response(self): - """Test ExplainDefaultPost200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/packages/python/neuronpedia-autointerp-client/test/test_explain_default_post_request.py b/packages/python/neuronpedia-autointerp-client/test/test_explain_default_post_request.py deleted file mode 100644 index cb7214af3..000000000 --- a/packages/python/neuronpedia-autointerp-client/test/test_explain_default_post_request.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - Neuronpedia - AutoInterp Server - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 1.0.0 - Contact: johnny@neuronpedia.org - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from neuronpedia_autointerp_client.models.explain_default_post_request import ExplainDefaultPostRequest - -class TestExplainDefaultPostRequest(unittest.TestCase): - """ExplainDefaultPostRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ExplainDefaultPostRequest: - """Test ExplainDefaultPostRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ExplainDefaultPostRequest` - """ - model = ExplainDefaultPostRequest() - if include_optional: - return ExplainDefaultPostRequest( - activations = [ - neuronpedia_autointerp_client.models.np_activation.NPActivation( - tokens = ["The","cat","sat"], - values = [0.5,0.8,0.2], ) - ], - openrouter_key = 'sk-or-v1-...', - model = 'openai/gpt-4o-mini' - ) - else: - return ExplainDefaultPostRequest( - activations = [ - neuronpedia_autointerp_client.models.np_activation.NPActivation( - tokens = ["The","cat","sat"], - values = [0.5,0.8,0.2], ) - ], - openrouter_key = 'sk-or-v1-...', - model = 'openai/gpt-4o-mini', - ) - """ - - def testExplainDefaultPostRequest(self): - """Test ExplainDefaultPostRequest""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/packages/python/neuronpedia-autointerp-client/test/test_np_activation.py b/packages/python/neuronpedia-autointerp-client/test/test_np_activation.py deleted file mode 100644 index 36424598b..000000000 --- a/packages/python/neuronpedia-autointerp-client/test/test_np_activation.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - Neuronpedia - AutoInterp Server - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 1.0.0 - Contact: johnny@neuronpedia.org - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from neuronpedia_autointerp_client.models.np_activation import NPActivation - -class TestNPActivation(unittest.TestCase): - """NPActivation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> NPActivation: - """Test NPActivation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `NPActivation` - """ - model = NPActivation() - if include_optional: - return NPActivation( - tokens = ["The","cat","sat"], - values = [0.5,0.8,0.2] - ) - else: - return NPActivation( - tokens = ["The","cat","sat"], - values = [0.5,0.8,0.2], - ) - """ - - def testNPActivation(self): - """Test NPActivation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/packages/python/neuronpedia-autointerp-client/test/test_np_score_fuzz_detection_type.py b/packages/python/neuronpedia-autointerp-client/test/test_np_score_fuzz_detection_type.py deleted file mode 100644 index 708a35e83..000000000 --- a/packages/python/neuronpedia-autointerp-client/test/test_np_score_fuzz_detection_type.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding: utf-8 - -""" - Neuronpedia - AutoInterp Server - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 1.0.0 - Contact: johnny@neuronpedia.org - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from neuronpedia_autointerp_client.models.np_score_fuzz_detection_type import NPScoreFuzzDetectionType - -class TestNPScoreFuzzDetectionType(unittest.TestCase): - """NPScoreFuzzDetectionType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testNPScoreFuzzDetectionType(self): - """Test NPScoreFuzzDetectionType""" - # inst = NPScoreFuzzDetectionType() - -if __name__ == '__main__': - unittest.main() diff --git a/packages/python/neuronpedia-autointerp-client/test/test_score_embedding_post200_response.py b/packages/python/neuronpedia-autointerp-client/test/test_score_embedding_post200_response.py deleted file mode 100644 index de17fc77e..000000000 --- a/packages/python/neuronpedia-autointerp-client/test/test_score_embedding_post200_response.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - Neuronpedia - AutoInterp Server - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 1.0.0 - Contact: johnny@neuronpedia.org - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from neuronpedia_autointerp_client.models.score_embedding_post200_response import ScoreEmbeddingPost200Response - -class TestScoreEmbeddingPost200Response(unittest.TestCase): - """ScoreEmbeddingPost200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ScoreEmbeddingPost200Response: - """Test ScoreEmbeddingPost200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ScoreEmbeddingPost200Response` - """ - model = ScoreEmbeddingPost200Response() - if include_optional: - return ScoreEmbeddingPost200Response( - score = 1.337, - breakdown = [ - neuronpedia_autointerp_client.models._score_embedding_post_200_response_breakdown_inner._score_embedding_post_200_response_breakdown_inner( - text = '', - distance = 56, - similarity = 1.337, ) - ] - ) - else: - return ScoreEmbeddingPost200Response( - score = 1.337, - breakdown = [ - neuronpedia_autointerp_client.models._score_embedding_post_200_response_breakdown_inner._score_embedding_post_200_response_breakdown_inner( - text = '', - distance = 56, - similarity = 1.337, ) - ], - ) - """ - - def testScoreEmbeddingPost200Response(self): - """Test ScoreEmbeddingPost200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/packages/python/neuronpedia-autointerp-client/test/test_score_embedding_post200_response_breakdown_inner.py b/packages/python/neuronpedia-autointerp-client/test/test_score_embedding_post200_response_breakdown_inner.py deleted file mode 100644 index eaa3aff87..000000000 --- a/packages/python/neuronpedia-autointerp-client/test/test_score_embedding_post200_response_breakdown_inner.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - Neuronpedia - AutoInterp Server - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 1.0.0 - Contact: johnny@neuronpedia.org - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from neuronpedia_autointerp_client.models.score_embedding_post200_response_breakdown_inner import ScoreEmbeddingPost200ResponseBreakdownInner - -class TestScoreEmbeddingPost200ResponseBreakdownInner(unittest.TestCase): - """ScoreEmbeddingPost200ResponseBreakdownInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ScoreEmbeddingPost200ResponseBreakdownInner: - """Test ScoreEmbeddingPost200ResponseBreakdownInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ScoreEmbeddingPost200ResponseBreakdownInner` - """ - model = ScoreEmbeddingPost200ResponseBreakdownInner() - if include_optional: - return ScoreEmbeddingPost200ResponseBreakdownInner( - text = '', - distance = 56, - similarity = 1.337 - ) - else: - return ScoreEmbeddingPost200ResponseBreakdownInner( - text = '', - distance = 56, - similarity = 1.337, - ) - """ - - def testScoreEmbeddingPost200ResponseBreakdownInner(self): - """Test ScoreEmbeddingPost200ResponseBreakdownInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/packages/python/neuronpedia-autointerp-client/test/test_score_embedding_post_request.py b/packages/python/neuronpedia-autointerp-client/test/test_score_embedding_post_request.py deleted file mode 100644 index b6c864114..000000000 --- a/packages/python/neuronpedia-autointerp-client/test/test_score_embedding_post_request.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - Neuronpedia - AutoInterp Server - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 1.0.0 - Contact: johnny@neuronpedia.org - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from neuronpedia_autointerp_client.models.score_embedding_post_request import ScoreEmbeddingPostRequest - -class TestScoreEmbeddingPostRequest(unittest.TestCase): - """ScoreEmbeddingPostRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ScoreEmbeddingPostRequest: - """Test ScoreEmbeddingPostRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ScoreEmbeddingPostRequest` - """ - model = ScoreEmbeddingPostRequest() - if include_optional: - return ScoreEmbeddingPostRequest( - activations = [ - neuronpedia_autointerp_client.models.np_activation.NPActivation( - tokens = ["The","cat","sat"], - values = [0.5,0.8,0.2], ) - ], - explanation = 'This neuron activates on references to feline behavior' - ) - else: - return ScoreEmbeddingPostRequest( - activations = [ - neuronpedia_autointerp_client.models.np_activation.NPActivation( - tokens = ["The","cat","sat"], - values = [0.5,0.8,0.2], ) - ], - explanation = 'This neuron activates on references to feline behavior', - ) - """ - - def testScoreEmbeddingPostRequest(self): - """Test ScoreEmbeddingPostRequest""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/packages/python/neuronpedia-autointerp-client/test/test_score_fuzz_detection_post200_response.py b/packages/python/neuronpedia-autointerp-client/test/test_score_fuzz_detection_post200_response.py deleted file mode 100644 index c8677f8ae..000000000 --- a/packages/python/neuronpedia-autointerp-client/test/test_score_fuzz_detection_post200_response.py +++ /dev/null @@ -1,83 +0,0 @@ -# coding: utf-8 - -""" - Neuronpedia - AutoInterp Server - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 1.0.0 - Contact: johnny@neuronpedia.org - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from neuronpedia_autointerp_client.models.score_fuzz_detection_post200_response import ScoreFuzzDetectionPost200Response - -class TestScoreFuzzDetectionPost200Response(unittest.TestCase): - """ScoreFuzzDetectionPost200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ScoreFuzzDetectionPost200Response: - """Test ScoreFuzzDetectionPost200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ScoreFuzzDetectionPost200Response` - """ - model = ScoreFuzzDetectionPost200Response() - if include_optional: - return ScoreFuzzDetectionPost200Response( - score = 1.337, - breakdown = [ - neuronpedia_autointerp_client.models._score_fuzz_detection_post_200_response_breakdown_inner._score_fuzz_detection_post_200_response_breakdown_inner( - str_tokens = [ - '' - ], - activations = [ - 1.337 - ], - distance = 56, - ground_truth = True, - prediction = True, - highlighted = True, - probability = 1.337, - correct = True, ) - ] - ) - else: - return ScoreFuzzDetectionPost200Response( - score = 1.337, - breakdown = [ - neuronpedia_autointerp_client.models._score_fuzz_detection_post_200_response_breakdown_inner._score_fuzz_detection_post_200_response_breakdown_inner( - str_tokens = [ - '' - ], - activations = [ - 1.337 - ], - distance = 56, - ground_truth = True, - prediction = True, - highlighted = True, - probability = 1.337, - correct = True, ) - ], - ) - """ - - def testScoreFuzzDetectionPost200Response(self): - """Test ScoreFuzzDetectionPost200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/packages/python/neuronpedia-autointerp-client/test/test_score_fuzz_detection_post200_response_breakdown_inner.py b/packages/python/neuronpedia-autointerp-client/test/test_score_fuzz_detection_post200_response_breakdown_inner.py deleted file mode 100644 index 5268d7866..000000000 --- a/packages/python/neuronpedia-autointerp-client/test/test_score_fuzz_detection_post200_response_breakdown_inner.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - Neuronpedia - AutoInterp Server - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 1.0.0 - Contact: johnny@neuronpedia.org - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from neuronpedia_autointerp_client.models.score_fuzz_detection_post200_response_breakdown_inner import ScoreFuzzDetectionPost200ResponseBreakdownInner - -class TestScoreFuzzDetectionPost200ResponseBreakdownInner(unittest.TestCase): - """ScoreFuzzDetectionPost200ResponseBreakdownInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ScoreFuzzDetectionPost200ResponseBreakdownInner: - """Test ScoreFuzzDetectionPost200ResponseBreakdownInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ScoreFuzzDetectionPost200ResponseBreakdownInner` - """ - model = ScoreFuzzDetectionPost200ResponseBreakdownInner() - if include_optional: - return ScoreFuzzDetectionPost200ResponseBreakdownInner( - str_tokens = [ - '' - ], - activations = [ - 1.337 - ], - distance = 56, - ground_truth = True, - prediction = True, - highlighted = True, - probability = 1.337, - correct = True - ) - else: - return ScoreFuzzDetectionPost200ResponseBreakdownInner( - ) - """ - - def testScoreFuzzDetectionPost200ResponseBreakdownInner(self): - """Test ScoreFuzzDetectionPost200ResponseBreakdownInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/packages/python/neuronpedia-autointerp-client/test/test_score_fuzz_detection_post_request.py b/packages/python/neuronpedia-autointerp-client/test/test_score_fuzz_detection_post_request.py deleted file mode 100644 index 98eeab8bd..000000000 --- a/packages/python/neuronpedia-autointerp-client/test/test_score_fuzz_detection_post_request.py +++ /dev/null @@ -1,69 +0,0 @@ -# coding: utf-8 - -""" - Neuronpedia - AutoInterp Server - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 1.0.0 - Contact: johnny@neuronpedia.org - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from neuronpedia_autointerp_client.models.score_fuzz_detection_post_request import ScoreFuzzDetectionPostRequest - -class TestScoreFuzzDetectionPostRequest(unittest.TestCase): - """ScoreFuzzDetectionPostRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ScoreFuzzDetectionPostRequest: - """Test ScoreFuzzDetectionPostRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ScoreFuzzDetectionPostRequest` - """ - model = ScoreFuzzDetectionPostRequest() - if include_optional: - return ScoreFuzzDetectionPostRequest( - activations = [ - neuronpedia_autointerp_client.models.np_activation.NPActivation( - tokens = ["The","cat","sat"], - values = [0.5,0.8,0.2], ) - ], - explanation = 'This neuron activates on references to feline behavior', - openrouter_key = 'sk-or-v1-...', - model = 'openai/gpt-4o-mini', - type = 'FUZZ' - ) - else: - return ScoreFuzzDetectionPostRequest( - activations = [ - neuronpedia_autointerp_client.models.np_activation.NPActivation( - tokens = ["The","cat","sat"], - values = [0.5,0.8,0.2], ) - ], - explanation = 'This neuron activates on references to feline behavior', - openrouter_key = 'sk-or-v1-...', - model = 'openai/gpt-4o-mini', - type = 'FUZZ', - ) - """ - - def testScoreFuzzDetectionPostRequest(self): - """Test ScoreFuzzDetectionPostRequest""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/packages/python/neuronpedia-autointerp-client/tox.ini b/packages/python/neuronpedia-autointerp-client/tox.ini deleted file mode 100644 index c3901c6e2..000000000 --- a/packages/python/neuronpedia-autointerp-client/tox.ini +++ /dev/null @@ -1,9 +0,0 @@ -[tox] -envlist = py3 - -[testenv] -deps=-r{toxinidir}/requirements.txt - -r{toxinidir}/test-requirements.txt - -commands= - pytest --cov=neuronpedia_autointerp_client diff --git a/packages/python/neuronpedia-inference-client/.github/workflows/python.yml b/packages/python/neuronpedia-inference-client/.github/workflows/python.yml deleted file mode 100644 index 488fac89b..000000000 --- a/packages/python/neuronpedia-inference-client/.github/workflows/python.yml +++ /dev/null @@ -1,31 +0,0 @@ -# NOTE: This file is auto generated by OpenAPI Generator. -# URL: https://openapi-generator.tech -# -# ref: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python - -name: neuronpedia_inference_client Python package - -on: [push, pull_request] - -jobs: - build: - - runs-on: ubuntu-latest - strategy: - matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] - - steps: - - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install -r requirements.txt - pip install -r test-requirements.txt - - name: Test with pytest - run: | - pytest --cov=neuronpedia_inference_client diff --git a/packages/python/neuronpedia-inference-client/.gitlab-ci.yml b/packages/python/neuronpedia-inference-client/.gitlab-ci.yml deleted file mode 100644 index e2a06ef4b..000000000 --- a/packages/python/neuronpedia-inference-client/.gitlab-ci.yml +++ /dev/null @@ -1,31 +0,0 @@ -# NOTE: This file is auto generated by OpenAPI Generator. -# URL: https://openapi-generator.tech -# -# ref: https://docs.gitlab.com/ee/ci/README.html -# ref: https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Python.gitlab-ci.yml - -stages: - - test - -.pytest: - stage: test - script: - - pip install -r requirements.txt - - pip install -r test-requirements.txt - - pytest --cov=neuronpedia_inference_client - -pytest-3.8: - extends: .pytest - image: python:3.8-alpine -pytest-3.9: - extends: .pytest - image: python:3.9-alpine -pytest-3.10: - extends: .pytest - image: python:3.10-alpine -pytest-3.11: - extends: .pytest - image: python:3.11-alpine -pytest-3.12: - extends: .pytest - image: python:3.12-alpine diff --git a/packages/python/neuronpedia-inference-client/.openapi-generator-ignore b/packages/python/neuronpedia-inference-client/.openapi-generator-ignore deleted file mode 100644 index 7484ee590..000000000 --- a/packages/python/neuronpedia-inference-client/.openapi-generator-ignore +++ /dev/null @@ -1,23 +0,0 @@ -# OpenAPI Generator Ignore -# Generated by openapi-generator https://github.com/openapitools/openapi-generator - -# Use this file to prevent files from being overwritten by the generator. -# The patterns follow closely to .gitignore or .dockerignore. - -# As an example, the C# client generator defines ApiClient.cs. -# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: -#ApiClient.cs - -# You can match any string of characters against a directory, file or extension with a single asterisk (*): -#foo/*/qux -# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux - -# You can recursively match patterns against a directory, file or extension with a double asterisk (**): -#foo/**/qux -# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux - -# You can also negate patterns with an exclamation (!). -# For example, you can ignore all files in a docs folder with the file extension .md: -#docs/*.md -# Then explicitly reverse the ignore rule for a single file: -#!docs/README.md diff --git a/packages/python/neuronpedia-inference-client/.openapi-generator/FILES b/packages/python/neuronpedia-inference-client/.openapi-generator/FILES index 4f9dba8e0..9bbb4ab21 100644 --- a/packages/python/neuronpedia-inference-client/.openapi-generator/FILES +++ b/packages/python/neuronpedia-inference-client/.openapi-generator/FILES @@ -1,8 +1,4 @@ -.github/workflows/python.yml .gitignore -.gitlab-ci.yml -.openapi-generator-ignore -.travis.yml README.md docs/ActivationAllPost200Response.md docs/ActivationAllPost200ResponseActivationsInner.md @@ -36,7 +32,6 @@ docs/UtilSaeTopkByDecoderCossimPost200ResponseTopkDecoderCossimFeaturesInner.md docs/UtilSaeTopkByDecoderCossimPostRequest.md docs/UtilSaeVectorPost200Response.md docs/UtilSaeVectorPostRequest.md -git_push.sh neuronpedia_inference_client/__init__.py neuronpedia_inference_client/api/__init__.py neuronpedia_inference_client/api/default_api.py @@ -79,41 +74,4 @@ neuronpedia_inference_client/models/util_sae_vector_post_request.py neuronpedia_inference_client/py.typed neuronpedia_inference_client/rest.py pyproject.toml -requirements.txt -setup.cfg setup.py -test-requirements.txt -test/__init__.py -test/test_activation_all_post200_response.py -test/test_activation_all_post200_response_activations_inner.py -test/test_activation_all_post_request.py -test/test_activation_single_post200_response.py -test/test_activation_single_post200_response_activation.py -test/test_activation_single_post_request.py -test/test_activation_topk_by_token_post200_response.py -test/test_activation_topk_by_token_post200_response_results_inner.py -test/test_activation_topk_by_token_post200_response_results_inner_top_features_inner.py -test/test_activation_topk_by_token_post_request.py -test/test_default_api.py -test/test_np_feature.py -test/test_np_logprob.py -test/test_np_logprob_top.py -test/test_np_steer_chat_message.py -test/test_np_steer_chat_result.py -test/test_np_steer_completion_response_inner.py -test/test_np_steer_feature.py -test/test_np_steer_method.py -test/test_np_steer_type.py -test/test_np_steer_vector.py -test/test_steer_completion_chat_post200_response.py -test/test_steer_completion_chat_post_request.py -test/test_steer_completion_post200_response.py -test/test_steer_completion_request.py -test/test_tokenize_post200_response.py -test/test_tokenize_post_request.py -test/test_util_sae_topk_by_decoder_cossim_post200_response.py -test/test_util_sae_topk_by_decoder_cossim_post200_response_topk_decoder_cossim_features_inner.py -test/test_util_sae_topk_by_decoder_cossim_post_request.py -test/test_util_sae_vector_post200_response.py -test/test_util_sae_vector_post_request.py -tox.ini diff --git a/packages/python/neuronpedia-inference-client/.travis.yml b/packages/python/neuronpedia-inference-client/.travis.yml deleted file mode 100644 index ec2f5a38d..000000000 --- a/packages/python/neuronpedia-inference-client/.travis.yml +++ /dev/null @@ -1,17 +0,0 @@ -# ref: https://docs.travis-ci.com/user/languages/python -language: python -python: - - "3.8" - - "3.9" - - "3.10" - - "3.11" - - "3.12" - # uncomment the following if needed - #- "3.12-dev" # 3.12 development branch - #- "nightly" # nightly build -# command to install dependencies -install: - - "pip install -r requirements.txt" - - "pip install -r test-requirements.txt" -# command to run tests -script: pytest --cov=neuronpedia_inference_client diff --git a/packages/python/neuronpedia-inference-client/git_push.sh b/packages/python/neuronpedia-inference-client/git_push.sh deleted file mode 100644 index f53a75d4f..000000000 --- a/packages/python/neuronpedia-inference-client/git_push.sh +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/sh -# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ -# -# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" - -git_user_id=$1 -git_repo_id=$2 -release_note=$3 -git_host=$4 - -if [ "$git_host" = "" ]; then - git_host="github.com" - echo "[INFO] No command line input provided. Set \$git_host to $git_host" -fi - -if [ "$git_user_id" = "" ]; then - git_user_id="GIT_USER_ID" - echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" -fi - -if [ "$git_repo_id" = "" ]; then - git_repo_id="GIT_REPO_ID" - echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" -fi - -if [ "$release_note" = "" ]; then - release_note="Minor update" - echo "[INFO] No command line input provided. Set \$release_note to $release_note" -fi - -# Initialize the local directory as a Git repository -git init - -# Adds the files in the local repository and stages them for commit. -git add . - -# Commits the tracked changes and prepares them to be pushed to a remote repository. -git commit -m "$release_note" - -# Sets the new remote -git_remote=$(git remote) -if [ "$git_remote" = "" ]; then # git remote not defined - - if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." - git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git - else - git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git - fi - -fi - -git pull origin master - -# Pushes (Forces) the changes in the local repository up to the remote repository -echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" -git push origin master 2>&1 | grep -v 'To https' diff --git a/packages/python/neuronpedia-inference-client/requirements.txt b/packages/python/neuronpedia-inference-client/requirements.txt deleted file mode 100644 index 67f7f68df..000000000 --- a/packages/python/neuronpedia-inference-client/requirements.txt +++ /dev/null @@ -1,4 +0,0 @@ -urllib3 >= 1.25.3, < 3.0.0 -python_dateutil >= 2.8.2 -pydantic >= 2 -typing-extensions >= 4.7.1 diff --git a/packages/python/neuronpedia-inference-client/setup.cfg b/packages/python/neuronpedia-inference-client/setup.cfg deleted file mode 100644 index 11433ee87..000000000 --- a/packages/python/neuronpedia-inference-client/setup.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[flake8] -max-line-length=99 diff --git a/packages/python/neuronpedia-inference-client/test-requirements.txt b/packages/python/neuronpedia-inference-client/test-requirements.txt deleted file mode 100644 index e98555c11..000000000 --- a/packages/python/neuronpedia-inference-client/test-requirements.txt +++ /dev/null @@ -1,6 +0,0 @@ -pytest >= 7.2.1 -pytest-cov >= 2.8.1 -tox >= 3.9.0 -flake8 >= 4.0.0 -types-python-dateutil >= 2.8.19.14 -mypy >= 1.5 diff --git a/packages/python/neuronpedia-inference-client/test/__init__.py b/packages/python/neuronpedia-inference-client/test/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/packages/python/neuronpedia-inference-client/test/test_activation_all_post200_response.py b/packages/python/neuronpedia-inference-client/test/test_activation_all_post200_response.py deleted file mode 100644 index 490397f56..000000000 --- a/packages/python/neuronpedia-inference-client/test/test_activation_all_post200_response.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - Neuronpedia - Inference Server - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 1.1.0 - Contact: johnny@neuronpedia.org - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from neuronpedia_inference_client.models.activation_all_post200_response import ActivationAllPost200Response - -class TestActivationAllPost200Response(unittest.TestCase): - """ActivationAllPost200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ActivationAllPost200Response: - """Test ActivationAllPost200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ActivationAllPost200Response` - """ - model = ActivationAllPost200Response() - if include_optional: - return ActivationAllPost200Response( - activations = [ - neuronpedia_inference_client.models._activation_all_post_200_response_activations_inner._activation_all_post_200_response_activations_inner( - source = '', - index = 56, - values = [ - 1.337 - ], - sum_values = 1.337, - max_value = 1.337, - max_value_index = 1.337, - dfa_values = [ - 1.337 - ], - dfa_target_index = 56, - dfa_max_value = 1.337, ) - ], - tokens = [ - '' - ], - counts = [ - [ - 1.337 - ] - ] - ) - else: - return ActivationAllPost200Response( - activations = [ - neuronpedia_inference_client.models._activation_all_post_200_response_activations_inner._activation_all_post_200_response_activations_inner( - source = '', - index = 56, - values = [ - 1.337 - ], - sum_values = 1.337, - max_value = 1.337, - max_value_index = 1.337, - dfa_values = [ - 1.337 - ], - dfa_target_index = 56, - dfa_max_value = 1.337, ) - ], - tokens = [ - '' - ], - ) - """ - - def testActivationAllPost200Response(self): - """Test ActivationAllPost200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/packages/python/neuronpedia-inference-client/test/test_activation_all_post200_response_activations_inner.py b/packages/python/neuronpedia-inference-client/test/test_activation_all_post200_response_activations_inner.py deleted file mode 100644 index 80e928b9e..000000000 --- a/packages/python/neuronpedia-inference-client/test/test_activation_all_post200_response_activations_inner.py +++ /dev/null @@ -1,71 +0,0 @@ -# coding: utf-8 - -""" - Neuronpedia - Inference Server - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 1.1.0 - Contact: johnny@neuronpedia.org - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from neuronpedia_inference_client.models.activation_all_post200_response_activations_inner import ActivationAllPost200ResponseActivationsInner - -class TestActivationAllPost200ResponseActivationsInner(unittest.TestCase): - """ActivationAllPost200ResponseActivationsInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ActivationAllPost200ResponseActivationsInner: - """Test ActivationAllPost200ResponseActivationsInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ActivationAllPost200ResponseActivationsInner` - """ - model = ActivationAllPost200ResponseActivationsInner() - if include_optional: - return ActivationAllPost200ResponseActivationsInner( - source = '', - index = 56, - values = [ - 1.337 - ], - sum_values = 1.337, - max_value = 1.337, - max_value_index = 1.337, - dfa_values = [ - 1.337 - ], - dfa_target_index = 56, - dfa_max_value = 1.337 - ) - else: - return ActivationAllPost200ResponseActivationsInner( - source = '', - index = 56, - values = [ - 1.337 - ], - max_value = 1.337, - max_value_index = 1.337, - ) - """ - - def testActivationAllPost200ResponseActivationsInner(self): - """Test ActivationAllPost200ResponseActivationsInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/packages/python/neuronpedia-inference-client/test/test_activation_all_post_request.py b/packages/python/neuronpedia-inference-client/test/test_activation_all_post_request.py deleted file mode 100644 index 2447a71ec..000000000 --- a/packages/python/neuronpedia-inference-client/test/test_activation_all_post_request.py +++ /dev/null @@ -1,75 +0,0 @@ -# coding: utf-8 - -""" - Neuronpedia - Inference Server - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 1.1.0 - Contact: johnny@neuronpedia.org - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from neuronpedia_inference_client.models.activation_all_post_request import ActivationAllPostRequest - -class TestActivationAllPostRequest(unittest.TestCase): - """ActivationAllPostRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ActivationAllPostRequest: - """Test ActivationAllPostRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ActivationAllPostRequest` - """ - model = ActivationAllPostRequest() - if include_optional: - return ActivationAllPostRequest( - prompt = '', - model = '', - source_set = '', - selected_sources = [ - '' - ], - sort_by_token_indexes = [ - 56 - ], - ignore_bos = True, - feature_filter = [ - 56 - ], - num_results = 56 - ) - else: - return ActivationAllPostRequest( - prompt = '', - model = '', - source_set = '', - selected_sources = [ - '' - ], - sort_by_token_indexes = [ - 56 - ], - ignore_bos = True, - ) - """ - - def testActivationAllPostRequest(self): - """Test ActivationAllPostRequest""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/packages/python/neuronpedia-inference-client/test/test_activation_single_post200_response.py b/packages/python/neuronpedia-inference-client/test/test_activation_single_post200_response.py deleted file mode 100644 index ee4b65c31..000000000 --- a/packages/python/neuronpedia-inference-client/test/test_activation_single_post200_response.py +++ /dev/null @@ -1,79 +0,0 @@ -# coding: utf-8 - -""" - Neuronpedia - Inference Server - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 1.1.0 - Contact: johnny@neuronpedia.org - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from neuronpedia_inference_client.models.activation_single_post200_response import ActivationSinglePost200Response - -class TestActivationSinglePost200Response(unittest.TestCase): - """ActivationSinglePost200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ActivationSinglePost200Response: - """Test ActivationSinglePost200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ActivationSinglePost200Response` - """ - model = ActivationSinglePost200Response() - if include_optional: - return ActivationSinglePost200Response( - activation = neuronpedia_inference_client.models._activation_single_post_200_response_activation._activation_single_post_200_response_activation( - values = [ - 1.337 - ], - max_value = 1.337, - max_value_index = 56, - dfa_values = [ - 1.337 - ], - dfa_max_value = 1.337, - dfa_target_index = 56, ), - tokens = [ - '' - ] - ) - else: - return ActivationSinglePost200Response( - activation = neuronpedia_inference_client.models._activation_single_post_200_response_activation._activation_single_post_200_response_activation( - values = [ - 1.337 - ], - max_value = 1.337, - max_value_index = 56, - dfa_values = [ - 1.337 - ], - dfa_max_value = 1.337, - dfa_target_index = 56, ), - tokens = [ - '' - ], - ) - """ - - def testActivationSinglePost200Response(self): - """Test ActivationSinglePost200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/packages/python/neuronpedia-inference-client/test/test_activation_single_post200_response_activation.py b/packages/python/neuronpedia-inference-client/test/test_activation_single_post200_response_activation.py deleted file mode 100644 index 05ce68d65..000000000 --- a/packages/python/neuronpedia-inference-client/test/test_activation_single_post200_response_activation.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - Neuronpedia - Inference Server - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 1.1.0 - Contact: johnny@neuronpedia.org - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from neuronpedia_inference_client.models.activation_single_post200_response_activation import ActivationSinglePost200ResponseActivation - -class TestActivationSinglePost200ResponseActivation(unittest.TestCase): - """ActivationSinglePost200ResponseActivation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ActivationSinglePost200ResponseActivation: - """Test ActivationSinglePost200ResponseActivation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ActivationSinglePost200ResponseActivation` - """ - model = ActivationSinglePost200ResponseActivation() - if include_optional: - return ActivationSinglePost200ResponseActivation( - values = [ - 1.337 - ], - max_value = 1.337, - max_value_index = 56, - dfa_values = [ - 1.337 - ], - dfa_max_value = 1.337, - dfa_target_index = 56 - ) - else: - return ActivationSinglePost200ResponseActivation( - values = [ - 1.337 - ], - max_value = 1.337, - max_value_index = 56, - ) - """ - - def testActivationSinglePost200ResponseActivation(self): - """Test ActivationSinglePost200ResponseActivation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/packages/python/neuronpedia-inference-client/test/test_activation_single_post_request.py b/packages/python/neuronpedia-inference-client/test/test_activation_single_post_request.py deleted file mode 100644 index 15249aff3..000000000 --- a/packages/python/neuronpedia-inference-client/test/test_activation_single_post_request.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Neuronpedia - Inference Server - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 1.1.0 - Contact: johnny@neuronpedia.org - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from neuronpedia_inference_client.models.activation_single_post_request import ActivationSinglePostRequest - -class TestActivationSinglePostRequest(unittest.TestCase): - """ActivationSinglePostRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ActivationSinglePostRequest: - """Test ActivationSinglePostRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ActivationSinglePostRequest` - """ - model = ActivationSinglePostRequest() - if include_optional: - return ActivationSinglePostRequest( - prompt = '', - model = '', - source = '', - index = '', - vector = [ - 1.337 - ], - hook = '' - ) - else: - return ActivationSinglePostRequest( - prompt = '', - model = '', - ) - """ - - def testActivationSinglePostRequest(self): - """Test ActivationSinglePostRequest""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/packages/python/neuronpedia-inference-client/test/test_activation_topk_by_token_post200_response.py b/packages/python/neuronpedia-inference-client/test/test_activation_topk_by_token_post200_response.py deleted file mode 100644 index d479d4add..000000000 --- a/packages/python/neuronpedia-inference-client/test/test_activation_topk_by_token_post200_response.py +++ /dev/null @@ -1,77 +0,0 @@ -# coding: utf-8 - -""" - Neuronpedia - Inference Server - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 1.1.0 - Contact: johnny@neuronpedia.org - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from neuronpedia_inference_client.models.activation_topk_by_token_post200_response import ActivationTopkByTokenPost200Response - -class TestActivationTopkByTokenPost200Response(unittest.TestCase): - """ActivationTopkByTokenPost200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ActivationTopkByTokenPost200Response: - """Test ActivationTopkByTokenPost200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ActivationTopkByTokenPost200Response` - """ - model = ActivationTopkByTokenPost200Response() - if include_optional: - return ActivationTopkByTokenPost200Response( - results = [ - neuronpedia_inference_client.models._activation_topk_by_token_post_200_response_results_inner._activation_topk_by_token_post_200_response_results_inner( - token_position = 56, - token = '', - top_features = [ - neuronpedia_inference_client.models._activation_topk_by_token_post_200_response_results_inner_top_features_inner._activation_topk_by_token_post_200_response_results_inner_top_features_inner( - feature_index = 56, - activation_value = 1.337, ) - ], ) - ], - tokens = [ - '' - ] - ) - else: - return ActivationTopkByTokenPost200Response( - results = [ - neuronpedia_inference_client.models._activation_topk_by_token_post_200_response_results_inner._activation_topk_by_token_post_200_response_results_inner( - token_position = 56, - token = '', - top_features = [ - neuronpedia_inference_client.models._activation_topk_by_token_post_200_response_results_inner_top_features_inner._activation_topk_by_token_post_200_response_results_inner_top_features_inner( - feature_index = 56, - activation_value = 1.337, ) - ], ) - ], - tokens = [ - '' - ], - ) - """ - - def testActivationTopkByTokenPost200Response(self): - """Test ActivationTopkByTokenPost200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/packages/python/neuronpedia-inference-client/test/test_activation_topk_by_token_post200_response_results_inner.py b/packages/python/neuronpedia-inference-client/test/test_activation_topk_by_token_post200_response_results_inner.py deleted file mode 100644 index e45db9fb2..000000000 --- a/packages/python/neuronpedia-inference-client/test/test_activation_topk_by_token_post200_response_results_inner.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - Neuronpedia - Inference Server - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 1.1.0 - Contact: johnny@neuronpedia.org - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from neuronpedia_inference_client.models.activation_topk_by_token_post200_response_results_inner import ActivationTopkByTokenPost200ResponseResultsInner - -class TestActivationTopkByTokenPost200ResponseResultsInner(unittest.TestCase): - """ActivationTopkByTokenPost200ResponseResultsInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ActivationTopkByTokenPost200ResponseResultsInner: - """Test ActivationTopkByTokenPost200ResponseResultsInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ActivationTopkByTokenPost200ResponseResultsInner` - """ - model = ActivationTopkByTokenPost200ResponseResultsInner() - if include_optional: - return ActivationTopkByTokenPost200ResponseResultsInner( - token_position = 56, - token = '', - top_features = [ - neuronpedia_inference_client.models._activation_topk_by_token_post_200_response_results_inner_top_features_inner._activation_topk_by_token_post_200_response_results_inner_top_features_inner( - feature_index = 56, - activation_value = 1.337, ) - ] - ) - else: - return ActivationTopkByTokenPost200ResponseResultsInner( - token_position = 56, - token = '', - top_features = [ - neuronpedia_inference_client.models._activation_topk_by_token_post_200_response_results_inner_top_features_inner._activation_topk_by_token_post_200_response_results_inner_top_features_inner( - feature_index = 56, - activation_value = 1.337, ) - ], - ) - """ - - def testActivationTopkByTokenPost200ResponseResultsInner(self): - """Test ActivationTopkByTokenPost200ResponseResultsInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/packages/python/neuronpedia-inference-client/test/test_activation_topk_by_token_post200_response_results_inner_top_features_inner.py b/packages/python/neuronpedia-inference-client/test/test_activation_topk_by_token_post200_response_results_inner_top_features_inner.py deleted file mode 100644 index fcd569aa1..000000000 --- a/packages/python/neuronpedia-inference-client/test/test_activation_topk_by_token_post200_response_results_inner_top_features_inner.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - Neuronpedia - Inference Server - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 1.1.0 - Contact: johnny@neuronpedia.org - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from neuronpedia_inference_client.models.activation_topk_by_token_post200_response_results_inner_top_features_inner import ActivationTopkByTokenPost200ResponseResultsInnerTopFeaturesInner - -class TestActivationTopkByTokenPost200ResponseResultsInnerTopFeaturesInner(unittest.TestCase): - """ActivationTopkByTokenPost200ResponseResultsInnerTopFeaturesInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ActivationTopkByTokenPost200ResponseResultsInnerTopFeaturesInner: - """Test ActivationTopkByTokenPost200ResponseResultsInnerTopFeaturesInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ActivationTopkByTokenPost200ResponseResultsInnerTopFeaturesInner` - """ - model = ActivationTopkByTokenPost200ResponseResultsInnerTopFeaturesInner() - if include_optional: - return ActivationTopkByTokenPost200ResponseResultsInnerTopFeaturesInner( - feature_index = 56, - activation_value = 1.337 - ) - else: - return ActivationTopkByTokenPost200ResponseResultsInnerTopFeaturesInner( - feature_index = 56, - activation_value = 1.337, - ) - """ - - def testActivationTopkByTokenPost200ResponseResultsInnerTopFeaturesInner(self): - """Test ActivationTopkByTokenPost200ResponseResultsInnerTopFeaturesInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/packages/python/neuronpedia-inference-client/test/test_activation_topk_by_token_post_request.py b/packages/python/neuronpedia-inference-client/test/test_activation_topk_by_token_post_request.py deleted file mode 100644 index 4a822d259..000000000 --- a/packages/python/neuronpedia-inference-client/test/test_activation_topk_by_token_post_request.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Neuronpedia - Inference Server - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 1.1.0 - Contact: johnny@neuronpedia.org - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from neuronpedia_inference_client.models.activation_topk_by_token_post_request import ActivationTopkByTokenPostRequest - -class TestActivationTopkByTokenPostRequest(unittest.TestCase): - """ActivationTopkByTokenPostRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ActivationTopkByTokenPostRequest: - """Test ActivationTopkByTokenPostRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ActivationTopkByTokenPostRequest` - """ - model = ActivationTopkByTokenPostRequest() - if include_optional: - return ActivationTopkByTokenPostRequest( - prompt = '', - model = '', - source = '', - top_k = 56, - ignore_bos = True - ) - else: - return ActivationTopkByTokenPostRequest( - prompt = '', - model = '', - source = '', - ignore_bos = True, - ) - """ - - def testActivationTopkByTokenPostRequest(self): - """Test ActivationTopkByTokenPostRequest""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/packages/python/neuronpedia-inference-client/test/test_default_api.py b/packages/python/neuronpedia-inference-client/test/test_default_api.py deleted file mode 100644 index cc3ea3113..000000000 --- a/packages/python/neuronpedia-inference-client/test/test_default_api.py +++ /dev/null @@ -1,88 +0,0 @@ -# coding: utf-8 - -""" - Neuronpedia - Inference Server - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 1.1.0 - Contact: johnny@neuronpedia.org - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from neuronpedia_inference_client.api.default_api import DefaultApi - - -class TestDefaultApi(unittest.TestCase): - """DefaultApi unit test stubs""" - - def setUp(self) -> None: - self.api = DefaultApi() - - def tearDown(self) -> None: - pass - - def test_activation_all_post(self) -> None: - """Test case for activation_all_post - - For a given prompt, get the top activating features for a set of SAEs (eg gemmascope-res-65k), or specific SAEs in the set of SAEs (eg 0-gemmascope-res-65k, 5-gemmascope-res-65k). Also has other customization options. - """ - pass - - def test_activation_single_post(self) -> None: - """Test case for activation_single_post - - Given a text prompt, returns the activation values for a single SAE latent or custom vector+hook. - """ - pass - - def test_activation_topk_by_token_post(self) -> None: - """Test case for activation_topk_by_token_post - - For a given prompt, get the top activating features at each token position for a single SAE. - """ - pass - - def test_steer_completion_chat_post(self) -> None: - """Test case for steer_completion_chat_post - - For a given prompt, complete it by steering with the given feature or vector - """ - pass - - def test_steer_completion_post(self) -> None: - """Test case for steer_completion_post - - For a given prompt, complete it by steering with the given feature or vector - """ - pass - - def test_tokenize_post(self) -> None: - """Test case for tokenize_post - - Tokenize input text for a given model - """ - pass - - def test_util_sae_topk_by_decoder_cossim_post(self) -> None: - """Test case for util_sae_topk_by_decoder_cossim_post - - Given a specific vector or SAE feature, return the top features by cosine similarity in the same SAE - """ - pass - - def test_util_sae_vector_post(self) -> None: - """Test case for util_sae_vector_post - - Get the raw vector for an SAE feature - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/packages/python/neuronpedia-inference-client/test/test_np_feature.py b/packages/python/neuronpedia-inference-client/test/test_np_feature.py deleted file mode 100644 index 1b851a384..000000000 --- a/packages/python/neuronpedia-inference-client/test/test_np_feature.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - Neuronpedia - Inference Server - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 1.1.0 - Contact: johnny@neuronpedia.org - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from neuronpedia_inference_client.models.np_feature import NPFeature - -class TestNPFeature(unittest.TestCase): - """NPFeature unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> NPFeature: - """Test NPFeature - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `NPFeature` - """ - model = NPFeature() - if include_optional: - return NPFeature( - model = 'gpt2-small', - source = '0-res-jb', - index = 14057 - ) - else: - return NPFeature( - model = 'gpt2-small', - source = '0-res-jb', - index = 14057, - ) - """ - - def testNPFeature(self): - """Test NPFeature""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/packages/python/neuronpedia-inference-client/test/test_np_logprob.py b/packages/python/neuronpedia-inference-client/test/test_np_logprob.py deleted file mode 100644 index 640bc2ab6..000000000 --- a/packages/python/neuronpedia-inference-client/test/test_np_logprob.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - Neuronpedia - Inference Server - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 1.1.0 - Contact: johnny@neuronpedia.org - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from neuronpedia_inference_client.models.np_logprob import NPLogprob - -class TestNPLogprob(unittest.TestCase): - """NPLogprob unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> NPLogprob: - """Test NPLogprob - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `NPLogprob` - """ - model = NPLogprob() - if include_optional: - return NPLogprob( - token = '', - logprob = 1.337, - top_logprobs = [ - neuronpedia_inference_client.models.np_logprob_top.NPLogprobTop( - token = '', - logprob = 1.337, ) - ] - ) - else: - return NPLogprob( - token = '', - logprob = 1.337, - top_logprobs = [ - neuronpedia_inference_client.models.np_logprob_top.NPLogprobTop( - token = '', - logprob = 1.337, ) - ], - ) - """ - - def testNPLogprob(self): - """Test NPLogprob""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/packages/python/neuronpedia-inference-client/test/test_np_logprob_top.py b/packages/python/neuronpedia-inference-client/test/test_np_logprob_top.py deleted file mode 100644 index 03ff50906..000000000 --- a/packages/python/neuronpedia-inference-client/test/test_np_logprob_top.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - Neuronpedia - Inference Server - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 1.1.0 - Contact: johnny@neuronpedia.org - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from neuronpedia_inference_client.models.np_logprob_top import NPLogprobTop - -class TestNPLogprobTop(unittest.TestCase): - """NPLogprobTop unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> NPLogprobTop: - """Test NPLogprobTop - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `NPLogprobTop` - """ - model = NPLogprobTop() - if include_optional: - return NPLogprobTop( - token = '', - logprob = 1.337 - ) - else: - return NPLogprobTop( - token = '', - logprob = 1.337, - ) - """ - - def testNPLogprobTop(self): - """Test NPLogprobTop""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/packages/python/neuronpedia-inference-client/test/test_np_steer_chat_message.py b/packages/python/neuronpedia-inference-client/test/test_np_steer_chat_message.py deleted file mode 100644 index fec5c670a..000000000 --- a/packages/python/neuronpedia-inference-client/test/test_np_steer_chat_message.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - Neuronpedia - Inference Server - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 1.1.0 - Contact: johnny@neuronpedia.org - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from neuronpedia_inference_client.models.np_steer_chat_message import NPSteerChatMessage - -class TestNPSteerChatMessage(unittest.TestCase): - """NPSteerChatMessage unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> NPSteerChatMessage: - """Test NPSteerChatMessage - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `NPSteerChatMessage` - """ - model = NPSteerChatMessage() - if include_optional: - return NPSteerChatMessage( - content = '', - role = '' - ) - else: - return NPSteerChatMessage( - content = '', - role = '', - ) - """ - - def testNPSteerChatMessage(self): - """Test NPSteerChatMessage""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/packages/python/neuronpedia-inference-client/test/test_np_steer_chat_result.py b/packages/python/neuronpedia-inference-client/test/test_np_steer_chat_result.py deleted file mode 100644 index 45833fb77..000000000 --- a/packages/python/neuronpedia-inference-client/test/test_np_steer_chat_result.py +++ /dev/null @@ -1,74 +0,0 @@ -# coding: utf-8 - -""" - Neuronpedia - Inference Server - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 1.1.0 - Contact: johnny@neuronpedia.org - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from neuronpedia_inference_client.models.np_steer_chat_result import NPSteerChatResult - -class TestNPSteerChatResult(unittest.TestCase): - """NPSteerChatResult unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> NPSteerChatResult: - """Test NPSteerChatResult - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `NPSteerChatResult` - """ - model = NPSteerChatResult() - if include_optional: - return NPSteerChatResult( - chat_template = [ - neuronpedia_inference_client.models.np_steer_chat_message.NPSteerChatMessage( - content = '', - role = '', ) - ], - raw = '', - type = 'STEERED', - logprobs = [ - neuronpedia_inference_client.models.np_logprob.NPLogprob( - token = '', - logprob = 1.337, - top_logprobs = [ - neuronpedia_inference_client.models.np_logprob_top.NPLogprobTop( - token = '', - logprob = 1.337, ) - ], ) - ] - ) - else: - return NPSteerChatResult( - chat_template = [ - neuronpedia_inference_client.models.np_steer_chat_message.NPSteerChatMessage( - content = '', - role = '', ) - ], - raw = '', - ) - """ - - def testNPSteerChatResult(self): - """Test NPSteerChatResult""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/packages/python/neuronpedia-inference-client/test/test_np_steer_completion_response_inner.py b/packages/python/neuronpedia-inference-client/test/test_np_steer_completion_response_inner.py deleted file mode 100644 index 99ca5e166..000000000 --- a/packages/python/neuronpedia-inference-client/test/test_np_steer_completion_response_inner.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - Neuronpedia - Inference Server - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 1.1.0 - Contact: johnny@neuronpedia.org - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from neuronpedia_inference_client.models.np_steer_completion_response_inner import NPSteerCompletionResponseInner - -class TestNPSteerCompletionResponseInner(unittest.TestCase): - """NPSteerCompletionResponseInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> NPSteerCompletionResponseInner: - """Test NPSteerCompletionResponseInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `NPSteerCompletionResponseInner` - """ - model = NPSteerCompletionResponseInner() - if include_optional: - return NPSteerCompletionResponseInner( - type = 'STEERED', - output = '', - logprobs = [ - neuronpedia_inference_client.models.np_logprob.NPLogprob( - token = '', - logprob = 1.337, - top_logprobs = [ - neuronpedia_inference_client.models.np_logprob_top.NPLogprobTop( - token = '', - logprob = 1.337, ) - ], ) - ] - ) - else: - return NPSteerCompletionResponseInner( - type = 'STEERED', - output = '', - ) - """ - - def testNPSteerCompletionResponseInner(self): - """Test NPSteerCompletionResponseInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/packages/python/neuronpedia-inference-client/test/test_np_steer_feature.py b/packages/python/neuronpedia-inference-client/test/test_np_steer_feature.py deleted file mode 100644 index 96a7be29d..000000000 --- a/packages/python/neuronpedia-inference-client/test/test_np_steer_feature.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - Neuronpedia - Inference Server - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 1.1.0 - Contact: johnny@neuronpedia.org - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from neuronpedia_inference_client.models.np_steer_feature import NPSteerFeature - -class TestNPSteerFeature(unittest.TestCase): - """NPSteerFeature unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> NPSteerFeature: - """Test NPSteerFeature - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `NPSteerFeature` - """ - model = NPSteerFeature() - if include_optional: - return NPSteerFeature( - model = 'gpt2-small', - source = '0-res-jb', - index = 14057, - strength = 5, - steering_vector = [ - 1.337 - ] - ) - else: - return NPSteerFeature( - model = 'gpt2-small', - source = '0-res-jb', - index = 14057, - strength = 5, - ) - """ - - def testNPSteerFeature(self): - """Test NPSteerFeature""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/packages/python/neuronpedia-inference-client/test/test_np_steer_method.py b/packages/python/neuronpedia-inference-client/test/test_np_steer_method.py deleted file mode 100644 index 2821a8304..000000000 --- a/packages/python/neuronpedia-inference-client/test/test_np_steer_method.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding: utf-8 - -""" - Neuronpedia - Inference Server - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 1.1.0 - Contact: johnny@neuronpedia.org - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from neuronpedia_inference_client.models.np_steer_method import NPSteerMethod - -class TestNPSteerMethod(unittest.TestCase): - """NPSteerMethod unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testNPSteerMethod(self): - """Test NPSteerMethod""" - # inst = NPSteerMethod() - -if __name__ == '__main__': - unittest.main() diff --git a/packages/python/neuronpedia-inference-client/test/test_np_steer_type.py b/packages/python/neuronpedia-inference-client/test/test_np_steer_type.py deleted file mode 100644 index e6e336147..000000000 --- a/packages/python/neuronpedia-inference-client/test/test_np_steer_type.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding: utf-8 - -""" - Neuronpedia - Inference Server - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 1.1.0 - Contact: johnny@neuronpedia.org - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from neuronpedia_inference_client.models.np_steer_type import NPSteerType - -class TestNPSteerType(unittest.TestCase): - """NPSteerType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testNPSteerType(self): - """Test NPSteerType""" - # inst = NPSteerType() - -if __name__ == '__main__': - unittest.main() diff --git a/packages/python/neuronpedia-inference-client/test/test_np_steer_vector.py b/packages/python/neuronpedia-inference-client/test/test_np_steer_vector.py deleted file mode 100644 index a461968a3..000000000 --- a/packages/python/neuronpedia-inference-client/test/test_np_steer_vector.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Neuronpedia - Inference Server - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 1.1.0 - Contact: johnny@neuronpedia.org - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from neuronpedia_inference_client.models.np_steer_vector import NPSteerVector - -class TestNPSteerVector(unittest.TestCase): - """NPSteerVector unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> NPSteerVector: - """Test NPSteerVector - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `NPSteerVector` - """ - model = NPSteerVector() - if include_optional: - return NPSteerVector( - steering_vector = [ - 1.337 - ], - strength = 1.337, - hook = 'blocks.0.hook_resid_pre' - ) - else: - return NPSteerVector( - steering_vector = [ - 1.337 - ], - strength = 1.337, - hook = 'blocks.0.hook_resid_pre', - ) - """ - - def testNPSteerVector(self): - """Test NPSteerVector""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/packages/python/neuronpedia-inference-client/test/test_steer_completion_chat_post200_response.py b/packages/python/neuronpedia-inference-client/test/test_steer_completion_chat_post200_response.py deleted file mode 100644 index 4c6ea6683..000000000 --- a/packages/python/neuronpedia-inference-client/test/test_steer_completion_chat_post200_response.py +++ /dev/null @@ -1,127 +0,0 @@ -# coding: utf-8 - -""" - Neuronpedia - Inference Server - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 1.1.0 - Contact: johnny@neuronpedia.org - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from neuronpedia_inference_client.models.steer_completion_chat_post200_response import SteerCompletionChatPost200Response - -class TestSteerCompletionChatPost200Response(unittest.TestCase): - """SteerCompletionChatPost200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SteerCompletionChatPost200Response: - """Test SteerCompletionChatPost200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SteerCompletionChatPost200Response` - """ - model = SteerCompletionChatPost200Response() - if include_optional: - return SteerCompletionChatPost200Response( - outputs = [ - neuronpedia_inference_client.models.np_steer_chat_result.NPSteerChatResult( - chat_template = [ - neuronpedia_inference_client.models.np_steer_chat_message.NPSteerChatMessage( - content = '', - role = '', ) - ], - raw = '', - type = 'STEERED', - logprobs = [ - neuronpedia_inference_client.models.np_logprob.NPLogprob( - token = '', - logprob = 1.337, - top_logprobs = [ - neuronpedia_inference_client.models.np_logprob_top.NPLogprobTop( - token = '', - logprob = 1.337, ) - ], ) - ], ) - ], - input = neuronpedia_inference_client.models.np_steer_chat_result.NPSteerChatResult( - chat_template = [ - neuronpedia_inference_client.models.np_steer_chat_message.NPSteerChatMessage( - content = '', - role = '', ) - ], - raw = '', - type = 'STEERED', - logprobs = [ - neuronpedia_inference_client.models.np_logprob.NPLogprob( - token = '', - logprob = 1.337, - top_logprobs = [ - neuronpedia_inference_client.models.np_logprob_top.NPLogprobTop( - token = '', - logprob = 1.337, ) - ], ) - ], ) - ) - else: - return SteerCompletionChatPost200Response( - outputs = [ - neuronpedia_inference_client.models.np_steer_chat_result.NPSteerChatResult( - chat_template = [ - neuronpedia_inference_client.models.np_steer_chat_message.NPSteerChatMessage( - content = '', - role = '', ) - ], - raw = '', - type = 'STEERED', - logprobs = [ - neuronpedia_inference_client.models.np_logprob.NPLogprob( - token = '', - logprob = 1.337, - top_logprobs = [ - neuronpedia_inference_client.models.np_logprob_top.NPLogprobTop( - token = '', - logprob = 1.337, ) - ], ) - ], ) - ], - input = neuronpedia_inference_client.models.np_steer_chat_result.NPSteerChatResult( - chat_template = [ - neuronpedia_inference_client.models.np_steer_chat_message.NPSteerChatMessage( - content = '', - role = '', ) - ], - raw = '', - type = 'STEERED', - logprobs = [ - neuronpedia_inference_client.models.np_logprob.NPLogprob( - token = '', - logprob = 1.337, - top_logprobs = [ - neuronpedia_inference_client.models.np_logprob_top.NPLogprobTop( - token = '', - logprob = 1.337, ) - ], ) - ], ), - ) - """ - - def testSteerCompletionChatPost200Response(self): - """Test SteerCompletionChatPost200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/packages/python/neuronpedia-inference-client/test/test_steer_completion_chat_post_request.py b/packages/python/neuronpedia-inference-client/test/test_steer_completion_chat_post_request.py deleted file mode 100644 index 317d7c5f5..000000000 --- a/packages/python/neuronpedia-inference-client/test/test_steer_completion_chat_post_request.py +++ /dev/null @@ -1,98 +0,0 @@ -# coding: utf-8 - -""" - Neuronpedia - Inference Server - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 1.1.0 - Contact: johnny@neuronpedia.org - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from neuronpedia_inference_client.models.steer_completion_chat_post_request import SteerCompletionChatPostRequest - -class TestSteerCompletionChatPostRequest(unittest.TestCase): - """SteerCompletionChatPostRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SteerCompletionChatPostRequest: - """Test SteerCompletionChatPostRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SteerCompletionChatPostRequest` - """ - model = SteerCompletionChatPostRequest() - if include_optional: - return SteerCompletionChatPostRequest( - prompt = [ - neuronpedia_inference_client.models.np_steer_chat_message.NPSteerChatMessage( - content = '', - role = '', ) - ], - model = '', - steer_method = 'SIMPLE_ADDITIVE', - normalize_steering = True, - types = [ - 'STEERED' - ], - features = [ - null - ], - vectors = [ - neuronpedia_inference_client.models.np_steer_vector.NPSteerVector( - steering_vector = [ - 1.337 - ], - strength = 1.337, - hook = 'blocks.0.hook_resid_pre', ) - ], - n_completion_tokens = 1, - temperature = 0, - strength_multiplier = 1.337, - freq_penalty = 1.337, - seed = 1.337, - stream = True, - n_logprobs = 0, - steer_special_tokens = True - ) - else: - return SteerCompletionChatPostRequest( - prompt = [ - neuronpedia_inference_client.models.np_steer_chat_message.NPSteerChatMessage( - content = '', - role = '', ) - ], - model = '', - steer_method = 'SIMPLE_ADDITIVE', - normalize_steering = True, - types = [ - 'STEERED' - ], - n_completion_tokens = 1, - temperature = 0, - strength_multiplier = 1.337, - freq_penalty = 1.337, - seed = 1.337, - steer_special_tokens = True, - ) - """ - - def testSteerCompletionChatPostRequest(self): - """Test SteerCompletionChatPostRequest""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/packages/python/neuronpedia-inference-client/test/test_steer_completion_post200_response.py b/packages/python/neuronpedia-inference-client/test/test_steer_completion_post200_response.py deleted file mode 100644 index f787e35eb..000000000 --- a/packages/python/neuronpedia-inference-client/test/test_steer_completion_post200_response.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding: utf-8 - -""" - Neuronpedia - Inference Server - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 1.1.0 - Contact: johnny@neuronpedia.org - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from neuronpedia_inference_client.models.steer_completion_post200_response import SteerCompletionPost200Response - -class TestSteerCompletionPost200Response(unittest.TestCase): - """SteerCompletionPost200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SteerCompletionPost200Response: - """Test SteerCompletionPost200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SteerCompletionPost200Response` - """ - model = SteerCompletionPost200Response() - if include_optional: - return SteerCompletionPost200Response( - outputs = [ - neuronpedia_inference_client.models.np_steer_completion_response_inner.NPSteerCompletionResponseInner( - type = 'STEERED', - output = '', - logprobs = [ - neuronpedia_inference_client.models.np_logprob.NPLogprob( - token = '', - logprob = 1.337, - top_logprobs = [ - neuronpedia_inference_client.models.np_logprob_top.NPLogprobTop( - token = '', - logprob = 1.337, ) - ], ) - ], ) - ] - ) - else: - return SteerCompletionPost200Response( - outputs = [ - neuronpedia_inference_client.models.np_steer_completion_response_inner.NPSteerCompletionResponseInner( - type = 'STEERED', - output = '', - logprobs = [ - neuronpedia_inference_client.models.np_logprob.NPLogprob( - token = '', - logprob = 1.337, - top_logprobs = [ - neuronpedia_inference_client.models.np_logprob_top.NPLogprobTop( - token = '', - logprob = 1.337, ) - ], ) - ], ) - ], - ) - """ - - def testSteerCompletionPost200Response(self): - """Test SteerCompletionPost200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/packages/python/neuronpedia-inference-client/test/test_steer_completion_request.py b/packages/python/neuronpedia-inference-client/test/test_steer_completion_request.py deleted file mode 100644 index b2ecb3f6b..000000000 --- a/packages/python/neuronpedia-inference-client/test/test_steer_completion_request.py +++ /dev/null @@ -1,88 +0,0 @@ -# coding: utf-8 - -""" - Neuronpedia - Inference Server - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 1.1.0 - Contact: johnny@neuronpedia.org - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from neuronpedia_inference_client.models.steer_completion_request import SteerCompletionRequest - -class TestSteerCompletionRequest(unittest.TestCase): - """SteerCompletionRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SteerCompletionRequest: - """Test SteerCompletionRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SteerCompletionRequest` - """ - model = SteerCompletionRequest() - if include_optional: - return SteerCompletionRequest( - prompt = '', - model = '', - steer_method = 'SIMPLE_ADDITIVE', - normalize_steering = True, - types = [ - 'STEERED' - ], - features = [ - null - ], - vectors = [ - neuronpedia_inference_client.models.np_steer_vector.NPSteerVector( - steering_vector = [ - 1.337 - ], - strength = 1.337, - hook = 'blocks.0.hook_resid_pre', ) - ], - n_completion_tokens = 1, - temperature = 0, - strength_multiplier = 1.337, - freq_penalty = 1.337, - seed = 1.337, - stream = True, - n_logprobs = 0 - ) - else: - return SteerCompletionRequest( - prompt = '', - model = '', - steer_method = 'SIMPLE_ADDITIVE', - normalize_steering = True, - types = [ - 'STEERED' - ], - n_completion_tokens = 1, - temperature = 0, - strength_multiplier = 1.337, - freq_penalty = 1.337, - seed = 1.337, - ) - """ - - def testSteerCompletionRequest(self): - """Test SteerCompletionRequest""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/packages/python/neuronpedia-inference-client/test/test_tokenize_post200_response.py b/packages/python/neuronpedia-inference-client/test/test_tokenize_post200_response.py deleted file mode 100644 index 4413c81d8..000000000 --- a/packages/python/neuronpedia-inference-client/test/test_tokenize_post200_response.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - Neuronpedia - Inference Server - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 1.1.0 - Contact: johnny@neuronpedia.org - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from neuronpedia_inference_client.models.tokenize_post200_response import TokenizePost200Response - -class TestTokenizePost200Response(unittest.TestCase): - """TokenizePost200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TokenizePost200Response: - """Test TokenizePost200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TokenizePost200Response` - """ - model = TokenizePost200Response() - if include_optional: - return TokenizePost200Response( - tokens = [ - 56 - ], - token_strings = [ - '' - ], - prepend_bos = True - ) - else: - return TokenizePost200Response( - tokens = [ - 56 - ], - token_strings = [ - '' - ], - prepend_bos = True, - ) - """ - - def testTokenizePost200Response(self): - """Test TokenizePost200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/packages/python/neuronpedia-inference-client/test/test_tokenize_post_request.py b/packages/python/neuronpedia-inference-client/test/test_tokenize_post_request.py deleted file mode 100644 index 5d7593d6b..000000000 --- a/packages/python/neuronpedia-inference-client/test/test_tokenize_post_request.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - Neuronpedia - Inference Server - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 1.1.0 - Contact: johnny@neuronpedia.org - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from neuronpedia_inference_client.models.tokenize_post_request import TokenizePostRequest - -class TestTokenizePostRequest(unittest.TestCase): - """TokenizePostRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TokenizePostRequest: - """Test TokenizePostRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TokenizePostRequest` - """ - model = TokenizePostRequest() - if include_optional: - return TokenizePostRequest( - model = 'gpt2-small', - text = 'tokenize me! :D', - prepend_bos = True - ) - else: - return TokenizePostRequest( - model = 'gpt2-small', - text = 'tokenize me! :D', - ) - """ - - def testTokenizePostRequest(self): - """Test TokenizePostRequest""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/packages/python/neuronpedia-inference-client/test/test_util_sae_topk_by_decoder_cossim_post200_response.py b/packages/python/neuronpedia-inference-client/test/test_util_sae_topk_by_decoder_cossim_post200_response.py deleted file mode 100644 index b943bdcf0..000000000 --- a/packages/python/neuronpedia-inference-client/test/test_util_sae_topk_by_decoder_cossim_post200_response.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - Neuronpedia - Inference Server - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 1.1.0 - Contact: johnny@neuronpedia.org - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from neuronpedia_inference_client.models.util_sae_topk_by_decoder_cossim_post200_response import UtilSaeTopkByDecoderCossimPost200Response - -class TestUtilSaeTopkByDecoderCossimPost200Response(unittest.TestCase): - """UtilSaeTopkByDecoderCossimPost200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UtilSaeTopkByDecoderCossimPost200Response: - """Test UtilSaeTopkByDecoderCossimPost200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `UtilSaeTopkByDecoderCossimPost200Response` - """ - model = UtilSaeTopkByDecoderCossimPost200Response() - if include_optional: - return UtilSaeTopkByDecoderCossimPost200Response( - feature = neuronpedia_inference_client.models.np_feature.NPFeature( - model = 'gpt2-small', - source = '0-res-jb', - index = 14057, ), - topk_decoder_cossim_features = [ - neuronpedia_inference_client.models._util_sae_topk_by_decoder_cossim_post_200_response_topk_decoder_cossim_features_inner._util_sae_topk_by_decoder_cossim_post_200_response_topk_decoder_cossim_features_inner( - feature = neuronpedia_inference_client.models.np_feature.NPFeature( - model = 'gpt2-small', - source = '0-res-jb', - index = 14057, ), - cosine_similarity = 1.337, ) - ] - ) - else: - return UtilSaeTopkByDecoderCossimPost200Response( - ) - """ - - def testUtilSaeTopkByDecoderCossimPost200Response(self): - """Test UtilSaeTopkByDecoderCossimPost200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/packages/python/neuronpedia-inference-client/test/test_util_sae_topk_by_decoder_cossim_post200_response_topk_decoder_cossim_features_inner.py b/packages/python/neuronpedia-inference-client/test/test_util_sae_topk_by_decoder_cossim_post200_response_topk_decoder_cossim_features_inner.py deleted file mode 100644 index d656e8b58..000000000 --- a/packages/python/neuronpedia-inference-client/test/test_util_sae_topk_by_decoder_cossim_post200_response_topk_decoder_cossim_features_inner.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - Neuronpedia - Inference Server - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 1.1.0 - Contact: johnny@neuronpedia.org - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from neuronpedia_inference_client.models.util_sae_topk_by_decoder_cossim_post200_response_topk_decoder_cossim_features_inner import UtilSaeTopkByDecoderCossimPost200ResponseTopkDecoderCossimFeaturesInner - -class TestUtilSaeTopkByDecoderCossimPost200ResponseTopkDecoderCossimFeaturesInner(unittest.TestCase): - """UtilSaeTopkByDecoderCossimPost200ResponseTopkDecoderCossimFeaturesInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UtilSaeTopkByDecoderCossimPost200ResponseTopkDecoderCossimFeaturesInner: - """Test UtilSaeTopkByDecoderCossimPost200ResponseTopkDecoderCossimFeaturesInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `UtilSaeTopkByDecoderCossimPost200ResponseTopkDecoderCossimFeaturesInner` - """ - model = UtilSaeTopkByDecoderCossimPost200ResponseTopkDecoderCossimFeaturesInner() - if include_optional: - return UtilSaeTopkByDecoderCossimPost200ResponseTopkDecoderCossimFeaturesInner( - feature = neuronpedia_inference_client.models.np_feature.NPFeature( - model = 'gpt2-small', - source = '0-res-jb', - index = 14057, ), - cosine_similarity = 1.337 - ) - else: - return UtilSaeTopkByDecoderCossimPost200ResponseTopkDecoderCossimFeaturesInner( - ) - """ - - def testUtilSaeTopkByDecoderCossimPost200ResponseTopkDecoderCossimFeaturesInner(self): - """Test UtilSaeTopkByDecoderCossimPost200ResponseTopkDecoderCossimFeaturesInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/packages/python/neuronpedia-inference-client/test/test_util_sae_topk_by_decoder_cossim_post_request.py b/packages/python/neuronpedia-inference-client/test/test_util_sae_topk_by_decoder_cossim_post_request.py deleted file mode 100644 index 3a7c1551e..000000000 --- a/packages/python/neuronpedia-inference-client/test/test_util_sae_topk_by_decoder_cossim_post_request.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - Neuronpedia - Inference Server - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 1.1.0 - Contact: johnny@neuronpedia.org - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from neuronpedia_inference_client.models.util_sae_topk_by_decoder_cossim_post_request import UtilSaeTopkByDecoderCossimPostRequest - -class TestUtilSaeTopkByDecoderCossimPostRequest(unittest.TestCase): - """UtilSaeTopkByDecoderCossimPostRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UtilSaeTopkByDecoderCossimPostRequest: - """Test UtilSaeTopkByDecoderCossimPostRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `UtilSaeTopkByDecoderCossimPostRequest` - """ - model = UtilSaeTopkByDecoderCossimPostRequest() - if include_optional: - return UtilSaeTopkByDecoderCossimPostRequest( - feature = neuronpedia_inference_client.models.np_feature.NPFeature( - model = 'gpt2-small', - source = '0-res-jb', - index = 14057, ), - vector = [ - 1.337 - ], - model = '', - source = '', - num_results = 56 - ) - else: - return UtilSaeTopkByDecoderCossimPostRequest( - model = '', - source = '', - num_results = 56, - ) - """ - - def testUtilSaeTopkByDecoderCossimPostRequest(self): - """Test UtilSaeTopkByDecoderCossimPostRequest""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/packages/python/neuronpedia-inference-client/test/test_util_sae_vector_post200_response.py b/packages/python/neuronpedia-inference-client/test/test_util_sae_vector_post200_response.py deleted file mode 100644 index 47282d1f3..000000000 --- a/packages/python/neuronpedia-inference-client/test/test_util_sae_vector_post200_response.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - Neuronpedia - Inference Server - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 1.1.0 - Contact: johnny@neuronpedia.org - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from neuronpedia_inference_client.models.util_sae_vector_post200_response import UtilSaeVectorPost200Response - -class TestUtilSaeVectorPost200Response(unittest.TestCase): - """UtilSaeVectorPost200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UtilSaeVectorPost200Response: - """Test UtilSaeVectorPost200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `UtilSaeVectorPost200Response` - """ - model = UtilSaeVectorPost200Response() - if include_optional: - return UtilSaeVectorPost200Response( - vector = [ - 1.337 - ] - ) - else: - return UtilSaeVectorPost200Response( - vector = [ - 1.337 - ], - ) - """ - - def testUtilSaeVectorPost200Response(self): - """Test UtilSaeVectorPost200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/packages/python/neuronpedia-inference-client/test/test_util_sae_vector_post_request.py b/packages/python/neuronpedia-inference-client/test/test_util_sae_vector_post_request.py deleted file mode 100644 index 62ca4d105..000000000 --- a/packages/python/neuronpedia-inference-client/test/test_util_sae_vector_post_request.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - Neuronpedia - Inference Server - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 1.1.0 - Contact: johnny@neuronpedia.org - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from neuronpedia_inference_client.models.util_sae_vector_post_request import UtilSaeVectorPostRequest - -class TestUtilSaeVectorPostRequest(unittest.TestCase): - """UtilSaeVectorPostRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UtilSaeVectorPostRequest: - """Test UtilSaeVectorPostRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `UtilSaeVectorPostRequest` - """ - model = UtilSaeVectorPostRequest() - if include_optional: - return UtilSaeVectorPostRequest( - model = 'gpt2-small', - source = '0-res-jb', - index = 14057 - ) - else: - return UtilSaeVectorPostRequest( - model = 'gpt2-small', - source = '0-res-jb', - index = 14057, - ) - """ - - def testUtilSaeVectorPostRequest(self): - """Test UtilSaeVectorPostRequest""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/packages/python/neuronpedia-inference-client/tox.ini b/packages/python/neuronpedia-inference-client/tox.ini deleted file mode 100644 index db4e96f93..000000000 --- a/packages/python/neuronpedia-inference-client/tox.ini +++ /dev/null @@ -1,9 +0,0 @@ -[tox] -envlist = py3 - -[testenv] -deps=-r{toxinidir}/requirements.txt - -r{toxinidir}/test-requirements.txt - -commands= - pytest --cov=neuronpedia_inference_client diff --git a/packages/typescript/neuronpedia-autointerp-client/.openapi-generator-ignore b/packages/typescript/neuronpedia-autointerp-client/.openapi-generator-ignore deleted file mode 100644 index 7484ee590..000000000 --- a/packages/typescript/neuronpedia-autointerp-client/.openapi-generator-ignore +++ /dev/null @@ -1,23 +0,0 @@ -# OpenAPI Generator Ignore -# Generated by openapi-generator https://github.com/openapitools/openapi-generator - -# Use this file to prevent files from being overwritten by the generator. -# The patterns follow closely to .gitignore or .dockerignore. - -# As an example, the C# client generator defines ApiClient.cs. -# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: -#ApiClient.cs - -# You can match any string of characters against a directory, file or extension with a single asterisk (*): -#foo/*/qux -# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux - -# You can recursively match patterns against a directory, file or extension with a double asterisk (**): -#foo/**/qux -# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux - -# You can also negate patterns with an exclamation (!). -# For example, you can ignore all files in a docs folder with the file extension .md: -#docs/*.md -# Then explicitly reverse the ignore rule for a single file: -#!docs/README.md diff --git a/packages/typescript/neuronpedia-autointerp-client/.openapi-generator/FILES b/packages/typescript/neuronpedia-autointerp-client/.openapi-generator/FILES index ce1ed9dcd..da0c48b1d 100644 --- a/packages/typescript/neuronpedia-autointerp-client/.openapi-generator/FILES +++ b/packages/typescript/neuronpedia-autointerp-client/.openapi-generator/FILES @@ -1,6 +1,5 @@ .gitignore .npmignore -.openapi-generator-ignore README.md package.json src/apis/DefaultApi.ts diff --git a/packages/typescript/neuronpedia-autointerp-client/.openapi-generator/VERSION b/packages/typescript/neuronpedia-autointerp-client/.openapi-generator/VERSION index b23eb2752..5f84a81db 100644 --- a/packages/typescript/neuronpedia-autointerp-client/.openapi-generator/VERSION +++ b/packages/typescript/neuronpedia-autointerp-client/.openapi-generator/VERSION @@ -1 +1 @@ -7.11.0 +7.12.0 diff --git a/packages/typescript/neuronpedia-inference-client/.openapi-generator-ignore b/packages/typescript/neuronpedia-inference-client/.openapi-generator-ignore deleted file mode 100644 index 7484ee590..000000000 --- a/packages/typescript/neuronpedia-inference-client/.openapi-generator-ignore +++ /dev/null @@ -1,23 +0,0 @@ -# OpenAPI Generator Ignore -# Generated by openapi-generator https://github.com/openapitools/openapi-generator - -# Use this file to prevent files from being overwritten by the generator. -# The patterns follow closely to .gitignore or .dockerignore. - -# As an example, the C# client generator defines ApiClient.cs. -# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: -#ApiClient.cs - -# You can match any string of characters against a directory, file or extension with a single asterisk (*): -#foo/*/qux -# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux - -# You can recursively match patterns against a directory, file or extension with a double asterisk (**): -#foo/**/qux -# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux - -# You can also negate patterns with an exclamation (!). -# For example, you can ignore all files in a docs folder with the file extension .md: -#docs/*.md -# Then explicitly reverse the ignore rule for a single file: -#!docs/README.md diff --git a/packages/typescript/neuronpedia-inference-client/.openapi-generator/FILES b/packages/typescript/neuronpedia-inference-client/.openapi-generator/FILES index acf921972..1b9b0ba44 100644 --- a/packages/typescript/neuronpedia-inference-client/.openapi-generator/FILES +++ b/packages/typescript/neuronpedia-inference-client/.openapi-generator/FILES @@ -1,6 +1,5 @@ .gitignore .npmignore -.openapi-generator-ignore README.md package.json src/apis/DefaultApi.ts diff --git a/schemas/.openapi-generator-ignore b/schemas/.openapi-generator-ignore new file mode 100644 index 000000000..7c23aaf04 --- /dev/null +++ b/schemas/.openapi-generator-ignore @@ -0,0 +1,26 @@ +# OpenAPI Generator Ignore File +# This file works for both inference and autointerp clients (Python + TypeScript) +# Patterns use ** for recursive matching across any directory structure + +# CI/CD files that we don't want in client packages +**/.gitlab-ci.yml +**/.travis.yml +**/git_push.sh + +# GitHub workflows directories (if any get generated) +**/.github/ + +# Useless empty test stubs (no actual test logic) +**/test/ + +# Testing configuration files (no useful tests to run) +**/tox.ini +**/test-requirements.txt + +# Redundant packaging files (keep pyproject.toml for Poetry consistency) +# Note: Keeping setup.py for installation compatibility with auto-generated README +**/requirements.txt +**/setup.cfg + +# Note: .openapi-generator/ directory cannot be ignored - contains generator metadata +**/.openapi-generator-ignore diff --git a/schemas/Makefile b/schemas/Makefile index 28df6079d..8b38fa765 100644 --- a/schemas/Makefile +++ b/schemas/Makefile @@ -4,6 +4,7 @@ INFERENCE_SPEC = openapi/inference-server.yaml AUTOINTERP_SPEC = openapi/autointerp-server.yaml TS_OUTPUT_DIR = ../packages/typescript PY_OUTPUT_DIR = ../packages/python +IGNORE_FILE = .openapi-generator-ignore .PHONY: generate-inference-clients generate-autointerp-clients clean-inference-clients clean-autointerp-clients \ inference-setup-env autointerp-setup-env webapp-setup-env-inference webapp-setup-env-autointerp @@ -22,14 +23,16 @@ generate-inference-clients: check-version clean-inference-clients -g python \ -o $(PY_OUTPUT_DIR)/neuronpedia-inference-client \ --package-name neuronpedia_inference_client \ - --additional-properties=packageVersion=$(VERSION) + --additional-properties=packageVersion=$(VERSION) \ + --ignore-file-override=$(IGNORE_FILE) @echo "Generating TypeScript inference client..." openapi-generator generate \ -i $(INFERENCE_SPEC) \ -g typescript-fetch \ -o $(TS_OUTPUT_DIR)/neuronpedia-inference-client \ - -p npmName=neuronpedia-inference-client,npmVersion=$(VERSION) + -p npmName=neuronpedia-inference-client,npmVersion=$(VERSION) \ + --ignore-file-override=$(IGNORE_FILE) # Clean and generate autointerp clients generate-autointerp-clients: check-version clean-autointerp-clients @@ -39,14 +42,16 @@ generate-autointerp-clients: check-version clean-autointerp-clients -g python \ -o $(PY_OUTPUT_DIR)/neuronpedia-autointerp-client \ --package-name neuronpedia_autointerp_client \ - --additional-properties=packageVersion=$(VERSION) + --additional-properties=packageVersion=$(VERSION) \ + --ignore-file-override=$(IGNORE_FILE) @echo "Generating TypeScript autointerp client..." openapi-generator generate \ -i $(AUTOINTERP_SPEC) \ -g typescript-fetch \ -o $(TS_OUTPUT_DIR)/neuronpedia-autointerp-client \ - -p npmName=neuronpedia-autointerp-client,npmVersion=$(VERSION) + -p npmName=neuronpedia-autointerp-client,npmVersion=$(VERSION) \ + --ignore-file-override=$(IGNORE_FILE) # Setup inference server environment inference-setup-env: