MCPcopy Create free account
hub / github.com/microsoft/TypeChat / makeResponsesAPIResponse

Function makeResponsesAPIResponse

typescript/tests/model.test.mjs:32–50  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

30}
31
32function makeResponsesAPIResponse(text) {
33 return {
34 ok: true,
35 status: 200,
36 headers: { get: (_name) => null },
37 json: () =>
38 Promise.resolve({
39 id: "resp-123",
40 object: "response",
41 output: [
42 {
43 type: "message",
44 role: "assistant",
45 content: [{ type: "output_text", text }],
46 },
47 ],
48 }),
49 };
50}
51
52function makeErrorResponse(status, statusText, retryAfterSec = null) {
53 return {

Callers 1

model.test.mjsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…