Open
Conversation
43492a5 to
2cb8678
Compare
jsongo
reviewed
Oct 29, 2024
packages/coze-js/README.md
Outdated
| const v = await coze.chatV3Streaming({ | ||
| const v = await client.chat.stream({ | ||
| bot_id: botId, | ||
| user_id: '123***', |
jsongo
reviewed
Oct 29, 2024
| @@ -0,0 +1,3 @@ | |||
| # https://www.robotstxt.org/robotstxt.html | |||
| User-agent: * | |||
| Disallow: | |||
There was a problem hiding this comment.
这个文件这么写也没啥用吧,Disallow 后面为空时,表示所有页面都允许被爬取
Collaborator
Author
There was a problem hiding this comment.
这是 create-react-app 生成的,我去掉也行
jsongo
reviewed
Oct 29, 2024
packages/coze-js/README.md
Outdated
|
|
||
| const client = new CozeAPI({ | ||
| token: 'your_token', | ||
| baseURL: 'https://api.coze.com', |
Collaborator
Author
There was a problem hiding this comment.
参考python sdk,提供两个常量:
const client = new CozeAPI({
token: 'your_token',
baseURL: COZE_COM_BASE_URL, // you can change to COZE_CN_BASE_URL
});
jsongo
reviewed
Oct 29, 2024
packages/coze-js/src/fetcher.ts
Outdated
| adapter: options.isStreaming ? 'fetch' : undefined, | ||
| ...options, | ||
| }).catch(error => { | ||
| console.log('fetchAPIerror', error); |
jsongo
reviewed
Oct 29, 2024
packages/coze-js/src/auth.ts
Outdated
| return `${baseUrl}/api/permission/oauth2/authorize?${params.toString()}`; | ||
| }; | ||
|
|
||
| export const getPKCEAuthenticationUrl = async (config: { |
There was a problem hiding this comment.
config 等这些参数类型抽出来好些吧?export 出去,开发者使用的时候更方便些
jsongo
reviewed
Oct 29, 2024
packages/coze-js/src/constant.ts
Outdated
| @@ -0,0 +1 @@ | |||
| export const DEFAULT_BASE_URL = 'https://api.coze.com'; | |||
429641b to
be56c8c
Compare
be56c8c to
326aa7c
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
add coze openapi js sdk