Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support gpt4 #3

Closed
telegreen opened this issue Apr 12, 2023 · 1 comment
Closed

Support gpt4 #3

telegreen opened this issue Apr 12, 2023 · 1 comment

Comments

@telegreen
Copy link

" When msg.topic is set to gpt4:
[Required] msg.payload should be a well-written prompt that provides enough information for the model to know what you want
and how it should respond. Its success generally depends on the complexity of the task and quality of your prompt."

When I set in node msg.topic to "gpt4" and make request :

{"message":"The model: gpt-4 does not exist",
"type":"invalid_request_error",
"param":null,"
code":"model_not_found"}

So GPT-4 model is not supported?

@HaroldPetersInskipp
Copy link

If you receive "The model: gpt-4 does not exist" then you probably do not have access to that model. You can use the following script to check what models are available to a specific API KEY:

const { Configuration, OpenAIApi } = require("openai");

async function listModels() {
    const configuration = new Configuration({
      apiKey: "YOUR KEY HERE",
    });
    const openai = new OpenAIApi(configuration);
    const response = await openai.listModels();
    console.log(response.data.data);
}

listModels();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants