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

Function FakeOpenAICompatProviderAPIKeys

coderd/coderdtest/chat.go:44–47  ·  view source on GitHub ↗

FakeOpenAICompatProviderAPIKeys starts a fake OpenAI-compatible provider and returns provider keys for coderdtest.Options.

(t testing.TB)

Source from the content-addressed store, hash-verified

42// FakeOpenAICompatProviderAPIKeys starts a fake OpenAI-compatible provider and
43// returns provider keys for coderdtest.Options.
44func FakeOpenAICompatProviderAPIKeys(t testing.TB) chatprovider.ProviderAPIKeys {
45 t.Helper()
46 return OpenAICompatProviderAPIKeys(chattest.OpenAI(t))
47}
48
49// CreateOpenAICompatChatModelConfig creates the default provider and model
50// config used by chat runtime tests. Tests can pass a baseURL to route chat work

Callers 3

newChatTestOptionsFunction · 0.92
TestPatchChatFunction · 0.92
newMCPClientFunction · 0.92

Calls 3

OpenAIFunction · 0.92
HelperMethod · 0.65

Tested by 3

newChatTestOptionsFunction · 0.74
TestPatchChatFunction · 0.74
newMCPClientFunction · 0.74