Skip to content

Commit

Permalink
chore: typng
Browse files Browse the repository at this point in the history
  • Loading branch information
phil65 committed Jan 30, 2025
1 parent 8bc295b commit 53b276e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/llmling_agent_commands/completers.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,13 @@ async def get_completions(
return

# If after provider:, get prompts from that provider
provider, partial = current.split(":", 1)
if provider == "builtin" or not provider:
_provider, partial = current.split(":", 1)
if _provider == "builtin" or not _provider:
# Complete from system prompts
for name in manifest.prompts.system_prompts:
if name.startswith(partial):
yield CompletionItem(
text=f"{provider}:{name}" if provider else name,
text=f"{_provider}:{name}" if provider else name,
metadata="Builtin prompt",
kind="choice",
)

0 comments on commit 53b276e

Please sign in to comment.