Repository navigation
[pull] main from apache:main - #123
Merged
Merged
Conversation
…Query (#1144) Generated-by: CodeBuddy (Auto model)
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 : )