MCPcopy
hub / github.com/sammcj/gollama / startPushModel

Method startPushModel

operations.go:716–729  ·  view source on GitHub ↗
(modelName string)

Source from the content-addressed store, hash-verified

714}
715
716func (m *AppModel) startPushModel(modelName string) tea.Cmd {
717 logging.InfoLogger.Printf("Pushing model: %s\n", modelName)
718 return func() tea.Msg {
719 ctx := context.Background()
720 req := &api.PushRequest{Name: modelName}
721 err := m.client.Push(ctx, req, func(resp api.ProgressResponse) error {
722 return nil
723 })
724 if err != nil {
725 return pushErrorMsg{err}
726 }
727 return pushSuccessMsg{modelName}
728 }
729}
730
731// ModelFiles represents the files associated with a model
732type ModelFiles struct {

Callers 1

handlePushModelKeyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected