Skip to content

support fragments plugin for Python api #914

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

Open
kj-9 opened this issue Apr 12, 2025 · 0 comments
Open

support fragments plugin for Python api #914

kj-9 opened this issue Apr 12, 2025 · 0 comments

Comments

@kj-9
Copy link

kj-9 commented Apr 12, 2025

seems like fragments plugin is not work for python api at current llm version.

with

  • "llm==0.24.2"
  • "llm-hacker-news==0.1"
import llm
model = llm.get_model()
prompt = "Summarize this Hacker News thread"
response = model.prompt(prompt, fragments=['hn:43632049'])

response is asking me to provide actual hacker news comments, not comments' id.

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

No branches or pull requests

1 participant