feat: Add missing API endpoints and tool call detection#686
Open
DannySteffe wants to merge 1 commit into0xLazAI:mainfrom
Open
feat: Add missing API endpoints and tool call detection#686DannySteffe wants to merge 1 commit into0xLazAI:mainfrom
DannySteffe wants to merge 1 commit into0xLazAI:mainfrom
Conversation
|
@DannySteffe is attempting to deploy a commit to the AINUR Team on Vercel. A member of the Team first needs to authorize it. |
- Add OpenAI-compatible /v1/completions endpoint to inference server - Add /v1/embeddings endpoint for text embedding generation - Add /v1/models endpoint for model discovery and metadata - Implement tool call detection in LlamaCpp engine - Fix ToolCall and Function type exports for cross-crate usage - Add comprehensive documentation of changes Resolves TODO items in serve.rs and enhances LlamaCpp engine capabilities. These changes improve OpenAI API compatibility and enable structured function calling workflows.
Collaborator
|
The CI failed, could u pls fix it? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add Missing API Endpoints and Tool Call Detection
This PR closes major gaps in the LazAI/Alith inference stack by adding OpenAI-compatible endpoints and enabling full tool/function call detection in the LlamaCpp engine.
What’s New
API Endpoints (
serve.rs)/v1/completions— OpenAI-style text completions/v1/embeddings— embedding generation/v1/models— model discovery + metadataTool Calling (
llamacpp.rs)detect_tool_callsmethod with JSON-based function call parsingToolCall+FunctionobjectsSupport Updates
completion/mod.rsBUG_FIXES_SUMMARY.mdTesting
Impact
Stats
Files changed:
serve.rs,llamacpp.rs,completion/mod.rs, newBUG_FIXES_SUMMARY.mdProduction-ready and safe to merge.