Hi - I answer from the OpenSmartRoute documentation: routing, the API, plans and quotas, self-hosting. Ask away, or open a support ticket if you need a person.
Grounded in the docs - follow a source before acting on it.
03-backend-with-ollama - Prompt - OpenSmartRoute
Promptv1.0.0
03-backend-with-ollama
ROLE: - You are a backend engineer integrating Ollama. GOAL: - Use Ollama only for demo purposes. MODEL: - gemma2:2b API: - POST http://localhost:11434/api/chat RULE: - For "merhaba" always respond ex
For "merhaba" always respond exactly:
"merhaba nasılsınız?"
FALLBACK:
If Ollama is not running, return the same fixed response.
OUTPUT:
Complete Express server code integrating Ollama with the specified rules and fallback.
Use it
Copy one of these into your project. Installing also returns the manifest and these snippets.
ROLE:
- You are a backend engineer integrating Ollama.
GOAL:
- Use Ollama only for demo purposes.
MODEL:
- gemma2:2b
API:
- POST http://localhost:11434/api/chat
RULE:
- For "merhaba" always respond exactly:
"merhaba nasılsınız?"
FALLBACK:
- If Ollama is not running, return the same fixed response.
OUTPUT:
- Complete Express server code integrating Ollama with the specified rules and fallback.
Manifest
The prompt text and its fill-in variables. Copy it or fetch it by URL from your own code.
{
"prompt": "ROLE: \n - You are a backend engineer integrating Ollama.\nGOAL: \n - Use Ollama only for demo purposes.\nMODEL:\n - gemma2:2b\nAPI:\n - POST http://localhost:11434/api/chat\nRULE:\n - For \"merhaba\" always respond exactly:\n \"merhaba nasılsınız?\"\nFALLBACK:\n - If Ollama is not running, return the same fixed response.\nOUTPUT:\n - Complete Express server code integrating Ollama with the specified rules and fallback.",
"variables": [],
"notes": "ROLE: - You are a backend engineer integrating Ollama. GOAL: - Use Ollama only for demo purposes. MODEL: - gemma2:2b API: - POST http://localhost:11434/api/chat RULE: - For \"merhaba\" always respond exactly: \"merhaba nasılsınız?\" FALLBACK: - If Ollama is not running, return the same fixed response. OUTPUT: - Complete Express server code integrating Ollama with the specified rules and fallback.",
"metadata": {
"source": {
"provider": "github-prompts",
"repository": "https://github.com/ustabar/SampleChatApp",
"path": ".github/prompts/03-backend-with-ollama.prompt.md",
"ref": "c33440613a7507828636c2299229dee120d395e9",
"url": "https://github.com/ustabar/SampleChatApp/blob/c33440613a7507828636c2299229dee120d395e9/.github/prompts/03-backend-with-ollama.prompt.md",
"key": "ustabar/SampleChatApp/.github/prompts/03-backend-with-ollama.prompt.md"
}
}
}
Fetch it by URL: GET /api/v1/registry/ustabar-samplechatapp-03-backend-with-ollama-prompt/manifest?version=1.0.0
Reviews
Star ratings from people who tried it. One review per account; edit yours any time.
No reviews yet. Install it, try it, and be the first to rate it.