Find answers from the community

Updated 3 months ago

Azure

Hi,
I'm facing an issue when using ChatOpenAI with gpt-35.
It was working fine until yesterday but from the 0.6.4 version it seem it is broken.
Plain Text
openai.api_type = "azure"
openai.api_version = "2022-12-01"
openai.api_base =  "...."
openai.api_key = "...."
deployment_name = "gpt-35-turbo"
llm = ChatOpenAI(model_name=deployment_name)
llm_predictor = LLMPredictor(llm=llm)

embedding_model = LangchainEmbedding(HuggingFaceInstructEmbeddings(    model_name="hkunlp/instructor-xl",    model_kwargs = {'device': 'cuda:1'}))

# Define prompt helper
prompt_helper = PromptHelper(max_input_size=max_input_size, num_output=num_output,                             max_chunk_overlap=CHUNK_OVERLAP_LLM,                             chunk_size_limit=max_input_size)

service_context = ServiceContext.from_defaults(llm_predictor, prompt_helper, embedding_model)


I'm using this with the latest GPT Document Summary index
Plain Text
response_synthesizer = ResponseSynthesizer.from_args(response_mode="tree_summarize", use_async=False)
doc_summary_index = GPTDocumentSummaryIndex.from_documents(documents,    service_context=service_context,    response_synthesizer=response_synthesizer)


And I am getting back the error
Plain Text
Must provide an 'engine' or 'deployment_id' parameter to create a <classย 
'openai.api_resources.completion.Completion'>


Similar to what is seen here: https://github.com/jerryjliu/llama_index/issues/2129

Is somebody facing the same issue?
L
F
4 comments
I noticed quite a few azure related prs recently

This one is not officially releases just yet
https://github.com/jerryjliu/llama_index/pull/3140

Looks like your issue will ve fixed in the next version, or you can install from source ๐Ÿ‘
Hey @Logan M getting this error while using Question Generation (https://gpt-index.readthedocs.io/en/latest/examples/evaluation/QuestionGeneration.html) with azure API.
I had a conversation about this in another thread (about azure, but not specifically question generation). It seemed like the order that you define the azure LLM and azure embeddings matters. Maybe check out this thread https://discord.com/channels/1059199217496772688/1109441127918096424/1109597040327016468
Thanks for this will check out soon!
Add a reply
Sign up and join the conversation on Discord