transitive-bullshit / agentic

AI agent stdlib that works with any LLM and TypeScript AI SDK.
https://agentic.so
MIT License
16.22k stars 2.12k forks source link

SyntaxError: Unexpected non-whitespace character after JSON at position 4 #555

Closed seckingyo closed 3 months ago

seckingyo commented 1 year ago

Verify latest release

Verify webapp is working

Environment details

node v20

Describe the Bug

SyntaxError: Unexpected non-whitespace character after JSON at position 4

while using

import { ChatGPTUnofficialProxyAPI } from '../src'

Jxells commented 1 year ago

出现了同样的问题

transitive-bullshit commented 3 months ago

This project is undergoing a major revamp; closing out old issues as part of the prep process.

The chatgpt package is pretty outdated at this point. I recommend that you use the openai package or the openai-fetch package instead.