Skip to content

feat(gooddata-sdk): [AUTO] Deprecate LLM Endpoint API and add resolveLlmProviders endpoint#1538

Open
yenkins-admin wants to merge 1 commit intomasterfrom
auto/openapi-sync-C005-20260413-r12445
Open

feat(gooddata-sdk): [AUTO] Deprecate LLM Endpoint API and add resolveLlmProviders endpoint#1538
yenkins-admin wants to merge 1 commit intomasterfrom
auto/openapi-sync-C005-20260413-r12445

Conversation

@yenkins-admin
Copy link
Copy Markdown
Contributor

Summary

Added SDK wrapper for the new resolveLlmProviders endpoint. Created three new model classes (CatalogResolvedLlmModel, CatalogResolvedLlmProvider, CatalogResolvedLlms) in a new file catalog/workspace/entity_model/resolved_llm_provider.py. Added resolve_llm_providers(workspace_id) method to CatalogWorkspaceService. Exported new classes from gooddata_sdk/__init__.py. Added unit tests for model deserialization and an integration test skeleton. Deprecated API endpoints (llmEndpoint test/resolve) do not have existing SDK wrappers so no deprecation warnings were needed.

Impact: deprecation | Services: gooddata-afm-client, gooddata-metadata-client

Files changed

  • packages/gooddata-sdk/src/gooddata_sdk/catalog/workspace/entity_model/resolved_llm_provider.py
  • packages/gooddata-sdk/src/gooddata_sdk/catalog/workspace/service.py
  • packages/gooddata-sdk/src/gooddata_sdk/__init__.py
  • packages/gooddata-sdk/tests/catalog/test_catalog_workspace_content.py

Source commits (gdc-nas)

  • a19eb19 Merge pull request #21393 from hkad98/jkd/llm-endpoint-deprecation
OpenAPI diff
     "/api/v1/actions/ai/llmEndpoint/test": { "post": {
+        "deprecated": true,
+        "description": "Will be soon removed and replaced by testLlmProvider."
     "/api/v1/actions/ai/llmEndpoint/{llmEndpointId}/test": { "post": {
+        "deprecated": true,
+        "description": "Will be soon removed and replaced by testLlmProviderById."
     "/api/v1/actions/workspaces/{workspaceId}/ai/resolveLlmEndpoints": { "get": {
+        "deprecated": true,
+        "description": "Will be soon removed and replaced by LlmProvider-based resolution."
+    "/api/v1/actions/workspaces/{workspaceId}/ai/resolveLlmProviders": {
+      "get": { "operationId": "resolveLlmProviders", "summary": "Get Active LLM configuration for this workspace" }
+    },
       "JsonApiLlmEndpointIn": {
+        "deprecated": true, "description": "Will be soon removed and replaced by LlmProvider."
       "JsonApiLlmEndpointOut": { "deprecated": true },
       "JsonApiLlmEndpointPatch": { "deprecated": true },
+      "ResolvedLlm": { "description": "The resolved LLM configuration, or null if none is configured." },
+      "ResolvedLlmProvider": { "allOf": [{ "$ref": "ResolvedLlm" }, { "properties": { "id": {...}, "models": {...}, "title": {...} } }] },
+      "ResolvedLlms": { "properties": { "data": { "oneOf": [{ "$ref": "ResolvedLlmEndpoint" }, { "$ref": "ResolvedLlmProvider" }] } } }

Workflow run


Generated by SDK OpenAPI Sync workflow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant