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

Can't use Gpt4 models #448

Open
pacoBOeT opened this issue Mar 1, 2024 · 0 comments
Open

Can't use Gpt4 models #448

pacoBOeT opened this issue Mar 1, 2024 · 0 comments

Comments

@pacoBOeT
Copy link

pacoBOeT commented Mar 1, 2024

I'm trying to use spacy with gpt4-turbo, but there is no way for me to run anything as I always get the same error:

spacy_llm/models/rest/openai/model.py", line 67, in _verify_auth
    raise ValueError(
ValueError: The specified model 'gpt-4-turbo-0125' is not available. Choices are: ['babbage-002', 'dall-e-2', 'dall-e-3', 'davinci-002', 'gpt-3.5-turbo', 'gpt-3.5-turbo-0125', 'gpt-3.5-turbo-0301', 'gpt-3.5-turbo-0613', 'gpt-3.5-turbo-1106', 'gpt-3.5-turbo-16k', 'gpt-3.5-turbo-16k-0613', 'gpt-3.5-turbo-instruct', 'gpt-3.5-turbo-instruct-0914', 'text-embedding-3-large', 'text-embedding-3-small', 'text-embedding-ada-002', 'tts-1', 'tts-1-1106', 'tts-1-hd', 'tts-1-hd-1106', 'whisper-1']

I'm using spacy-llm version 0.7.1 (presumably the latest) and in my spacy config.cfg file I have:

[nlp]
lang = "en"
pipeline = ["llm"]

[components]

[components.llm]
factory = "llm"

[components.llm.task]
@llm_tasks = "spacy.TextCat.v3"
labels = ["COMPLIMENT", "INSULT"]

[components.llm.model]
@llm_models = "spacy.GPT-4.v3"
name = "gpt-4-turbo-0125"

Any clue of what's happening? Thank you!

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

1 participant