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

completions need update #145

Open
pannous opened this issue Jan 18, 2024 · 3 comments
Open

completions need update #145

pannous opened this issue Jan 18, 2024 · 3 comments

Comments

@pannous
Copy link

pannous commented Jan 18, 2024

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)
@SunburstEnzo
Copy link
Contributor

That's a great point, it looks like a lot of the text based models were deprecated a month ago so we should be using gpt-3.5-turbo-instruct instead – you should still be able to use it by passing the raw string in the mean time until it's added to Models

Screenshot 2024-02-04 at 5 39 24 pm

@kalafus
Copy link
Contributor

kalafus commented Feb 7, 2024

Options:
#166 updates the model, adds a deprecation warning.
#160 removes the model (due to frequent return of truncated responses; while the endpoint technically remains operational, i'm not sure what purposes it could still be useful for in its present state).

@neelin1
Copy link

neelin1 commented May 4, 2024

image I think response_format also needs to be added

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

4 participants