【求助帖】我用服务器的ip地址curl 请求一直通不了,使用本地请求就是可以成功的,麻烦老师看一下 #495
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: HswOAuth/llm_course#495
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
这个是我使用服务器的IP地址curl请求一直没有反应,如图

这个是我在服务器上使用0.0.0.0地址请求,请求成功了,如图

这个是我查到的服务器的ip地址,如图

远程访问服务器需要公网ip,你这个仍然是内网ip,公网ip需要购买。
那么?调用的客户端nextchat 和大模型都要部署在服务器上面吗?还是要购买服务器的公网ip啊?
分情况:1. 如果是个人调用,让客户端和调用的大模型都放在一个服务器上,就可以实现客户端通过内网ip调用大模型。
2. 如果是想分发出去,可以为部署了大模型的服务器购买一个公网ip,然后设置好大模型api和公网ip的映射关系,就可以在其他服务器或者个人电脑上访问这个部署的模型。