MCPcopy Create free account
hub / github.com/coder/coder / bedrockNonStreamingResponse

Function bedrockNonStreamingResponse

coderd/x/chatd/chatprovider/chatprovider_test.go:1204–1233  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1202}
1203
1204func bedrockNonStreamingResponse() map[string]any {
1205 return map[string]any{
1206 "id": "msg_01Test",
1207 "type": "message",
1208 "role": "assistant",
1209 "model": "claude-sonnet-4-20250514",
1210 "content": []any{
1211 map[string]any{
1212 "type": "text",
1213 "text": "Hi there",
1214 },
1215 },
1216 "stop_reason": "end_turn",
1217 "stop_sequence": "",
1218 "usage": map[string]any{
1219 "cache_creation": map[string]any{
1220 "ephemeral_1h_input_tokens": 0,
1221 "ephemeral_5m_input_tokens": 0,
1222 },
1223 "cache_creation_input_tokens": 0,
1224 "cache_read_input_tokens": 0,
1225 "input_tokens": 5,
1226 "output_tokens": 2,
1227 "server_tool_use": map[string]any{
1228 "web_search_requests": 0,
1229 },
1230 "service_tier": "standard",
1231 },
1232 }
1233}
1234
1235// TestModelFromConfig_ExtraHeaders verifies that extra headers passed
1236// to ModelFromConfig are sent on outgoing LLM API requests. Only the

Calls

no outgoing calls

Tested by

no test coverage detected