Skip to content

Commit

Permalink
Merge branch 'main' of github.com:lunary-ai/lunary
Browse files Browse the repository at this point in the history
  • Loading branch information
hughcrt committed Mar 27, 2024
2 parents 1b100b5 + 383a839 commit ad74ac4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/frontend/pages/prompts/[[...id]].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ function Playground() {

const [streaming, setStreaming] = useState(false)
const [loading, setLoading] = useState(false)

const [output, setOutput] = useState<any>(null)
const [outputTokens, setOutputTokens] = useState<any>(null)
const [error, setError] = useState(null)
Expand Down Expand Up @@ -124,6 +125,8 @@ function Playground() {

if (run?.input) {
setTemplateVersion({ ...templateVersion, content: run.input })

setTemplate({ mode: "openai", extra: run.params })
}

setLoading(false)
Expand Down Expand Up @@ -309,6 +312,7 @@ function Playground() {
// reset output when the template or template version changes
useEffect(() => {
setOutput(null)
setError(null)
setOutputTokens(0)
}, [
template?.id,
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/pages/radars/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ export default function Radar() {
<Group align="center">
<Title>Radars</Title>
<Badge variant="light" color="violet">
Alpha
Beta
</Badge>
</Group>

Expand Down

0 comments on commit ad74ac4

Please sign in to comment.