reonokiy

Results 15 comments of reonokiy

按这个思路自己改了一下 https://github.com/sperjar/hugo-theme-meme/tree/dev ![image](https://user-images.githubusercontent.com/65524316/184308822-3d066b6a-d64b-432d-8662-19b715e08908.png)

> 我把你的dev分支clone到我的主题文件夹下,然后修改了站点配置文件config.toml,仍然不行,是否还需要修改其他地方呀 [example](https://github.com/sperjar/meme-examaple)

我需要直接在read_single_conf_with_lru_cache函数中对于环境变量进行格式的处理吗?这样感觉很多非str的类型都需要重新做一次判断,感觉会导致函数比较臃肿。 或者是新建一个config_env.py将环境变量转换成config.py的格式再在这里导入

应该修改完毕了,主要的逻辑在这里:https://github.com/binary-husky/gpt_academic/pull/662/commits/e5e3e0aa43d8db8b5d731dbabcb1f44d1fed7808#diff-71e5cf52ccb5b80caa00b86ae70d9e941a3e5cdb8279d7cb5c197c636cd79ee4R521 代码中给环境变量加了一个前缀是为了防止和其他已有项目之间造成冲突。 简单跑了一下这个测试是正常的,但是没有具体测试每个值的情况。 ```yaml # docker-compose.yml version: '3' services: gpt_academic: image: ghcr.io/sperjar/gpt_academic:master container_name: gpt_academic environment: GPT_ACADEMIC_API_KEY: your-api-key-here GPT_ACADEMIC_WEB_PORT: 10054 # more config ports: - 10054:10054 ``` 后续应该还要补充相关的README和文档,环境变量处理的部分和直接配置config.py有些不一致。

yaml格式没有特殊字符字符串不打引号也是可以的, 但是你的配置里`API_KEY`用引号了就不要多加空格了: ~`' your-api-key-here '`~ ```yaml version: '3' services: gpt_academic: image: fuqingxu/gpt_academic:no-local-llms container_name: gpt_academic environment: # see `config.py` all configuration options ! API_KEY: 'sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' # your-api-key-here WEB_PORT: '10054' proxies: '{"http":"http://198.18.0.1:7890",...

LangChain 有 Python 和 JS 的版本,可以和很多信息源集成 https://github.com/hwchase17/langchain https://github.com/hwchase17/langchainjs 可以在Browser运行 https://js.langchain.com/docs/getting-started/install#browser

Thank you for your reply. I think the most important thing for me is also the public profile page. The APIs I listed (like `search` and `lookup`) are just some...

and here: https://github.com/1Password/shell-plugins/blob/f03bbc885daf60554ed7b0d011efe0f3e1e48c7e/nix/shell-plugins.nix#L11