Skip to content

[pull] main from apache:main - #123

Merged
pull[bot] merged 4 commits into
section9-lab:mainfrom
apache:main
Sep 22, 2026
Merged

pull[bot] merged 4 commits into
section9-lab:mainfrom
apache:main

Conversation

@pull

@pull pull Bot commented Sep 22, 2026 •

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

CodeTrainerMan and others added 4 commits September 22, 2026 14:50
ChatModelIntegrationTest gates its API-key providers on a non-blank <PROVIDER>_API_KEY through a
new shared OllamaPreparationUtils.hasApiKey helper. This re-arms the OPENAI_RESPONSES case, which
was gated on a variable nothing sets (the agent reads OPENAI_API_KEY), and clears MODEL_PROVIDER
after each run.

Generated-by: Claude Code 2.1.273 (Claude Fable 5.1)
… connection

additional_kwargs are sent as extra request body properties and may not repeat a typed field;
request_timeout 0 disables the timeout as in the OpenAI chat models; request_timeout, max_retries,
dimensions, encoding_format and model are validated at construction and per call; blank or null
strings mean absent or default; base64 responses are decoded (previously the characters of the
base64 string were returned) with padding restored only for completely unpadded values, so
partially padded input is rejected as it is by Java's decoder; responses are checked for size,
index consistency and malformed vectors; token usage tolerates partial or string counts. The
mocked tests run in the unit suite; only the live-API test keeps the integration marker.

Compatibility: additional_kwargs entries that are not typed fields were dropped and are now sent;
entries that repeat a typed field previously overrode it and now fail validation; model_kwargs
nests additional_kwargs; dimensions must be an integer. Documented in embedding_models.md.

Generated-by: Claude Code 2.1.273 (Claude Fable 5.1)
Adds integrations/embedding-models/openai with OpenAIEmbeddingModelConnection and
OpenAIEmbeddingModelSetup on com.openai:openai-java, mirroring the Python connection and setup
arguments (api_key, base_url, request_timeout, max_retries, organization, project; connection,
model, encoding_format, dimensions, user, additional_kwargs). Batches are one request placed by
response index with size, range and consistency checks; base64 responses are decoded; token usage
is reported through embedWithUsage. Arguments are validated once at setup construction and per
call by the same package-private parsers; additional_kwargs may not repeat a typed request field.

Registers ResourceName.EmbeddingModel.OPENAI_*, the Python mirror and the `openai` YAML alias in
both languages, dist and ide-support dependencies. EmbeddingIntegrationTest gains an OPENAI
provider (text-embedding-3-small, dimensions 256) gated on a non-blank OPENAI_API_KEY through
OllamaPreparationUtils.hasApiKey, with the Ollama case gated on the local daemon only, and the
e2e module depends on the new integration. Docs: Java tabs in the OpenAI section of
embedding_models.md, FAQ support matrix, YAML alias table.

Generated-by: Claude Code 2.1.273 (Claude Fable 5.1)
@pull pull Bot locked and limited conversation to collaborators Sep 22, 2026
@pull pull Bot added the ⤵️ pull label Sep 22, 2026
@pull
pull Bot merged commit e8f79d5 into section9-lab:main Sep 22, 2026
29 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants