Skip to content

Commit d7f079e

Browse files
committed
feat: add VCR tapes for novita
1 parent 322de65 commit d7f079e

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

packages/inference/test/tapes.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7025,5 +7025,45 @@
70257025
"content-type": "image/jpeg"
70267026
}
70277027
}
7028+
},
7029+
"75477fa339f5e9db4fa105cf2d0f05d61e96726386478b8e3af8c8fda94480f5": {
7030+
"url": "https://api.novita.ai/v3/openai/chat/completions",
7031+
"init": {
7032+
"headers": {
7033+
"Content-Type": "application/json"
7034+
},
7035+
"method": "POST",
7036+
"body": "{\"messages\":[{\"role\":\"user\",\"content\":\"Complete this sentence with words, one plus one is equal \"}],\"model\":\"meta-llama/llama-3.1-8b-instruct\"}"
7037+
},
7038+
"response": {
7039+
"body": "{\"id\":\"chatcmpl-1266fc7405294c57ac180da9ee3f5e31\",\"object\":\"chat.completion\",\"created\":1739366554,\"model\":\"meta-llama/llama-3.1-8b-instruct\",\"choices\":[{\"index\":0,\"message\":{\"role\":\"assistant\",\"content\":\"to two.\"},\"finish_reason\":\"stop\",\"content_filter_results\":{\"hate\":{\"filtered\":false},\"self_harm\":{\"filtered\":false},\"sexual\":{\"filtered\":false},\"violence\":{\"filtered\":false},\"jailbreak\":{\"filtered\":false,\"detected\":false},\"profanity\":{\"filtered\":false,\"detected\":false}}}],\"usage\":{\"prompt_tokens\":46,\"completion_tokens\":4,\"total_tokens\":50,\"prompt_tokens_details\":null,\"completion_tokens_details\":null},\"system_fingerprint\":\"\"}",
7040+
"status": 200,
7041+
"statusText": "OK",
7042+
"headers": {
7043+
"connection": "keep-alive",
7044+
"content-type": "application/json"
7045+
}
7046+
}
7047+
},
7048+
"55c9ad16e86e9926a473cbe89b627b343f3bb541a75adb3b94967cd1d197bd19": {
7049+
"url": "https://api.novita.ai/v3/openai/chat/completions",
7050+
"init": {
7051+
"headers": {
7052+
"Content-Type": "application/json"
7053+
},
7054+
"method": "POST",
7055+
"body": "{\"messages\":[{\"role\":\"user\",\"content\":\"Say this is a test\"}],\"stream\":true,\"model\":\"meta-llama/llama-3.1-8b-instruct\"}"
7056+
},
7057+
"response": {
7058+
"body": "data: {\"id\":\"chatcmpl-bbc4b318e99b4e33ab8dd76fb3fccf9c\",\"object\":\"chat.completion.chunk\",\"created\":1739366554,\"model\":\"meta-llama/llama-3.1-8b-instruct\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\"},\"finish_reason\":null,\"content_filter_results\":{\"hate\":{\"filtered\":false},\"self_harm\":{\"filtered\":false},\"sexual\":{\"filtered\":false},\"violence\":{\"filtered\":false},\"jailbreak\":{\"filtered\":false,\"detected\":false},\"profanity\":{\"filtered\":false,\"detected\":false}}}],\"system_fingerprint\":\"\"}\n\ndata: {\"id\":\"chatcmpl-bbc4b318e99b4e33ab8dd76fb3fccf9c\",\"object\":\"chat.completion.chunk\",\"created\":1739366554,\"model\":\"meta-llama/llama-3.1-8b-instruct\",\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":null,\"content_filter_results\":{\"hate\":{\"filtered\":false},\"self_harm\":{\"filtered\":false},\"sexual\":{\"filtered\":false},\"violence\":{\"filtered\":false},\"jailbreak\":{\"filtered\":false,\"detected\":false},\"profanity\":{\"filtered\":false,\"detected\":false}}}],\"system_fingerprint\":\"\"}\n\ndata: {\"id\":\"chatcmpl-bbc4b318e99b4e33ab8dd76fb3fccf9c\",\"object\":\"chat.completion.chunk\",\"created\":1739366554,\"model\":\"meta-llama/llama-3.1-8b-instruct\",\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":null,\"content_filter_results\":{\"hate\":{\"filtered\":false},\"self_harm\":{\"filtered\":false},\"sexual\":{\"filtered\":false},\"violence\":{\"filtered\":false},\"jailbreak\":{\"filtered\":false,\"detected\":false},\"profanity\":{\"filtered\":false,\"detected\":false}}}],\"system_fingerprint\":\"\"}\n\ndata: {\"id\":\"chatcmpl-bbc4b318e99b4e33ab8dd76fb3fccf9c\",\"object\":\"chat.completion.chunk\",\"created\":1739366554,\"model\":\"meta-llama/llama-3.1-8b-instruct\",\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":null,\"content_filter_results\":{\"hate\":{\"filtered\":false},\"self_harm\":{\"filtered\":false},\"sexual\":{\"filtered\":false},\"violence\":{\"filtered\":false},\"jailbreak\":{\"filtered\":false,\"detected\":false},\"profanity\":{\"filtered\":false,\"detected\":false}}}],\"system_fingerprint\":\"\"}\n\ndata: {\"id\":\"chatcmpl-bbc4b318e99b4e33ab8dd76fb3fccf9c\",\"object\":\"chat.completion.chunk\",\"created\":1739366554,\"model\":\"meta-llama/llama-3.1-8b-instruct\",\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":null,\"content_filter_results\":{\"hate\":{\"filtered\":false},\"self_harm\":{\"filtered\":false},\"sexual\":{\"filtered\":false},\"violence\":{\"filtered\":false},\"jailbreak\":{\"filtered\":false,\"detected\":false},\"profanity\":{\"filtered\":false,\"detected\":false}}}],\"system_fingerprint\":\"\"}\n\ndata: {\"id\":\"chatcmpl-bbc4b318e99b4e33ab8dd76fb3fccf9c\",\"object\":\"chat.completion.chunk\",\"created\":1739366554,\"model\":\"meta-llama/llama-3.1-8b-instruct\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"T\"},\"finish_reason\":null,\"content_filter_results\":{\"hate\":{\"filtered\":false},\"self_harm\":{\"filtered\":false},\"sexual\":{\"filtered\":false},\"violence\":{\"filtered\":false},\"jailbreak\":{\"filtered\":false,\"detected\":false},\"profanity\":{\"filtered\":false,\"detected\":false}}}],\"system_fingerprint\":\"\"}\n\ndata: {\"id\":\"chatcmpl-bbc4b318e99b4e33ab8dd76fb3fccf9c\",\"object\":\"chat.completion.chunk\",\"created\":1739366554,\"model\":\"meta-llama/llama-3.1-8b-instruct\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"his is only a test\"},\"finish_reason\":\"stop\",\"content_filter_results\":{\"hate\":{\"filtered\":false},\"self_harm\":{\"filtered\":false},\"sexual\":{\"filtered\":false},\"violence\":{\"filtered\":false},\"jailbreak\":{\"filtered\":false,\"detected\":false},\"profanity\":{\"filtered\":false,\"detected\":false}}}],\"system_fingerprint\":\"\"}\n\ndata: [DONE]\n\n",
7059+
"status": 200,
7060+
"statusText": "OK",
7061+
"headers": {
7062+
"cache-control": "no-cache",
7063+
"connection": "keep-alive",
7064+
"content-type": "text/event-stream",
7065+
"transfer-encoding": "chunked"
7066+
}
7067+
}
70287068
}
70297069
}

0 commit comments

Comments
 (0)