Skip to content

Conversation

@svilupp
Copy link
Collaborator

@svilupp svilupp commented Nov 27, 2025

  • Fix tests by aligning mock responses with the latest PromptingTools requirements
  • dispose of test servers properly

claude and others added 3 commits November 26, 2025 07:21
Fixed test/preparation.jl line 68 where the embedding response was
incorrectly formatted as a single dictionary with a 2D matrix instead
of separate dictionaries with 1D vectors.

This was causing CI failures after upgrading to PromptingTools v0.84+,
which has stricter validation of API response formats.

Changed from:
- Dict(:embedding => ones(128, 2)) - single dict with 128x2 matrix

To:
- [Dict(:embedding => ones(Float32, 128)),
   Dict(:embedding => ones(Float32, 128))] - two dicts with 128-dim vectors

This matches the correct OpenAI API format where each embedding is
returned as a separate object in the data array.
@svilupp svilupp closed this Nov 27, 2025
@svilupp svilupp deleted the claude/fix-ci-failures-013C381aPwWhWXMmffiJjQaX branch November 27, 2025 18:27
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.

4 participants