PrefectHQ / marvin

✨ Build AI interfaces that spark joy
https://askmarvin.ai
Apache License 2.0
5.27k stars 347 forks source link

Support new openai available model: gpt-3.5-turbo-instruct #585

Open flolas opened 1 year ago

flolas commented 1 year ago

First check

Describe the current behavior

When using new model, marvin fails.

openai.error.InvalidRequestError: This is not a chat model and thus not supported in the v1/chat/completions endpoint. Did you mean to use v1/completions?

Describe the proposed behavior

Use marvin with gpt-3.5-turbo-instruct.

Example Use

No response

Additional context

No response

aaazzam commented 1 year ago

Hey @flolas! Sounds good. Technically anthropic is an instruct model, so a lot of the machinery there will carry through.