Skip to content

Commit

Permalink
upgrade base model used in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
conneroisu committed Sep 5, 2024
1 parent 0c1b24f commit ad5d6c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/terminal-chat/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
m.textarea.Reset()
m.viewport.GotoBottom()
re, err := m.groqClient.CreateChatCompletionStream(context.Background(), groq.ChatCompletionRequest{
Model: groq.Llama38B8192,
Model: groq.Llama3170BVersatile,
Messages: []groq.ChatCompletionMessage{
{
Role: groq.ChatMessageRoleUser,
Expand All @@ -142,6 +142,7 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
currentCnt += response.Choices[0].Delta.Content
m.messages[newIx] = m.senderStyle.Render("Groq: ") + currentCnt
m.viewport.SetContent(strings.Join(m.messages, "\n"))
m.viewport.GotoBottom()
}
}
case tea.MouseAction:
Expand Down

0 comments on commit ad5d6c0

Please sign in to comment.