Skip to content

Commit 3ed8eee

Browse files
committed
fix(gooddata-sdk): [AUTO] fix-agent attempt 1
1 parent 5e926c8 commit 3ed8eee

3 files changed

Lines changed: 128 additions & 0 deletions

File tree

packages/gooddata-sdk/tests/catalog/fixtures/organization/test_create_llm_provider_anthropic.yaml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,81 @@ interactions:
5656
status:
5757
code: 204
5858
message: No Content
59+
- request:
60+
body:
61+
data:
62+
attributes:
63+
models:
64+
- family: ANTHROPIC
65+
id: claude-3-5-sonnet-20241022
66+
name: Test Anthropic Provider
67+
providerConfig:
68+
auth:
69+
apiKey: test-api-key
70+
type: API_KEY
71+
type: ANTHROPIC
72+
id: test-anthropic-provider
73+
type: llmProvider
74+
headers:
75+
Accept:
76+
- application/json
77+
Accept-Encoding:
78+
- br, gzip, deflate
79+
Content-Type:
80+
- application/json
81+
X-GDC-VALIDATE-RELATIONS:
82+
- 'true'
83+
X-Requested-With:
84+
- XMLHttpRequest
85+
method: POST
86+
uri: http://localhost:3000/api/v1/entities/llmProviders
87+
response:
88+
body:
89+
string:
90+
detail: Default model ID is required for LLM provider.
91+
status: 400
92+
title: Bad Request
93+
traceId: NORMALIZED_TRACE_ID_000000000000
94+
headers:
95+
Content-Type:
96+
- application/problem+json
97+
DATE: *id001
98+
Expires:
99+
- '0'
100+
Pragma:
101+
- no-cache
102+
X-Content-Type-Options:
103+
- nosniff
104+
X-GDC-TRACE-ID: *id001
105+
status:
106+
code: 400
107+
message: Bad Request
108+
- request:
109+
body: null
110+
headers:
111+
Accept-Encoding:
112+
- br, gzip, deflate
113+
X-GDC-VALIDATE-RELATIONS:
114+
- 'true'
115+
X-Requested-With:
116+
- XMLHttpRequest
117+
method: DELETE
118+
uri: http://localhost:3000/api/v1/entities/llmProviders/test-anthropic-provider
119+
response:
120+
body:
121+
string: ''
122+
headers:
123+
Content-Type:
124+
- application/vnd.gooddata.api+json
125+
DATE: *id001
126+
Expires:
127+
- '0'
128+
Pragma:
129+
- no-cache
130+
X-Content-Type-Options:
131+
- nosniff
132+
X-GDC-TRACE-ID: *id001
133+
status:
134+
code: 204
135+
message: No Content
59136
version: 1

packages/gooddata-sdk/tests/catalog/test_catalog_organization.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,7 @@ def test_create_llm_provider_anthropic(test_config):
582582
auth=CatalogAnthropicApiKeyAuth(api_key="test-api-key"),
583583
),
584584
name="Test Anthropic Provider",
585+
default_model_id="claude-3-5-sonnet-20241022",
585586
)
586587

587588
try:

0 commit comments

Comments
 (0)