-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: enable to create the bot by conversation (#167)
* lottie 3倍速播放 * release [email protected] ![image](https://github.com/ant-xuexiao/petercat/assets/10885578/ccdb5c7b-372d-46b5-bb60-8b573d891b62)
- Loading branch information
Showing
11 changed files
with
268 additions
and
294 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2644,7 +2644,7 @@ | |
} | ||
], | ||
"v": "5.7.8", | ||
"fr": 60, | ||
"fr": 180, | ||
"op": 204, | ||
"ip": 0, | ||
"assets": [] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,23 @@ | ||
|
||
```jsx | ||
import React from 'react'; | ||
import React, { useEffect, useState } from 'react'; | ||
import { Chat } from 'petercat-lui'; | ||
|
||
export default () => { | ||
const [res, setRes] = useState({}); | ||
|
||
export default () => ( | ||
<div style={{ height: '100vh' }}> | ||
<Chat | ||
apiUrl="/api/chat/stream_builder" | ||
hideLogo="true" | ||
/> | ||
</div> | ||
); | ||
useEffect(() => { | ||
console.log('res', res); | ||
}, [res]); | ||
|
||
return ( | ||
<div style={{ height: '100vh' }}> | ||
<Chat | ||
apiUrl="/api/chat/stream_builder" | ||
hideLogo="true" | ||
getToolsResult={setRes} | ||
/> | ||
</div> | ||
); | ||
}; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.