MCPcopy Index your code
hub / github.com/coder/coder / newChatClient

Function newChatClient

coderd/exp_chats_test.go:91–97  ·  view source on GitHub ↗
(t testing.TB, overrides ...func(*coderdtest.Options))

Source from the content-addressed store, hash-verified

89}
90
91func newChatClient(t testing.TB, overrides ...func(*coderdtest.Options)) *codersdk.ExperimentalClient {
92 t.Helper()
93
94 opts := newChatTestOptions(t, chatDeploymentValues(t), overrides...)
95 client := coderdtest.New(t, opts)
96 return codersdk.NewExperimentalClient(client)
97}
98
99func newChatClientWithAPI(t testing.TB, overrides ...func(*coderdtest.Options)) (*codersdk.ExperimentalClient, *coderd.API) {
100 t.Helper()

Callers 15

TestPostChatsFunction · 0.70
TestPostChats_ClientTypeFunction · 0.70
TestListChatsFunction · 0.70
TestListChatModelsFunction · 0.70
TestWatchChatsFunction · 0.70
TestUserAIProviderKeysFunction · 0.70
TestListChatProvidersFunction · 0.70
TestCreateChatProviderFunction · 0.70
TestUpdateChatProviderFunction · 0.70
TestListChatModelConfigsFunction · 0.70

Calls 5

NewFunction · 0.92
NewExperimentalClientFunction · 0.92
newChatTestOptionsFunction · 0.85
chatDeploymentValuesFunction · 0.85
HelperMethod · 0.65

Tested by

no test coverage detected