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

Picollm v1.2 #25

Merged
merged 5 commits into from
Nov 20, 2024
Merged

Picollm v1.2 #25

merged 5 commits into from
Nov 20, 2024

Conversation

matt200-ok
Copy link
Contributor

No description provided.

Comment on lines 329 to 334
completion = CompletionText(stop_phrases)

def llm_callback(text: str) -> None:
picollm_profiler.tock()
completion[0] += text
if not any(x in completion[0] for x in stop_phrases):
diff = completion.append(text)
if len(diff) > 0:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to be honest, the CompletionText class feels a bit convoluted to me and the API is a bit weird (append returning a diff). Can we simplify this into just a couple more lines of code from the original?

@laves laves merged commit 2a245e0 into main Nov 20, 2024
3 checks passed
@laves laves deleted the picollm-v1.2 branch November 20, 2024 18:00
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 this pull request may close these issues.

2 participants