Skip to content

Commit

Permalink
Update FUNC.md
Browse files Browse the repository at this point in the history
  • Loading branch information
easychen authored Mar 8, 2023
1 parent f8c0d45 commit 58a5d85
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions FUNC.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ cd src && yarn add [email protected] [email protected] [email protected]
⑦ 调整函数执行超时时间,默认的3s会经常超时,建议调整为10s以上的时间
![](images/20230307203401.png)

⑧ 如果你想去掉后边的release,可以在触发管理中,选择创建触发器;版本选择 $LATEST,然后提交;创建完成后,访问路径就是该函数的公网路径;
⑧ 如果你想绑定自己的域名,需要在「触发管理」中开启「标准API网关」,按腾讯云教程进行配置。

## Proxy的使用

使用时将 `https://api.openai.com/` 替换为该路径即可,如 `https://api.openai.com/v1/chat/completions` 替换为 `https://xxxxx.apigw.tencentcs.com/release/v1/chat/completions`

![](images/20230307124127.png)

0 comments on commit 58a5d85

Please sign in to comment.