Skip to content

armgit / my-yt

Public Imported from GitHub
0

A clean and minimal youtube frontend, without all the ads and whistles

JavaScript

test: assert body llm providers

Christian Fei5029fb57dd28
diff --git a/test/llm/index.test.js b/test/llm/index.test.js
index 477a57f..5e5c5be 100644
--- a/test/llm/index.test.js
+++ b/test/llm/index.test.js
@@ -33,6 +33,7 @@ test('should use Anthropic provider', async () => {
'anthropic-version': '2023-06-01',
'x-api-key': 'your-api-key'
},
+ body: '{"model":"claude-v1","temperature":0.7,"system":"You are a helpful assistant.","maxTokens":1000,"messages":[{"role":"user","content":"Just tell me something"}]}',
method: 'POST'
})
.reply(200, {
@@ -78,6 +79,7 @@ test('should use OpenAI provider', async () => {
'Content-Type': 'application/json',
'Authorization': 'Bearer your-api-key'
},
+ body: '{"model":"gpt-4o","temperature":0.7,"maxTokens":1000,"messages":[{"role":"system","content":"You are a helpful assistant."},{"role":"user","content":"Just tell me something"}]}',
method: 'POST'
})
.reply(200, {