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

specifying the model name isn't working in the latest version #182

Closed
triptu opened this issue Jan 7, 2023 · 1 comment · Fixed by #184
Closed

specifying the model name isn't working in the latest version #182

triptu opened this issue Jan 7, 2023 · 1 comment · Fixed by #184

Comments

@triptu
Copy link

triptu commented Jan 7, 2023

Sample Code -

llm = OpenAI(temperature=0.7, model_name="text-curie-001")
llm_predictor = LLMPredictor(llm)
prompt_helper = PromptHelper.from_llm_predictor(self.llm_predictor)

index = GPTListIndex(documents, llm_predictor=self.llm_predictor, prompt_helper=self.prompt_helper)
index.query(prompt, response_mode="tree_summarize")

The breaking change seems to have happened in this commit. The response builder in query is created using the default davinci llm_predictor here instead of the passed in predictor. This is because query_runner doesn't pass in the llm_predictor while creating the query obj and sets it later.

@jerryjliu
Copy link
Collaborator

thanks for flagging this! taking a look

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

Successfully merging a pull request may close this issue.

2 participants