Skip to content

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

Open
yenkins-admin wants to merge 2 commits intomasterfrom
auto/openapi-sync-C005-20260413-r60461
Open

feat(gooddata-sdk): [AUTO] Deprecate LLM Endpoint API and add resolveLlmProviders endpoint#1542
yenkins-admin wants to merge 2 commits intomasterfrom
auto/openapi-sync-C005-20260413-r60461

Conversation

@yenkins-admin
Copy link
Copy Markdown
Contributor

Summary

Added SDK support for the new resolveLlmProviders endpoint (GET /api/v1/actions/workspaces/{workspaceId}/ai/resolveLlmProviders). Created three new SDK model classes (CatalogResolvedLlmModel, CatalogResolvedLlmProvider, CatalogResolvedLlms) in a new file resolved_llm.py, added the resolve_llm_providers(workspace_id) service method to CatalogWorkspaceContentService, and exported all new classes via gooddata_sdk/__init__.py. All deprecated endpoints and models (resolveLlmEndpoints, JsonApiLlmEndpointIn/Out/Patch) are only in the auto-generated client layer and required no SDK wrapper changes. Six unit tests pass; one integration test needs a VCR cassette recorded against a live server.

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

Files changed

  • packages/gooddata-sdk/src/gooddata_sdk/catalog/workspace/entity_model/resolved_llm.py
  • packages/gooddata-sdk/src/gooddata_sdk/catalog/workspace/content_service.py
  • packages/gooddata-sdk/src/gooddata_sdk/__init__.py
  • packages/gooddata-sdk/tests/catalog/test_resolved_llm.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

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 13, 2026

Codecov Report

❌ Patch coverage is 93.02326% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 78.70%. Comparing base (d7f50b7) to head (54eb2f3).

Files with missing lines Patch % Lines
...sdk/catalog/workspace/entity_model/resolved_llm.py 92.10% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1542      +/-   ##
==========================================
+ Coverage   78.66%   78.70%   +0.03%     
==========================================
  Files         230      231       +1     
  Lines       15400    15443      +43     
==========================================
+ Hits        12114    12154      +40     
- Misses       3286     3289       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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