Dawei Ma

Results 24 comments of Dawei Ma

> @ankitb82 As a sanity check, can you put this at the top of your code? (Obviosuly, use your real key when you copy it in 👍) > > ```...

Thanks, @logan-markewich when executing the code in the terminal and `export OPENAI_API_KEY=my_key` works!

Hi @jerryjliu If the `ChatGPTLLMPredictor` will be deprecated, how can we custom the chatGPT prompt by using `langchain's LLM wrapper`? Could you give a simple demo to show? Thanks!

> > > My idea is to get the `context_str` and store it, if the response is cut, I can give the context and history sentences to let the chatGPT...

我怀疑是因为上下文包含英文太多了导致的?还有可能就是 prompt 模版选择错误导致的,因为这里有个逻辑是自动根据语言选择中英文模版🤔

你有没有试过在 chatgpt 网页中让它用中文但回复的是英文这种情况?感觉是 chatgpt 的问题啊

有可能,五月份充写 gpt 模块,用 langchain 试试,gpt_index 的确不太灵活 bug 还多😅

Hi @mrbbot Thanks, but the version is 3.2.

Hi, @mrbbot Thanks! package.json file: ```json { "name": "my-invest-gateway", "version": "0.0.1", "private": true, "main": "src/index.ts", "scripts": { "deploy": "wrangler deploy src/index.ts", "dev": "wrangler dev src/index.ts --local", "test": "jest" }, "dependencies":...

Thanks @mrbbot But it still can't test 😢 ``` > [email protected] test > jest console.error service core:user:my-invest-gateway: Uncaught SyntaxError: Cannot use import statement outside a module at Interface. (node_modules/miniflare/src/runtime/index.ts:58:39) console.error...