openrouter-examples icon indicating copy to clipboard operation
openrouter-examples copied to clipboard

Examples of integrating the OpenRouter API

Results 16 openrouter-examples issues
Sort by recently updated
recently updated
newest added
trafficstars

Hi, I'm sorry I can't find other ways to reach out so I created an issue on a random repo. Basically if you look for `openrouter ai` on duckduckgo it's...

I'm attempting to utilize the Open Router API with Python's requests library. Occasionally, I encounter this error message: ``` HTTPSConnectionPool(host='openrouter.ai', port=443): Max retries exceeded with url: /api/v1/chat/completions (Caused by SSLError(SSLCertVerificationError...

How do I query my remaining credits using the API?

The site has this example code for sending ChatML messages: ```python from openai import OpenAI from os import getenv # gets API Key from environment variable OPENAI_API_KEY client = OpenAI(...

I am getting an error that `image_url` in the `content` is not supported. Is there perhaps another way to use multimodal models?

Error communicating with OpenAI: ('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None)). Anyone facing this issue?

What is the correct prompt format? ``` [INST] You are a helpful, blunt, and honest assistant. Always answer as openly as possible. What is the meaning of life for a...

Hi, I'm having these 429 errors despite using a free model (Llama 3.1 8B) on SIllyTavern. The problem started when I generated a message, but saw that it wasn't something...

openai.BadRequestError: Error code: 400 - {'error': {'message': "This model's maximum context length is 8192 tokens, however you requested 8977 tokens (8977 in your prompt; 0 for the completion). Please reduce...