File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ func NewAI() gollm.LLM {
1414 var opts []gollm.ConfigOption
1515 opts = append (opts , gollm .SetProvider (provider ))
1616 opts = append (opts , gollm .SetModel (model ))
17- if seed > 1 {
17+ if seed != - 1 {
1818 opts = append (opts , gollm .SetSeed (seed ))
1919 }
2020 if maxTokens > 0 {
Original file line number Diff line number Diff line change 2929
3030 // A slight border for the chat viewport
3131 viewportStyle = lipgloss .NewStyle ().
32- Border (lipgloss .RoundedBorder ()).
33- BorderForeground (lipgloss .Color ("8" )). // Gray
34- Padding (1 )
32+ Border (lipgloss .RoundedBorder ()).
33+ BorderForeground (lipgloss .Color ("8" )). // Gray
34+ Padding (1 )
3535)
3636
3737func StartChat (buf * bytes.Buffer ) {
@@ -169,8 +169,7 @@ func (m model) generateResponseCmd() tea.Cmd {
169169 wc .WriteString ("The summarized project is:\n " )
170170 parts := strings .Split (m .summary , breaker )
171171 if len (parts ) == 2 {
172- oldPrefix := strings .Clone (parts [0 ])
173- oldSummary := strings .Clone (parts [1 ])
172+ oldPrefix , oldSummary := parts [0 ], parts [1 ]
174173 newSummary := oldPrefix + wc .String () + oldSummary
175174 m .summary = newSummary
176175 wc .Reset ()
@@ -196,7 +195,7 @@ func (m model) generateResponseCmd() tea.Cmd {
196195 "the code. However, do not get distracted. Always follow the lead of the DevOps engineer. Do not be afraid to" +
197196 "offend. Your brutal honesty is welcome here and iron sharpens iron. Here is the summary now:\n " +
198197 breaker + "\n " )
199- oldSummary := strings . Clone ( m .summary )
198+ oldSummary := m .summary
200199 newSummary := oldSummary + wc .String ()
201200 m .summary = newSummary
202201 wc .Reset ()
You can’t perform that action at this time.
0 commit comments