MCPcopy Create free account
hub / github.com/nat/openplayground / createTextCompletionRequest

Function createTextCompletionRequest

app/src/app.tsx:216–223  ·  view source on GitHub ↗
({prompt, models})

Source from the content-addressed store, hash-verified

214 });
215
216 function createTextCompletionRequest({prompt, models}) {
217 const url = "/api/inference/text/stream";
218 const payload = {
219 prompt: prompt,
220 models: models,
221 };
222 return createCompletionRequest(url, payload, textCompletionSubscribers);
223 }
224
225 function createChatCompletionRequest(prompt, model) {
226 const url = "/api/inference/chat/stream";

Callers

nothing calls this directly

Calls 1

createCompletionRequestFunction · 0.85

Tested by

no test coverage detected