book-by-ai icon indicating copy to clipboard operation
book-by-ai copied to clipboard

Generate high-quality books with AI

Results 8 book-by-ai issues
Sort by recently updated
recently updated
newest added

使用`gpt-3.5-turbo-16k`部分情况下会有这个报错,看起来是部分情况下模型返回没有按照 json 格式。 ``` SyntaxError: Unexpected number in JSON at position 48 at JSON.parse () at canJsonParse (file:///Users/NAME/Code/Github/book-by-ai/lib/functions_cn.js:132:14) at extractJSON (file:///Users/NAME/Code/Github/book-by-ai/lib/functions_cn.js:117:24) at gen (file:///Users/NAME/Code/Github/book-by-ai/lib/functions_cn.js:70:24) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async GenBook.sections...

因为会从互联网搜索内容进行写作,那也可以用于一般情况的主题搜索和报告了。 但这种一般要求要严谨点,可否增加temprature控制变量。或者像new bing那样,给出精准,平衡,创意 三钟写作模式。

.env 用的 aiapi配置 # AiAPI OPENAI_API_KEY=sk-1234567890abcdef1234567890abcdef OPENAI_API_ENDPOINT=http://172.17.128.1:3456 OPENAI_API_MODEL=gpt-3.5-turbo-16k http://172.17.128.1:3456 这个地址是在AiAPI的 about里复制的,也是通的 wsl下 /mnt/d/book/book-by-ai# curl http://172.17.128.1:3456 AiAPI server works! 后来 换成 http://192.168.0.101:3456 也是通的 ,但都是超时。 用的美国vpn ,claude.ai 可以正常访问 sessionkey 已复制 ![image](https://github.com/easychen/book-by-ai/assets/4454836/97bc08b2-a517-46b0-bc30-1a28962cb4dc) 输入了描述后,等半天:...

``` Error: ChatGPT error 400: { "error": { "message": "This model's maximum context length is 16385 tokens. However, your messages resulted in 19500 tokens. Please reduce the length of the...

win11,wsl2,ubuntu已经安装chrome,win11也安装了。 具体报错如下: book_cn@write [] 请稍候,正在发起搜索请求… file:///home/pico/BBA/node_modules/@puppeteer/browsers/lib/esm/launch.js:268 reject(new Error([ ^ Error: Failed to launch the browser process! spawn /Applications/Google Chrome.app/Contents/MacOS/Google Chrome ENOENT TROUBLESHOOTING: https://pptr.dev/troubleshooting at ChildProcess.onClose (file:///home/pico/BBA/node_modules/@puppeteer/browsers/lib/esm/launch.js:268:24) at ChildProcess.emit (node:events:514:28) at...

Response { size: 0, timeout: 0, [Symbol(Body internals)]: { body: PassThrough { _readableState: [ReadableState], _events: [Object: null prototype], _eventsCount: 2, _maxListeners: undefined, _writableState: [WritableState], allowHalfOpen: true, [Symbol(kCapture)]: false, [Symbol(kCallback)]: null...

看这个终端问题貌似是路径错了,os:Windows 10 ![image](https://github.com/easychen/book-by-ai/assets/56955072/7457df58-d2d7-4e6f-ad7a-c30b7160597a)