Skip to content

skills(experimental): propagate ace-review correctness/security fixes from a-d-k#534#97

Merged
simonfaltum merged 1 commit into
mainfrom
jb/propagate-ace-review-fixes
May 27, 2026
Merged

skills(experimental): propagate ace-review correctness/security fixes from a-d-k#534#97
simonfaltum merged 1 commit into
mainfrom
jb/propagate-ace-review-fixes

Conversation

@jamesbroadhead
Copy link
Copy Markdown
Contributor

Summary

Mirrors the four fixes shipping in databricks-solutions/ai-dev-kit#534 to the same files under experimental/. Each of these files was carried over verbatim from a-d-k and still had the bugs that PR fixes.

Files

File Fix
experimental/databricks-apps-python/examples/fm-parallel-calls.py guard div-by-zero on speedup calc when total_time is below clock resolution; convert trailing module-level docstring (unreachable as docs) into a real comment block
experimental/databricks-apps-python/examples/llm_config.py stop echoing the raw token-endpoint response and HTTP body in error messages — they can contain credentials. Surface the shape (payload keys / status code) instead
experimental/databricks-python-sdk/examples/5-serving-and-vector-search.py replace syntactically-broken example query_vector=[0.1, 0.2, 0.3, ...] (literal Ellipsis tuple) with a real list[float] stand-in + a comment about matching the index's embedding dimension
experimental/databricks-apps-python/examples/fm-minimal-chat.py fix streamlit run 2-minimal-chat-app.py / command: ["streamlit", "run", "2-minimal-chat-app.py"] in the docstring — the actual filename is fm-minimal-chat.py. Skill-name reference left as databricks-model-serving to match DAS naming

The compute.py fix from #534 doesn't apply here — that file was removed in #90.

Test plan

  • python3 scripts/skills.py validate clean
  • CI green

This pull request and its description were written by Claude.

Mirrors the four fixes shipping in ai-dev-kit#534 to the same files
under experimental/. Each of these files was carried over verbatim from
a-d-k and still had the bugs the original PR fixes:

- fm-parallel-calls.py: guard div-by-zero on speedup calc when total_time
  is below clock resolution; convert trailing module-level docstring (was
  unreachable as docs) into a real comment block.
- llm_config.py: stop echoing the raw token-endpoint response and HTTP
  body in error messages — they can contain credentials. Surface the
  shape (payload keys / status code) instead.
- 5-serving-and-vector-search.py: replace the syntactically-broken
  example `query_vector=[0.1, 0.2, 0.3, ...]` (literal Ellipsis tuple)
  with a real list[float] stand-in plus a comment about matching the
  index's embedding dimension.
- fm-minimal-chat.py: fix `streamlit run 2-minimal-chat-app.py` /
  `command: ["streamlit", "run", "2-minimal-chat-app.py"]` in the
  docstring — the actual filename is `fm-minimal-chat.py`. (Skill-name
  reference left as `databricks-model-serving` to match DAS naming.)

The compute.py fix from #534 doesn't apply here — that file was removed
in PR #90.

Co-authored-by: Isaac
@simonfaltum simonfaltum merged commit 5218ae9 into main May 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants