I noticed that only selected OpenRouter models are available for PromptingTools.jl. How to use others e.g. the free ones for testing like openai/gpt-oss-120b:free?
You should be able to use any openrouter model, since they can use OpenAI chat completions api.
The directions are in Using MistralAI API and other OpenAI-compatible APIs, where you insert your api key and the openrouter url for the model you want to use.
Indeed, in fact there is OpenRouterOpenAISchema() to make it easier, here’s an example:
api_key = ENV["OPENROUTER_API_KEY"]
prompt = "Say hi!"
msg = aigenerate(PT.OpenRouterOpenAISchema(), prompt; model="openai/gpt-oss-120b:free", api_key)
Thanks @apo383 for the pointer!