File tree Expand file tree Collapse file tree
packages/gooddata-sdk/tests/catalog Expand file tree Collapse file tree Original file line number Diff line number Diff 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
59136version : 1
Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments