GJDutils 0.6.2__tar.gz → 0.6.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {gjdutils-0.6.2 → gjdutils-0.6.3}/PKG-INFO +1 -1
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/gjdutils/__version__.py +1 -1
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/gjdutils/llms_claude.py +9 -2
- {gjdutils-0.6.2 → gjdutils-0.6.3}/.cursor/rules/README.md +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/.gitignore +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/CLAUDE.md +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/LICENSE +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/README.md +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/bluesky_poster.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/docs/README.md +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/docs/WORKFLOW.md +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/docs/instructions/AUDIT_ARCHITECTURE_MODE.md +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/docs/instructions/CAPTURE_SOUNDING_BOARD_CONVERSATION.md +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/docs/instructions/CODING_PRINCIPLES.md +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/docs/instructions/CRITIQUE_OF_PLANNING_DOC.md +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/docs/instructions/DEBRIEF_PROGRESS.md +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/docs/instructions/DEBRIEF_UPDATE_COMMIT.md +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/docs/instructions/DETECTIVE_SCIENTIST_MODE.md +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/docs/instructions/DOCUMENT_THIS_RESEARCH.md +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/docs/instructions/DO_EXECUTE_PLANNING_DOC.md +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/docs/instructions/EDIT_LIGHTLY_CONVERSATION_TRANSCRIPT.md +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/docs/instructions/FIX_HOUSEKEEPING_BUILD_TYPECHECK_LINT.md +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/docs/instructions/GATHER_DIVERSE_INPUTS_AND_CRITIQUES_ON_PLANNING_DOCS_FROM_OTHER_AI_MODELS.md +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/docs/instructions/GENERATE_MERMAID_DIAGRAM.md +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/docs/instructions/GIT_COMMIT_CHANGES.md +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/docs/instructions/GIT_CREATE_BRANCH.md +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/docs/instructions/GIT_WORKTREES.md +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/docs/instructions/HOUSEKEEPING_OLD_PLANNING_DOC.md +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/docs/instructions/PORT_DOCS_TO_GJDUTILS.md +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/docs/instructions/RENAME_OR_MOVE.md +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/docs/instructions/RESEARCH_POTENTIAL_LIBRARY_CHANGES_GOTCHAS.md +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/docs/instructions/RESEARCH_THIS_TOPIC.md +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/docs/instructions/RESOLVE_MERGE_CONFLICTS.md +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/docs/instructions/SOUNDING_BOARD_MODE.md +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/docs/instructions/SURGEON_MODE.md +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/docs/instructions/TASKS_SUBAGENTS.md +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/docs/instructions/THIRD_PARTY_LIBRARY_SELECTION.md +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/docs/instructions/UPDATE_CLAUDE_INSTRUCTIONS.md +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/docs/instructions/UPDATE_DOCUMENTATION_ORGANISATION_DOC.md +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/docs/instructions/UPDATE_HOUSEKEEPING_DOCUMENTATION.md +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/docs/instructions/WRITE_DEEP_DIVE_AS_DOC.md +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/docs/instructions/WRITE_EVERGREEN_DOC.md +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/docs/instructions/WRITE_PLANNING_DOC.md +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/docs/instructions/dev/PULL_PUSH_LOCAL_GJDUTILS_REPOS.md +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/docs/instructions/draft/NONINTERACTIVE.md +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/docs/reference/CODING_SHELL_SCRIPTS.md +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/docs/reference/DOCUMENTATION_ORGANISATION.md +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/docs/reference/SD_STRING_DISPLACEMENT_FIND_REPLACE.md +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/docs/reference/TESTING_PYTHON.md +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/package-lock.json +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/package.json +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/planning/250215_publishing_to_pypi.md +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/planning/250215_rename_gdutils_to_gjdutils.md +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/pyproject.toml +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/gjdutils/README.md +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/gjdutils/__init__.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/gjdutils/audios.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/gjdutils/caching.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/gjdutils/cli/__init__.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/gjdutils/cli/check_git_clean.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/gjdutils/cli/install_all_dev_dependencies.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/gjdutils/cli/main.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/gjdutils/cli/pypi/__init__.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/gjdutils/cli/pypi/app.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/gjdutils/cli/pypi/check.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/gjdutils/cli/pypi/deploy.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/gjdutils/cmd.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/gjdutils/colab.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/gjdutils/collection_utils.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/gjdutils/decorators.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/gjdutils/dicts.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/gjdutils/dsci.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/gjdutils/dt.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/gjdutils/embeddings_openai.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/gjdutils/env.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/gjdutils/errors.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/gjdutils/files.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/gjdutils/functions.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/gjdutils/google_translate.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/gjdutils/hashing.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/gjdutils/html.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/gjdutils/image_utils.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/gjdutils/indexing.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/gjdutils/iterfunc.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/gjdutils/jsons.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/gjdutils/lists.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/gjdutils/llm_utils.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/gjdutils/llms_openai.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/gjdutils/misc.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/gjdutils/num.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/gjdutils/obsolete/google_text_to_speech.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/gjdutils/obsolete/llms_obsolete.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/gjdutils/outloud_text_to_speech.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/gjdutils/ports.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/gjdutils/print_utils.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/gjdutils/prompt_templates.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/gjdutils/pypi_build.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/gjdutils/pytest_utils.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/gjdutils/rand.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/gjdutils/regex.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/gjdutils/runtime.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/gjdutils/scripts/__init__.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/gjdutils/scripts/export_envs.sh +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/gjdutils/scripts/install.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/gjdutils/sets.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/gjdutils/shell.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/gjdutils/stopwatch.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/gjdutils/strings.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/gjdutils/todo/convert_parquet.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/gjdutils/typ.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/gjdutils/voice_speechrecognition.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/gjdutils/web.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/gjdutils/webserver.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/ts/README.md +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/ts/cli/extract-llm-conversation.ts +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/ts/cli/sequential-datetime-prefix.ts +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/ts/critique/llm-critique-planning-docs.ts +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/ts/critique/parse-llm-output.ts +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/ts/scripts/count-lines.ts +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/ts/scripts/git-worktree-sync-all.ts +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/src/ts/scripts/git-worktree-sync.ts +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/tests/__init__.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/tests/test_cli.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/tests/test_embeddings_openai.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/tests/test_env_integration.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/tests/test_git_status.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/tests/test_indexing.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/tests/test_num.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/tests/test_print_utils.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/tests/test_rand.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/tests/test_strings.py +0 -0
- {gjdutils-0.6.2 → gjdutils-0.6.3}/tsconfig.json +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: GJDutils
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.3
|
|
4
4
|
Summary: A collection of useful utility functions (basics, data science/AI, web development, etc)
|
|
5
5
|
Project-URL: Homepage, https://github.com/gregdetre/gjdutils
|
|
6
6
|
Project-URL: Repository, https://github.com/gregdetre/gjdutils
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import json
|
|
2
2
|
from pathlib import Path
|
|
3
|
-
from anthropic import Anthropic
|
|
3
|
+
from anthropic import Anthropic
|
|
4
4
|
from typing import Optional
|
|
5
5
|
|
|
6
6
|
from gjdutils.image_utils import image_to_base64_basic
|
|
@@ -110,14 +110,21 @@ def call_claude_gpt(
|
|
|
110
110
|
# not supported
|
|
111
111
|
# response_format = {"type": "json_object"} if response_json else None
|
|
112
112
|
|
|
113
|
+
# Newer anthropic SDKs have dropped `temperature` from Messages.create()
|
|
114
|
+
# altogether, so passing the keyword at all - even as NOT_GIVEN - raises
|
|
115
|
+
# TypeError. Only include it when the caller actually asked for it.
|
|
116
|
+
optional_create_kwargs = {}
|
|
117
|
+
if temperature is not None:
|
|
118
|
+
optional_create_kwargs["temperature"] = temperature
|
|
119
|
+
|
|
113
120
|
# Make API call
|
|
114
121
|
response = client.messages.create(
|
|
115
122
|
model=model,
|
|
116
123
|
max_tokens=max_tokens,
|
|
117
124
|
messages=[{"role": "user", "content": contents}],
|
|
118
|
-
temperature=temperature if temperature is not None else NOT_GIVEN,
|
|
119
125
|
# seed=seed,
|
|
120
126
|
# response_format=response_format,
|
|
127
|
+
**optional_create_kwargs,
|
|
121
128
|
)
|
|
122
129
|
|
|
123
130
|
if response.stop_reason == "refusal":
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{gjdutils-0.6.2 → gjdutils-0.6.3}/docs/instructions/FIX_HOUSEKEEPING_BUILD_TYPECHECK_LINT.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{gjdutils-0.6.2 → gjdutils-0.6.3}/docs/instructions/RESEARCH_POTENTIAL_LIBRARY_CHANGES_GOTCHAS.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{gjdutils-0.6.2 → gjdutils-0.6.3}/docs/instructions/UPDATE_DOCUMENTATION_ORGANISATION_DOC.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|