transitive-bullshit / agentic

AI agent stdlib that works with any LLM and TypeScript AI SDK.
MIT License
16.07k stars 2.11k forks source link

It is not work when use gpt-4 model!ha ha #636

Closed HuangJT closed 1 month ago

HuangJT commented 7 months ago

Verify latest release

Verify webapp is working

Environment details

node.js version: v20.3.1

Describe the Bug

when I use model gpt-4,it always not work!

[hello@xxx temp]# npx chatgpt@latest --model gpt-4 "what is your GPT version?what time do your knowledge cutoff?"
 I am based on GPT-3, which is the latest version as of my knowledge cutoff in September 2021. 

And the bill at openAI console haved pay for gpt-4。It is so weird , until see the code
chatgpt-api.ts#L83

if (this._systemMessage === undefined) {
      const currentDate = new Date().toISOString().split('T')[0]
      this._systemMessage = `You are ChatGPT, a large language model trained by OpenAI. Answer as concisely as possible.\nKnowledge cutoff: 2021-09-01\nCurrent date: ${currentDate}`
    }
tedy5 commented 7 months ago

Looks like this is not issue with this library but rather OpenAI disabled gpt4.

Jakeroid commented 6 months ago

Probably the issue should be closed.

HuangJT commented 6 months ago

the default systemMessage shoud not include “Knowledge cutoff: 2021-09-01”,this will make the chatgpt answer “I am based on GPT-3”。 chatgpt-api.ts#L83

Probably the issue should be closed.

transitive-bullshit commented 1 month 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.