({prompt, models})
| 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"; |
nothing calls this directly
no test coverage detected