Skip to content

How to get OpenRouter config to work? #247

Answered by bogorad
misaelvillaverde asked this question in Q&A
Discussion options

You must be logged in to vote
          providers = {
            openai = {
              disable = true,
            },
            openrouter = {
              endpoint = "https://openrouter.ai/api/v1/chat/completions",
              secret = os.getenv("GP_NVIM_KEY") or { "rbw", "get", "GP_NVIM_KEY" },
            },
            groq = {
              endpoint = "https://api.groq.com/openai/v1/chat/completions",
              secret = os.getenv("GROQ_API_KEY") or { "rbw", "get", "GROQ_API_KEY" },
            },
            hyperbolic = {
              endpoint = "https://api.hyperbolic.xyz/v1/chat/completions",
              secret = os.getenv("HYPERBOLIC_API_KEY") or { "rbw", "get", "HYPERBOLIC_API_KEY" },
       …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@misaelvillaverde
Comment options

Answer selected by misaelvillaverde
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants