adamrushy / OpenAISwift

This is a wrapper library around the ChatGPT and OpenAI HTTP API
MIT License
1.6k stars 242 forks source link

Is gpt-3.5-turbo-16k model possible? #96

Open YamikoHikariX opened 12 months ago

YamikoHikariX commented 12 months ago

I have a working app using the 4k model. Is it possible to use OpenAI's gpt-3.5-turbo-16k model with this package?

(It's my first time posting an issue. Not sure if this belongs in issues.)

MarkHoath commented 11 months ago

not currently...

If you make a pull request, you just need to

change OpenAIModelType.swift

add another case to

public enum Chat: String {

    /// Most capable GPT-3.5 model and optimized for chat at 1/10th the cost of text-davinci-003. Will be updated with our latest model iteration.
    /// > Model Name: gpt-3.5-turbo
    case chatgpt = "gpt-3.5-turbo"

    /// Snapshot of gpt-3.5-turbo from March 1st 2023. Unlike gpt-3.5-turbo, this model will not receive updates, and will only be supported for a three month period ending on June 1st 2023.
    /// > Model Name: gpt-3.5-turbo-0301
    case chatgpt0301 = "gpt-3.5-turbo-0301"
}

ie case chatgpt16K = "gpt-3.5-turbo-16k"

and submit for merge

tingspain commented 9 months ago

Any news on this?