Skip to content

Commit b44e1fc

Browse files
Copilot updates
1 parent 9567051 commit b44e1fc

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

ai.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 {

chat.go

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ var (
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

3737
func 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()

0 commit comments

Comments
 (0)