mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-10-01 18:18:19 +00:00
GPT4All API Scaffolding. Matches OpenAI OpenAPI spec for chats and completions (#839)
* GPT4All API Scaffolding. Matches OpenAI OpenAI spec for engines, chats and completions * Edits for docker building * FastAPI app builds and pydantic models are accurate * Added groovy download into dockerfile * improved dockerfile * Chat completions endpoint edits * API uni test sketch * Working example of groovy inference with open ai api * Added lines to test * Set default to mpt
This commit is contained in:
8
gpt4all-api/gpt4all_api/app/api_v1/api.py
Normal file
8
gpt4all-api/gpt4all_api/app/api_v1/api.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from api_v1.routes import chat, completions, engines
|
||||
from fastapi import APIRouter
|
||||
|
||||
router = APIRouter()
|
||||
|
||||
router.include_router(chat.router)
|
||||
router.include_router(completions.router)
|
||||
router.include_router(engines.router)
|
Reference in New Issue
Block a user