Skip to content

Commit

Permalink
Merge pull request easychen#2 from helloworlde/master
Browse files Browse the repository at this point in the history
添加腾讯云函数部署说明
  • Loading branch information
easychen authored Mar 7, 2023
2 parents 5c4f29a + 8d9fe79 commit 4c338be
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions FUNC.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ cd src && yarn add [email protected] [email protected] [email protected]

![](images/20230307123957.png)

⑥ 把编辑器往下拉,「访问路径」就是代理API的URL了。
⑥ 在触发管理中,选择创建触发器;版本选择 $LATEST,然后提交;创建完成后,访问路径就是该函数的公网路径;
使用时将 `https://api.openai.com/` 替换为该路径即可,如 `https://api.openai.com/v1/chat/completions` 替换为 `https://xxxxx.apigw.tencentcs.com/release/v1/chat/completions`

![](images/20230307124127.png)
![](images/20230307124127.png)

⑦ 调整函数执行超时时间,默认的3s会经常超时,建议调整为10s以上的时间
![](images/20230307203401.png)
Binary file modified images/20230307124127.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/20230307203401.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 4c338be

Please sign in to comment.