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 llm server apis #10

Merged
merged 38 commits into from
Mar 16, 2024
Merged

Refactor llm server apis #10

merged 38 commits into from
Mar 16, 2024

Conversation

dockhardman
Copy link
Owner

No description provided.

…uru.llm.config to languru.server.config_llm and moves the app.py file to separate files for the agent server (build_agent_app.py) and the LLM server (build_llm_app.py). Additionally, it creates separate configuration files for the agent server (config_agent.py) and the LLM server (config_llm.py).
- Add ChatCompletionHandler class to handle chat completion requests
- Handle chat completions for both LLM and Agent applications
- Handle streaming and non-streaming responses
- Refactor code to use new handler
- Import required modules and classes
Copy link
Owner Author

@dockhardman dockhardman left a comment

Choose a reason for hiding this comment

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

ok

Copy link

codecov bot commented Mar 16, 2024

Codecov Report

Attention: Patch coverage is 22.71016% with 616 lines in your changes are missing coverage. Please review.

Project coverage is 46.85%. Comparing base (90458f2) to head (4e9b761).

Files Patch % Lines
languru/server/api/v1/test_completions.py 0.00% 75 Missing ⚠️
languru/server/api/v1/test_chat.py 0.00% 74 Missing ⚠️
languru/server/api/v1/test_model.py 0.00% 68 Missing ⚠️
languru/server/api/v1/model.py 24.69% 61 Missing ⚠️
languru/server/api/v1/test_embeddings.py 0.00% 42 Missing ⚠️
languru/server/api/v1/test_moderations.py 0.00% 41 Missing ⚠️
languru/server/main.py 44.28% 39 Missing ⚠️
languru/server/api/v1/chat.py 29.78% 33 Missing ⚠️
languru/server/api/v1/completions.py 29.78% 33 Missing ⚠️
languru/cli/main.py 0.00% 27 Missing ⚠️
... and 8 more
Additional details and impacted files
@@            Coverage Diff             @@
##           master      #10      +/-   ##
==========================================
+ Coverage   40.32%   46.85%   +6.53%     
==========================================
  Files          33       40       +7     
  Lines        1312     1731     +419     
==========================================
+ Hits          529      811     +282     
- Misses        783      920     +137     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dockhardman dockhardman merged commit 7058e35 into master Mar 16, 2024
2 of 3 checks passed
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.

None yet

1 participant