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

Function chatModelConfigToUpdateParams

coderd/exp_chats.go:7309–7325  ·  view source on GitHub ↗
(
	config database.ChatModelConfig,
)

Source from the content-addressed store, hash-verified

7307}
7308
7309func chatModelConfigToUpdateParams(
7310 config database.ChatModelConfig,
7311) database.UpdateChatModelConfigParams {
7312 return database.UpdateChatModelConfigParams{
7313 Provider: config.Provider,
7314 Model: config.Model,
7315 DisplayName: config.DisplayName,
7316 Enabled: config.Enabled,
7317 IsDefault: config.IsDefault,
7318 ContextLimit: config.ContextLimit,
7319 CompressionThreshold: config.CompressionThreshold,
7320 Options: config.Options,
7321 AIProviderID: config.AIProviderID,
7322 UpdatedBy: uuid.NullUUID{},
7323 ID: config.ID,
7324 }
7325}
7326
7327func nullInt64Ptr(n sql.NullInt64) *int64 {
7328 if !n.Valid {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected