jaymie9019

Results 11 comments of jaymie9019

+1, 可以增加 chat 相关的 api 吗

https://github.com/sashabaranov/go-gpt3/releases 我看这个库几小时之前已经吃了 chat 的 api

部署在服务器上的程序白天还是好的,到了晚上都是连接超时,需要部署到境外或者走代理才可以请求了

> 没看到你 TCPRoute 的配置? 需要先创建 TCP Router 吗, 看官网的例子是先定义了 gateway, 然后有一个 listen 9000 的端口配置, 然后去修改了 svc, 监听了 9000 端口转发到 pod 的 9000 端口。 然后这是比较疑惑, pod 并没有监听 9000 端口,所以应该是定义 gateway 之后...

@johnlanni ```yaml apiVersion: gateway.networking.k8s.io/v1 kind: Gateway metadata: name: higress-gateway namespace: higress-system spec: gatewayClassName: higress-gateway listeners: - name: default hostname: "*.gateway-api.com" port: 80 protocol: HTTP allowedRoutes: namespaces: from: All - name:...

> * name: tcp > nodePort: 32620 > port: 22 > protocol: TCP > targetPort: 9000 > > 这里port为什么配22,应该配9000把 因为这是 slb 监听的端口, 我说下我的理解吧,您看下我的理解是否有问题。 1. 首先定义 gatewayClassName: higress-gateway 里面定义了监听 tcp 9000...

> > 修改 svc 的端口转发,可以监听 22 端口转发到 pod 的 9000 端口 > > 这个我理解,但我印象中 istio 会根据 lb 的 svc 端口来关联 Gateway 资源中的端口,所以如果这里填 22,Gateway 里的端口也得是 22 我修改成了 9000 但是还是没有暴露出这个端口

我按照上面的教程部署了 higress 以及 lobechat,但是在使用的时候,如果回答的文本过长(其实也没有特比长)就会报错 @johnlanni

> @jaymie9019 你可以进容器,看下/var/log/higress/gateway.log的日志确认下,response_code是否是413 ![image](https://github.com/alibaba/higress/assets/28673896/74c2cbfe-7c61-45d8-8819-c6a8ceba614e) 已经配置,并且重启了 higress 的 pod, 问题并没有得到解决 日志中的 response_code 正常,仍然是 200 ``` root@higress-all-in-one-9fb5f859d-28btt:/var/log/higress# tail -f gateway.log 2024-06-23T09:18:35.093157Z info Epoch 0 starting 2024-06-23T09:18:35.093204Z info Envoy command: [-c etc/istio/proxy/envoy-rev0.json --restart-epoch...