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

Function testAIProvider

coderd/x/chatd/configcache_internal_test.go:673–683  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

671}
672
673func testAIProvider(name string) database.AIProvider {
674 return database.AIProvider{
675 ID: uuid.New(),
676 Type: database.AIProviderType(name),
677 Name: name,
678 DisplayName: sql.NullString{String: name, Valid: true},
679 Enabled: true,
680 CreatedAt: time.Unix(0, 0).UTC(),
681 UpdatedAt: time.Unix(0, 0).UTC(),
682 }
683}
684
685func testChatModelConfig(id uuid.UUID, model string) database.ChatModelConfig {
686 return database.ChatModelConfig{

Calls 2

AIProviderTypeTypeAlias · 0.92
NewMethod · 0.65

Tested by

no test coverage detected