Skip to content

Commit

Permalink
更新文旦
Browse files Browse the repository at this point in the history
  • Loading branch information
easychen committed Mar 7, 2023
1 parent 4c338be commit d132069
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions FUNC.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,15 @@ cd src && yarn add [email protected] [email protected] [email protected]

![](images/20230307123957.png)

⑥ 在触发管理中,选择创建触发器;版本选择 $LATEST,然后提交;创建完成后,访问路径就是该函数的公网路径;
使用时将 `https://api.openai.com/` 替换为该路径即可,如 `https://api.openai.com/v1/chat/completions` 替换为 `https://xxxxx.apigw.tencentcs.com/release/v1/chat/completions`
⑥ 下拉或者进入「触发管理」可以看到云函数的访问地址。

![](images/202303071241272.png)

![](images/20230307124127.png)

⑦ 调整函数执行超时时间,默认的3s会经常超时,建议调整为10s以上的时间
![](images/20230307203401.png)
![](images/20230307203401.png)

⑧ 如果你想去掉后边的release,可以在触发管理中,选择创建触发器;版本选择 $LATEST,然后提交;创建完成后,访问路径就是该函数的公网路径;
使用时将 `https://api.openai.com/` 替换为该路径即可,如 `https://api.openai.com/v1/chat/completions` 替换为 `https://xxxxx.apigw.tencentcs.com/release/v1/chat/completions`

![](images/20230307124127.png)
Binary file added images/202303071241272.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d132069

Please sign in to comment.