#Is an 8 second response time normal for this request, if not how can I speed it up?

3 messages · Page 1 of 1 (latest)

cyan pecan
#

In general my requests take a long time to complete, so I created a simple request as a baseline and this takes about 8 seconds. Just wondering if this is typical when accessing ChatGPT via API

const configuration = new Configuration({
    apiKey: apiKey
});

const openai = new OpenAIApi(configuration);
let prompt = 'What is a dinosaur';

const conversation = [
    {
      role: ChatCompletionRequestMessageRoleEnum.System,
      content: 'You are a helpful assistant',
    },
    {
      role: ChatCompletionRequestMessageRoleEnum.User,
      content: prompt,
    },
];

const data = {
    model: 'gpt-3.5-turbo',
    messages: conversation,
};

const completions = await openai.createChatCompletion(data);
thorn quiver
#

Also keep in mind that they just reduced the pricing on the gpt-3.5-turbo model by 25% so server traffic will likely elevated as usage increases