ODomWang

Results 11 comments of ODomWang

解决了吗 老哥 我也是这个问题,搜了一圈都是说模型版本的问题 我把作者推荐的几个模型都试了 还是不行

在you.py 添加代理 > response = client.get(f"https://you.com/api/streamingSearch", params = { "q" : prompt, "page" : page, "count" : count, "safeSearch" : safeSearch, "onShoppingPage" : onShoppingpage, "mkt" : mkt, "responseFilter" : responseFilter,...

> 在you.py 添加代理 > > > > > ``` > response = client.get(f"https://you.com/api/streamingSearch", params = { > "q" : prompt, > "page" : page, > "count" : count, > "safeSearch"...

> @ODomWang where is you.py file? The original address is this `https://github.com/xtekky/gpt4free/blob/main/you/__init__.py` I renamed it to you.py

I copied ../you/__ init__. py to ../gui/you.py Local proxy port needs to be enabled, you need to use the proxy port in startup My port is 7890

> @ODomWang 用的v2rayN代理,加上ip和端口后 运行streamlit run streamlit_app.py An error occurred: failed to do request: Get "https://you.com/api/streamingSearch?q=%E4%BD%A0%E6%98%AF%E8%B0%81&page=1&count=10&safeSearch=Moderate&onShoppingPage=False&mkt=&responseFilter=WebPages%2CTranslations%2CTimeZone%2CComputation%2CRelatedSearches&domain=youchat&queryTraceId=5224fc07-8b2c-4ffd-85e4-f2c11cf06ca3&chat=%5B%5D": dial tcp 65.19.26.63:7890: connectex: A connection attempt failed because the connected party did not properly...

> Answer : > > \u5f88\u62b1\u6b49\uff0c\u6211\u65e0\u6cd5\u8fdb\u884c\u7ebf\u4e0b\u65c5\u6e38\u5b89\u6392\uff0c\u53ef\u4ee5\u4e3a\u60a8\u63d0\u4f9b\u76f8\u5173\u4fe1\u606f\u5e2e\u52a9\u60a8\u8ba1\u5212\u65c5\u6e38\u884c\u7a0b\u3002\u6e5b\u6c5f\u4f4d\u4e8e\u4e2d\u56fd\u5e7f\u4e1c\u7701\u7684\u897f\u90e8\u6d77\u5cb8\u7ebf\uff0c\u662f\u4e00\u4e2a\u7f8e\u4e3d\u7684\u6d77\u6ee8\u57ce\u5e02\uff0c\u6709\u8bb8\u591a\u503c\u5f97\u4e00\u6e38\u7684\u666f\u70b9\u548c\u7f8e\u98df\u3002\u60a8\u53ef\u4ee5\u524d\u5f80\u96f7\u5dde\u534a\u5c9b\u98ce\u666f\u533a\uff0c\u54c1\u5c1d\u5f53\u5730\u7684\u6d77\u9c9c\u7f8e\u98df\uff0c\u53c2\u89c2\u9ad8\u5dde\u5cad\u5357\u6c34\u4e61\u98ce\u60c5\u6587\u5316\u56ed\uff0c\u611f\u53d7\u5cad\u5357\u6587\u5316\u7684\u9b45\u529b\u3002\u53e6\u5916\uff0c\u6e5b\u6c5f\u8fd8\u6709\u8bb8\u591a\u5176\u5b83\u7684\u666f\u70b9\uff0c\u5982\u971e\u5c71\u516c\u56ed\u3001\u5927\u5751\u6587\u5316\u65c5\u6e38\u533a\u7b49\u3002\u5e0c\u671b\u8fd9\u4e9b\u4fe1\u606f\u80fd\u591f\u5e2e\u52a9\u5230\u60a8\u3002 ![image](https://user-images.githubusercontent.com/34358342/235113391-e5de6098-ec64-4a12-bdd6-a5c0d48394bc.png) > 这个地方进行编码格式转码 utf8_decode = answer.encode().decode("unicode_escape").replace('”}','').replace('"}','') st.caption("回复 :") st.markdown(utf8_decode)

Because my region cannot directly access OpenAI and some APIs, I need to add a proxy in the HTTP request to facilitate network communication

Thank you for your patient response. I am looking forward to the next version now

好了吗 我也是无法使用 安装截图 ![image](https://github.com/233boy/Xray/assets/34358342/7f8ac738-e050-467a-bb70-c25e45776bdd) clash截图