RomanHotsiy / commitgpt

Automatically generate commit messages using ChatGPT
1.56k stars 91 forks source link

This is a chat model and not supported in the v1/completions endpoint. Did you mean to use v1/chat/completions?' #43

Open TheKnarf opened 5 months ago

TheKnarf commented 5 months ago

With config:

{
  "model": "gpt-3.5-turbo",
  "temperature": 0.5,
  "maxTokens": 2048
}

I get the following error message:

  data: {
    error: {
      message: 'This is a chat model and not supported in the v1/completions endpoint. Did you mean to use v1/chat/completions?',
      type: 'invalid_request_error',
      param: 'model',
      code: null
    }
  }