with OpenRouter and LiveKit?
Emit new event for LiveKit room activities via webhook. See the documentation
Returns a list of models available through the API. See the documentation
Create a new ingress from url in LiveKit. See the documentation
Send a chat completion request to a selected model. See the documentation
Send a completion request to a selected model (text-only format) See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    openrouter: {
      type: "app",
      app: "openrouter",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://openrouter.ai/api/v1/parameters/openai/o1`,
      headers: {
        Authorization: `Bearer ${this.openrouter.$auth.api_key}`,
      },
      params: {
        provider: `OpenAI`,
      },
    })
  },
})
import { RoomServiceClient } from 'livekit-server-sdk'; 
export default defineComponent({
  props: {
    livekit: {
      type: "app",
      app: "livekit",
    }
  },
  async run({steps, $}) {
    const svc = new RoomServiceClient(
      this.livekit.$auth.project_url,
      this.livekit.$auth.api_key,
      this.livekit.$auth.secret_key);
    return await svc.listRooms();
  },
})