Skip to content

Commit 7140502

Browse files
feat(nlq): add modelId to OpenAI NLQ configuration (#27789)
* feat(nlq): add modelId to OpenAI NLQ configuration Mirrors the bedrock provider, which already exposes a modelId for query transformation alongside its embeddingModelId. The OpenAI provider only had embeddingModelId, leaving the chat-completions model hardcoded in the client. Adding modelId here lets operators pick the chat model (e.g. gpt-4o-mini, gpt-4o) per deployment without code changes. * Update generated TypeScript types --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 0d44cfb commit 7140502

3 files changed

Lines changed: 13 additions & 0 deletions

File tree

openmetadata-spec/src/main/resources/json/schema/configuration/elasticSearchConfiguration.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,11 @@
210210
"description": "API key for authenticating with OpenAI or Azure OpenAI.",
211211
"type": "string"
212212
},
213+
"modelId": {
214+
"description": "OpenAI model identifier to use for query transformation (chat completions).",
215+
"type": "string",
216+
"default": "gpt-4o-mini"
217+
},
213218
"embeddingModelId": {
214219
"description": "OpenAI embedding model identifier (e.g., text-embedding-3-small, text-embedding-ada-002).",
215220
"type": "string",

openmetadata-ui/src/main/resources/ui/src/generated/configuration/elasticSearchConfiguration.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,10 @@ export interface Openai {
268268
* https://your-resource.openai.azure.com). Leave empty for standard OpenAI API.
269269
*/
270270
endpoint?: string;
271+
/**
272+
* OpenAI model identifier to use for query transformation (chat completions).
273+
*/
274+
modelId?: string;
271275
}
272276

273277
/**

openmetadata-ui/src/main/resources/ui/src/generated/settings/settings.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2314,6 +2314,10 @@ export interface Openai {
23142314
* https://your-resource.openai.azure.com). Leave empty for standard OpenAI API.
23152315
*/
23162316
endpoint?: string;
2317+
/**
2318+
* OpenAI model identifier to use for query transformation (chat completions).
2319+
*/
2320+
modelId?: string;
23172321
}
23182322

23192323
/**

0 commit comments

Comments
 (0)