I've added my api key as the Authorization header (eg. "Bearer sk-or-v1-3...") and everything else seems fine. The endpoint is "https://openrouter.ai/api/v1/chat/completions". I've serialised the Request object fine using a Prompt property, etc. Any ideas?
Here's what the Request object looks like, serialised: "{"messages":null,"prompt":"You are an expert fiction writer. Give me 10 story ideas for a cozy mystery.","model":"mistralai/mistral-7b-instruct","logit_bias":null,"max_tokens":null,"response_format":null,"seed":null,"stop":null,"stream":null,"temperature":0.7,"top_p":0.7,"top_k":null,"frequency_penalty":null,"presence_penalty":null,"tools":null,"tool_choice":null,"transforms":null,"models":null,"route":null}"