Log in
Log into community
Find answers from the community
View all posts
Related posts
Did this answer your question?
π
π
π
Powered by
Hall
Inactive
Updated 8 months ago
0
Follow
Welp here comes the request
Welp here comes the request
Inactive
0
Follow
d
drewskidang
8 months ago
Β·
Welp here comes the request
Attachment
L
d
11 comments
Share
Open in Discord
L
Logan M
8 months ago
you can specify
OpenAI(model="gpt-4-turbo")
-- it should already work
L
Logan M
8 months ago
You might have to do
pip install -U llama-index-llms-openai
though
d
drewskidang
8 months ago
oh wow okay
d
drewskidang
8 months ago
dang llama-index the op
d
drewskidang
8 months ago
uhhh
d
drewskidang
8 months ago
TypeError: OpenAI.
init
() got an unexpected keyword argument 'model'
L
Logan M
8 months ago
Sus
L
Logan M
8 months ago
That is 100% a valid kwarg (has been for a long time)
https://github.com/run-llama/llama_index/blob/9e40a9de4058728bf1b99f8613903bd022db210a/llama-index-integrations/llms/llama-index-llms-openai/llama_index/llms/openai/base.py#L183
How did you import it?
d
drewskidang
8 months ago
i thought i deleted the comment lol
d
drewskidang
8 months ago
i accidently imported
Plain Text
Copy
from openai import OpenAI
L
Logan M
8 months ago
lol good catch
Add a reply
Sign up and join the conversation on Discord
Join on Discord