truegleai/deepseek-coder-6b-api
0
CodeLlama API Server
OpenAI-compatible API server running CodeLlama 7B Instruct for code generation.
Features
- OpenAI-compatible
/v1/chat/completionsendpoint - OpenAI-compatible
/v1/completionsendpoint - Simple
/generateendpoint for quick testing - No rate limiting - designed for unlimited usage
- Up to 4096 token context and responses
- CORS enabled for MCP server integration
API Endpoints
Chat Completions (Recommended)
curl -X POST https://truegleai-deepseek-coder-6b-api.hf.space/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "codellama-7b-instruct",
"messages": [
{"role": "user", "content": "Write a Python function to reverse a string"}
],
"max_tokens": 512
}'Simple Generation
curl -X POST https://truegleai-deepseek-coder-6b-api.hf.space/generate \
-H "Content-Type: application/json" \
-d '{
"prompt": "Write a Python function to reverse a string",
"max_tokens": 512
}'MCP Server Integration
Use this Space as a backend for your MCP server by pointing it to:
https://truegleai-deepseek-coder-6b-api.hf.spaceThe API is OpenAI-compatible, so you can use it anywhere you'd use OpenAI's API.
