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

Refactor SplitText #1836

Merged
merged 1 commit into from
May 8, 2024
Merged

Refactor SplitText #1836

merged 1 commit into from
May 8, 2024

Conversation

rodrigosnader
Copy link
Contributor

Refactor LCModelComponent status message formatting for better readability

Refactor LCModelComponent status message formatting for better readability
@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label May 5, 2024
Copy link

vercel bot commented May 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
langflow ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 5, 2024 3:25am

@dosubot dosubot bot added the python Pull requests that update Python code label May 5, 2024
@@ -57,15 +57,15 @@ def build_status_message(self, message: AIMessage):
prompt_tokens = token_usage["prompt_tokens"]
total_tokens = token_usage["total_tokens"]
finish_reason = response_metadata["finish_reason"]
status_message = f"Tokens:\n- Input: {prompt_tokens}\nOutput: {completion_tokens}\nTotal Tokens: {total_tokens}\nStop Reason: {finish_reason}\nResponse: {content}"
status_message = f"Tokens:\nInput: {prompt_tokens}\nOutput: {completion_tokens}\nTotal Tokens: {total_tokens}\nStop Reason: {finish_reason}\nResponse: {content}"
Copy link
Contributor

Choose a reason for hiding this comment

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

The - should be added to the Output instead of removing from the Input because it will be in a lower level

@ogabrielluiz ogabrielluiz merged commit 03f781c into dev May 8, 2024
9 checks passed
nicoloboschi pushed a commit to datastax/ragstack-ai-langflow that referenced this pull request May 15, 2024
Refactor LCModelComponent status message formatting for better readability

(cherry picked from commit 03f781c)
nicoloboschi pushed a commit to datastax/ragstack-ai-langflow that referenced this pull request May 15, 2024
Refactor LCModelComponent status message formatting for better readability

(cherry picked from commit 03f781c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python Pull requests that update Python code size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants