workflow and speech job support #82
Annotations
8 errors
|
test (macos-latest)
Process completed with exit code 1.
|
|
error: expect(received).toMatchSnapshot(expected):
test/image.test.ts#L16
Expected:
{
"body": "{"prompt":"A cute baby sea otter","model":"dall-e-2","n":3}",
"headers": {
"authorization": "***",
"content-type": "application/json",
},
"method": "POST",
"url": "https://api.openai.com/v1/image/generations",
}
Received:
{
"body": "{"prompt":"A cute baby sea otter","model":"dall-e-2","n":3}",
"headers": {
"authorization": "***",
"content-type": "application/json",
},
"method": "POST",
"url": "https://api.openai.com/v1/images/generations",
}
at <anonymous> (/Users/runner/work/fluent-ai/fluent-ai/test/image.test.ts:16:52)
|
|
error: expect(received).toMatchSnapshot(expected):
test/chat.test.ts#L103
Expected:
{
"body": "{"messages":[{"role":"user","content":"generate a person with name and age in json format"}],"model":"gpt-4o-mini","response_format":{"type":"json_schema","json_schema":{"name":"person","schema":{"type":"object","properties":{"name":{"type":"string"},"age":{"type":"number"}},"required":["name","age"]}}}}",
"headers": {
"authorization": "***",
"content-type": "application/json",
},
"method": "POST",
"url": "https://api.openai.com/v1/chat/completions",
}
Received:
{
"body": "{"messages":[{"role":"user","content":"generate a person with name and age in json format"}],"model":"gpt-4o-mini","response_format":{"type":"json_schema","schema":{"name":"person","type":"object","properties":{"name":{"type":"string"},"age":{"type":"number"}},"required":["name","age"]}}}",
"headers": {
"authorization": "***",
"content-type": "application/json",
},
"method": "POST",
"url": "https://api.openai.com/v1/chat/completions",
}
at <anonymous> (/Users/runner/work/fluent-ai/fluent-ai/test/chat.test.ts:103:7)
|
|
error: expect(received).toMatchSnapshot(expected):
test/chat.test.ts#L35
Expected:
{
"body": "{"messages":[{"role":"system","content":"you are a helpful assistant"},{"role":"user","content":"hi"}],"model":"gpt-4o-mini","stream":true}",
"headers": {
"authorization": "***",
"content-type": "application/json",
},
"method": "POST",
"url": "https://api.openai.com/v1/chat/completions",
}
Received:
{
"body": "{"messages":[{"role":"system","content":"you are a helpful assistant"},{"role":"user","content":"hi"}],"model":"gpt-4o-mini"}",
"headers": {
"authorization": "***",
"content-type": "application/json",
},
"method": "POST",
"url": "https://api.openai.com/v1/chat/completions",
}
at <anonymous> (/Users/runner/work/fluent-ai/fluent-ai/test/chat.test.ts:35:7)
|
|
test (ubuntu-latest)
Process completed with exit code 1.
|
|
error: expect(received).toMatchSnapshot(expected):
test/image.test.ts#L16
Expected:
{
"body": "{"prompt":"A cute baby sea otter","model":"dall-e-2","n":3}",
"headers": {
"authorization": "***",
"content-type": "application/json",
},
"method": "POST",
"url": "https://api.openai.com/v1/image/generations",
}
Received:
{
"body": "{"prompt":"A cute baby sea otter","model":"dall-e-2","n":3}",
"headers": {
"authorization": "***",
"content-type": "application/json",
},
"method": "POST",
"url": "https://api.openai.com/v1/images/generations",
}
at <anonymous> (/home/runner/work/fluent-ai/fluent-ai/test/image.test.ts:16:52)
|
|
error: expect(received).toMatchSnapshot(expected):
test/chat.test.ts#L103
Expected:
{
"body": "{"messages":[{"role":"user","content":"generate a person with name and age in json format"}],"model":"gpt-4o-mini","response_format":{"type":"json_schema","json_schema":{"name":"person","schema":{"type":"object","properties":{"name":{"type":"string"},"age":{"type":"number"}},"required":["name","age"]}}}}",
"headers": {
"authorization": "***",
"content-type": "application/json",
},
"method": "POST",
"url": "https://api.openai.com/v1/chat/completions",
}
Received:
{
"body": "{"messages":[{"role":"user","content":"generate a person with name and age in json format"}],"model":"gpt-4o-mini","response_format":{"type":"json_schema","schema":{"name":"person","type":"object","properties":{"name":{"type":"string"},"age":{"type":"number"}},"required":["name","age"]}}}",
"headers": {
"authorization": "***",
"content-type": "application/json",
},
"method": "POST",
"url": "https://api.openai.com/v1/chat/completions",
}
at <anonymous> (/home/runner/work/fluent-ai/fluent-ai/test/chat.test.ts:103:7)
|
|
error: expect(received).toMatchSnapshot(expected):
test/chat.test.ts#L35
Expected:
{
"body": "{"messages":[{"role":"system","content":"you are a helpful assistant"},{"role":"user","content":"hi"}],"model":"gpt-4o-mini","stream":true}",
"headers": {
"authorization": "***",
"content-type": "application/json",
},
"method": "POST",
"url": "https://api.openai.com/v1/chat/completions",
}
Received:
{
"body": "{"messages":[{"role":"system","content":"you are a helpful assistant"},{"role":"user","content":"hi"}],"model":"gpt-4o-mini"}",
"headers": {
"authorization": "***",
"content-type": "application/json",
},
"method": "POST",
"url": "https://api.openai.com/v1/chat/completions",
}
at <anonymous> (/home/runner/work/fluent-ai/fluent-ai/test/chat.test.ts:35:7)
|