-
Hello, Trying to make a call to GPT-4, basically, all is working well except the response I get is actually from GPT-3. Any idea what I am doing wrong? Q: Which GPT is this? npm install -S langchain import { ChatOpenAI } from "langchain/chat_models/openai";
import { HumanMessage } from "langchain/schema";
async function main () {
const chat = new ChatOpenAI({
modelName: "gpt-4",
temperature: 0,
openAIApiKey: "sk-****", // In Node.js defaults to process.env.OPENAI_API_KEY
maxTokens: 225,
//streaming: true
});
const response = await chat.call([
new HumanMessage(
"Which gpt is this?",
),
]);
console.log(response);
//Response:
//'As an AI developed by OpenAI, I am based on the GPT-3 model.
}
main (); |
Beta Was this translation helpful? Give feedback.
Answered by
devstein
Jul 18, 2023
Replies: 1 comment 1 reply
-
@yaronl3v I know it's confusing, but this is a standard response from GPT-4. The best way to sanity check if the GPT-4 is actually getting called is to look at your Open AI account usage page |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
yaronl3v
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@yaronl3v I know it's confusing, but this is a standard response from GPT-4. The best way to sanity check if the GPT-4 is actually getting called is to look at your Open AI account usage page