Find answers from the community

Updated 2 months ago

Gpt4

Hey y'all, when trying to use
Plain Text
service_context= ServiceContext.from_defaults(prompt_helper=prompt_helper, node_parser=node_parser, chunk_size=1024, llm=OpenAI(
            temperature=0.0, model="gpt-4", max_tokens=output_tokens))

while loading a Weaviate vector store I get this is a chat model and not supported in the v1/completions endpoint. Did you mean to use v1/chat/completions?

am I missing something?
L
1 comment
Did you import OpenAI from llamaindex or langchain?
Add a reply
Sign up and join the conversation on Discord