Skip to content

feat(llm): support log_block in RAG platform & rest-api#110

Merged
imbajin merged 31 commits intoapache:mainfrom
diya-he:main
Nov 16, 2024
Merged

feat(llm): support log_block in RAG platform & rest-api#110
imbajin merged 31 commits intoapache:mainfrom
diya-he:main

Conversation

@diya-he
Copy link
Contributor

@diya-he diya-he commented Nov 11, 2024

curl command for rolling logs in cmd:

curl -X POST "http://127.0.0.1:8001/logs" -H "Content-Type: application/json" \
-H "Authorization: Bearer 123456" \
-d "{\"log_token\": \"000000\", \"log_file\": \"llm-server.log\"}"

@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Nov 11, 2024
@github-actions github-actions bot added the llm label Nov 11, 2024
@dosubot dosubot bot added the enhancement New feature or request label Nov 11, 2024
@imbajin
Copy link
Member

imbajin commented Nov 13, 2024

merge it after #111 (need update the code)

@dosubot dosubot bot added size:XL This PR changes 500-999 lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels Nov 13, 2024
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:XL This PR changes 500-999 lines, ignoring generated files. labels Nov 14, 2024
def read_llm_server_log():
try:
with open("logs/llm-server.log", "r") as f:
return f.read()
Copy link
Member

Choose a reason for hiding this comment

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

lines = file.readlines()[-num_lines:] (maybe?)

Copy link
Member

@imbajin imbajin left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Nov 16, 2024
@imbajin imbajin changed the title support log output in RAG platform in ui and curl command feat(llm): support log_block in RAG platform & rest-api Nov 16, 2024
@imbajin imbajin merged commit 41412a6 into apache:main Nov 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request lgtm This PR has been approved by a maintainer llm size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants