fix(dotAI): QA fixes - image model default, playground overflow, embeddings host resolution#35716
fix(dotAI): QA fixes - image model default, playground overflow, embeddings host resolution#35716ihoffmann-dot wants to merge 2 commits into
Conversation
…embeddings host resolution
|
Claude finished @ihoffmann-dot's task in 2m 5s —— View job PR ReviewThe three fixes are correct and minimal. A few things worth a second look: Findings1. Scope of the embeddings-host fix is incomplete (most important) The premise of the listener fix — that Other host-less call sites that may merit follow-up: 2.
3. Null-host edge case in
4.
5. XSS in The template at 6. Already pre-existing (line 157 in the new code, was line 153 before). It's there as a side-effect call to throw Clean parts
|
| .getOrElse(APILocator.systemHost()); | ||
| // if a velocity template is passed in, use it. Otherwise, try the fields | ||
| if (!APILocator.getDotAIAPI().getEmbeddingsAPI().generateEmbeddingsForContent( | ||
| if (!APILocator.getDotAIAPI().getEmbeddingsAPI(host).generateEmbeddingsForContent( |
Summary
Three bug fixes found during QA testing of the dotAI integration.
providerConfigJSON in the dotAI config UI fromdall-e-3togpt-image-1JSON.stringify(json, 2)(wrong signature — JSON was not pretty-printed) and addoverflow-wrap,word-break, and<pre>wrapping so the response JSON no longer causes the page to overflow horizontallyEmbeddingContentListenerwas callinggetEmbeddingsAPI()without a host, causingEmbeddingsAPIImplto always fall back to System Host config even when the dotAI app was configured on a specific site only — indexing silently failed with "no provider config" when System Host had no configChanges
dot-ai-config-detail.component.ts:dall-e-3→gpt-image-1in EXAMPLE_CONFIGdotai.js: fixJSON.stringifycall, add overflow styles, wrap JSON in<pre>EmbeddingContentListener.java: extractresolveHost(hostId)helper, pass resolvedHosttogetEmbeddingsAPI(host)in bothaddToIndexesIfNeededanddeleteFromIndexesRelated Issue
This PR fixes #35150