Skip to content

Commit

Permalink
Remove inline from "inline completion" as per review request
Browse files Browse the repository at this point in the history
  • Loading branch information
krassowski committed Jan 24, 2024
1 parent be4345f commit b235e0f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/jupyter-ai-magics/jupyter_ai_magics/providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,9 +340,9 @@ def get_chat_prompt_template(self) -> PromptTemplate:
+ CHAT_DEFAULT_TEMPLATE,
)

def get_inline_completion_prompt_template(self) -> PromptTemplate:
def get_completion_prompt_template(self) -> PromptTemplate:
"""
Produce a prompt template optimised for code or text completion.
Produce a prompt template optimised for inline code or text completion.
The template should take variables: prefix, suffix, language, filename.
"""
if self.is_chat_provider:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def create_llm_chain(
model_parameters = self.get_model_parameters(provider, provider_params)
llm = provider(**provider_params, **model_parameters)

prompt_template = llm.get_inline_completion_prompt_template()
prompt_template = llm.get_completion_prompt_template()

self.llm = llm
self.llm_chain = prompt_template | llm | StrOutputParser()
Expand Down

0 comments on commit b235e0f

Please sign in to comment.