Hi Folks, a LiveKit question regarding LLM calls:
session = AgentSession(
llm=openai.LLM.with_azure(model="gpt-4o-mini"),
stt = ...
tts=...
vad=silero.VAD.load(),
_turn_detection_=MultilingualModel(),
)
The example code above is everywhere in the samples provided on the LK site. It lets me call an LLM provided by Azure, in this case. How can I make a call to my own LLM, which is behind an API like:
const response = await fetch(MY_LLM_URL, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'xxx'
},
body: JSON.stringify({
"thread_id": this.uuidv4()
}),
});
Thanks, I appreciate your response!