Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Commit

Permalink
prepare for v1.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
clement2026 committed Oct 26, 2023
1 parent 28aaf1b commit 7bfce1d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ env:
# github.repository as <account>/<repo>
IMAGE_NAME: ${{ github.repository }}
# make sure that WEB_VERSION <= release version
WEB_VERSION: v1.2.2
WEB_VERSION: v1.2.4

jobs:
generate:
Expand Down
13 changes: 13 additions & 0 deletions pkg/providers/chatgpt_demo.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"errors"
"math/rand"
"strings"
"time"

demo "github.com/proxoar/talk-demo-resource/v2"
Expand Down Expand Up @@ -81,6 +82,18 @@ func (c *chatGPTDemo) CompletionStream(_ context.Context, ms []client.Message, t
return stream
}

// use this to observe UI style for code block
func codeExample(c *chatGPTDemo) *demo.Resource {
resource := c.pool.RandomResource()
for _, v := range c.pool.List() {
if strings.Contains(v.Text, "Highlight.js is a powerful library") {
resource = &v
break
}
}
return resource
}

// SetAbility set `ChatGPTAblt` and `available` field of ability.LLMAblt
func (c *chatGPTDemo) SetAbility(_ context.Context, a *ability.LLMAblt) error {
a.ChatGPT = ability.ChatGPTAblt{
Expand Down

0 comments on commit 7bfce1d

Please sign in to comment.