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 9 commits into
Conversation
…embeddings host resolution
|
Claude finished @ihoffmann-dot's task in 2m 49s —— View job PR ReviewMostly solid bug-fixing PR. A few things worth a second look: 🔴
|
|
I think we can use input number instead of the dropdown with hardcoded values in Because some models cannot generate in the hardcoded values OR, since this is a sandbox, just keep square here, maybe the most supported value from models |
…s include actual image data
Summary
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 overflows horizontally; addmax-height+overflow-y: autoon the<pre>to prevent vertical overflowEmbeddingContentListenerandBulkEmbeddingsRunnerwere callinggetEmbeddingsAPI()without a host, causingEmbeddingsAPIImplto always fall back to System Host config — indexing silently failed with "no provider config" when dotAI was configured on a specific site onlyreportValidity()check before firing the request andrequiredattributes on the index select and prompt textareawriteModelToDropdowncrashed silently due to a wrong variable reference (indexNameinstead ofmodelName) and readavailableModelswhich no longer exists in the config response; rewritten to parseproviderConfig.chat.modeland populate one option per configured model/api/v1/ai/searchreturned{ dotCMSResults: [] }when a non-existentindexNamewas passed, with no indication the index was missing; now returns404with a descriptive error listing known indexesChanges
dot-ai-config-detail.component.ts:dall-e-3→gpt-image-1inEXAMPLE_CONFIGdotai.js: fixJSON.stringifycall, add overflow styles, wrap JSON in<pre>withmax-height; addreportValidity()guard indoSearchChatJson; rewritewriteModelToDropdownto read fromproviderConfig.chat.modelrender.jsp: addrequiredto index select and prompt textarea; addvalue=""to select placeholder optionEmbeddingContentListener.java: extractresolveHost(hostId)helper, pass resolvedHosttogetEmbeddingsAPI(host)in bothaddToIndexesIfNeededanddeleteFromIndexesBulkEmbeddingsRunner.java: resolve host per-contentlet and pass togetEmbeddingsAPI(host)(same bug asEmbeddingContentListener, different code path — triggered by the manual "Build Index" button)SearchResource.java: validate index existence viacountEmbeddingsByIndex()before running the query; return404if not found; pass host togetEmbeddingsAPI(host)Related Issue
This PR fixes #35730