OpenAI icon indicating copy to clipboard operation
OpenAI copied to clipboard

completions need update

Open pannous opened this issue 5 months ago • 3 comments

Trying completions from Readme:

The model `text-davinci-003` has been deprecated, learn more here: https://platform.openai.com/docs/deprecations

2024-01-04	text-davinci-003	$0.0200 / 1K tokens	REPLACEMENT: gpt-3.5-turbo-instruct

let query = CompletionsQuery(model: .gpt3_5Turbo_1106, prompt: "SELECT * FR", maxTokens: 400) 
This is a chat model and not supported in the v1/completions endpoint. Did you mean to use v1/chat/completions?

gpt-3.5-turbo-instruct works but has no static let in Model yet:
let query = CompletionsQuery(model: "gpt-3.5-turbo-instruct", prompt: "SELECT * FR", maxTokens: 400)

pannous avatar Jan 18 '24 13:01 pannous