Skip to content

Commit 63c480c

Browse files
committed
fix(gooddata-sdk): [AUTO] fix-agent attempt 1
1 parent c94b644 commit 63c480c

3 files changed

Lines changed: 215 additions & 7 deletions

File tree

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

Lines changed: 85 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,54 @@
11
interactions:
22
- request:
3-
body: null
3+
body:
4+
data:
5+
attributes:
6+
defaultModelId: claude-3-5-sonnet-20241022
7+
models:
8+
- family: ANTHROPIC
9+
id: claude-3-5-sonnet-20241022
10+
name: Test Anthropic Provider
11+
providerConfig:
12+
auth:
13+
apiKey: test-api-key
14+
type: API_KEY
15+
type: ANTHROPIC
16+
id: test-anthropic-provider
17+
type: llmProvider
418
headers:
19+
Accept:
20+
- application/json
521
Accept-Encoding:
622
- br, gzip, deflate
23+
Content-Type:
24+
- application/json
725
X-GDC-VALIDATE-RELATIONS:
826
- 'true'
927
X-Requested-With:
1028
- XMLHttpRequest
11-
method: DELETE
12-
uri: http://localhost:3000/api/v1/entities/llmProviders/test-anthropic-provider
29+
method: POST
30+
uri: http://localhost:3000/api/v1/entities/llmProviders
1331
response:
1432
body:
15-
string: ''
33+
string:
34+
data:
35+
attributes:
36+
defaultModelId: claude-3-5-sonnet-20241022
37+
models:
38+
- family: ANTHROPIC
39+
id: claude-3-5-sonnet-20241022
40+
name: Test Anthropic Provider
41+
providerConfig:
42+
auth:
43+
type: API_KEY
44+
type: ANTHROPIC
45+
id: test-anthropic-provider
46+
links:
47+
self: http://localhost:3000/api/v1/entities/llmProviders/test-anthropic-provider
48+
type: llmProvider
1649
headers:
1750
Content-Type:
18-
- application/vnd.gooddata.api+json
51+
- application/json
1952
DATE: &id001
2053
- PLACEHOLDER
2154
Expires:
@@ -26,8 +59,53 @@ interactions:
2659
- nosniff
2760
X-GDC-TRACE-ID: *id001
2861
status:
29-
code: 204
30-
message: No Content
62+
code: 201
63+
message: Created
64+
- request:
65+
body: null
66+
headers:
67+
Accept:
68+
- application/json
69+
Accept-Encoding:
70+
- br, gzip, deflate
71+
X-GDC-VALIDATE-RELATIONS:
72+
- 'true'
73+
X-Requested-With:
74+
- XMLHttpRequest
75+
method: GET
76+
uri: http://localhost:3000/api/v1/entities/llmProviders/test-anthropic-provider
77+
response:
78+
body:
79+
string:
80+
data:
81+
attributes:
82+
defaultModelId: claude-3-5-sonnet-20241022
83+
models:
84+
- family: ANTHROPIC
85+
id: claude-3-5-sonnet-20241022
86+
name: Test Anthropic Provider
87+
providerConfig:
88+
auth:
89+
type: API_KEY
90+
type: ANTHROPIC
91+
id: test-anthropic-provider
92+
links:
93+
self: http://localhost:3000/api/v1/entities/llmProviders/test-anthropic-provider
94+
type: llmProvider
95+
headers:
96+
Content-Type:
97+
- application/json
98+
DATE: *id001
99+
Expires:
100+
- '0'
101+
Pragma:
102+
- no-cache
103+
X-Content-Type-Options:
104+
- nosniff
105+
X-GDC-TRACE-ID: *id001
106+
status:
107+
code: 200
108+
message: OK
31109
- request:
32110
body: null
33111
headers:

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)