# yaml-language-server: $schema=https://schema.zeabur.app/template.json
apiVersion: zeabur.com/v1
kind: Template
metadata:
    name: Herm-Studio/StakeVladDracula
spec:
    description: StakeVladDracula pierces all. (OpenAi/Gemini/Groq) Deploy
    coverImage: https://repository-images.githubusercontent.com/763552311/e8577328-32e3-4e72-b81e-a9d2670c9d1c
    icon: https://pub-df18f8d793d24469bf40f524b1d360b4.r2.dev/image%202.png
    tags:
        - API
        - Automation
        - Tool
        - Starter
    readme: "## Deploy\n\n### Vercel\n\nRecommended deployment is with Vercel. But you can deploy it anywhere you want.\n\n[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/Herm-Studio/StakeVladDracula)\n\n### Netlify\n\nYou can also deploy it with Netlify.\n\n[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/Herm-Studio/StakeVladDracula)\n\n> [!NOTE]\n> This project is an experimental one. While it has been optimized, caution is still advised, and any consequences of use are at your own risk!\n\n## How to use\nJust deploy the project and you are ready to go.\n\n### OpenAI\nfor **OpenAI** just change the `baseURL` from `https://api.openai.com/v1` to `YOUR_DEPLOYED_URL/v1`\n\nfor example if you deployed the project to `https://stake-vlad-dracula.vercel.app` then change the `baseURL` to `https://stake-vlad-dracula.vercel.app/v1`.\n\n```diff\nimport OpenAI from 'openai';\n\nconst openai = new OpenAI({\n  apiKey: 'YOUR_API_KEY sk-XXXXXX-XXXXXX-XXXXXX-XXXXXX',\n  // change the baseURL to your deployed URL, for example: https://stake-vlad-dracula.vercel.app/v1\n+ baseURL: 'https://stake-vlad-dracula.vercel.app/v1',\n});\n```\n\n### Gemini  \nfor **Gemini** change `https://generativelanguage.googleapis.com/v1beta` to `YOUR_DEPLOYED_URL/v1beta`\n\n\n```diff\nexport API_KEY=\"YOUR_API_KEY\"\n- export BASE_URL=\"https://generativelanguage.googleapis.com/v1beta\"\n+ export BASE_URL=\"YOUR_DEPLOYED_URL/v1beta\"\n\ncurl https://${BASE_URL}/models/gemini-pro:generateContent?key=${API_KEY} \\\n    -H 'Content-Type: application/json' \\\n    -X POST \\\n    -d '{\n      \"contents\": [{\n        \"parts\":[{\n          \"text\": \"Write a story about a magic backpack.\"}]}]}' 2> /dev/null\n```\n\n### Groq  \nfor **Groq** change `https://api.groq.com/openai/v1` to `YOUR_DEPLOYED_URL/openai/v1`\n\n\n```diff\nexport API_KEY=\"YOUR_API_KEY\"\n- export BASE_URL=\"https://api.groq.com/openai/v1\"\n+ export BASE_URL=\"YOUR_DEPLOYED_URL/openai/v1\"\n\ncurl https://${BASE_URL}/chat/completions \\\n    -H \"Authorization: Bearer $GROQ_API_KEY\" \\\n    -H 'Content-Type: application/json' \\\n    -X POST \\\n    -d '{\"messages\": [{\"role\": \"user\", \"content\": \"Explain the importance of low latency LLMs\"}], \"model\": \"mixtral-8x7b-32768\"}'\n```\n\n## Give it a Star\nIf you found this Implementation helpful or used it in your Projects, do give it a star. Thanks! \U0001F31F\n\n[![Star History Chart](https://api.star-history.com/svg?repos=Herm-Studio/StakeVladDracula&type=Timeline)](https://star-history.com/#Herm-Studio/StakeVladDracula&Timeline)\n\n\n> [!TIP]\n>  You can use GitHub Action to keep the forked repository up to date with the original repository. For more information, see [Syncing a fork.](./docs/sync.md)"
    services:
        - name: Next.Js
          template: GIT
          spec:
            source:
                source: GITHUB
                repo: 763552311
                branch: main
            env:
                FORCE_CONTAINERIZED:
                    default: "1"
