View Source LlmComposer.Providers.OpenRouter (llm_composer v0.13.0)

Provider implementation for OpenRouter

OpenRouter API is very similar to Open AI API, but with some extras like model fallback.

Summary

Functions

Link to this function

get_base_url(opts \\ [])

View Source
@spec get_base_url(keyword()) :: binary()
Link to this function

run(messages, system_message, opts)

View Source

Reference: https://openrouter.ai/docs/api-reference/chat-completion