Skip to content

0.13.11

0.13.11 #402

Triggered via push February 4, 2025 13:26
Status Failure
Total duration 47s
Artifacts

main.yml

on: push
runs typescript and tests
36s
runs typescript and tests
Publish to NPM
0s
Publish to NPM
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
src/LangtailPrompts.spec.ts > LangtailPrompts > build > should return the openAI body user can use with openai client: src/LangtailPrompts.spec.ts#L222
Error: Snapshot `LangtailPrompts > build > should return the openAI body user can use with openai client 2` mismatched - Expected + Received @@ -9,8 +9,9 @@ "role": "system", }, ], "model": "gpt-3.5-turbo", "presence_penalty": 0, + "reasoning_effort": undefined, "temperature": 0.5, "top_p": 1, } ❯ src/LangtailPrompts.spec.ts:222:28
src/getOpenAIBody.test.ts > getOpenAIBody > should extend variables from playground: src/getOpenAIBody.test.ts#L78
Error: Snapshot `getOpenAIBody > should extend variables from playground 1` mismatched - Expected + Received @@ -7,8 +7,9 @@ "role": "user", }, ], "model": "gpt-3.5-turbo", "presence_penalty": 0, + "reasoning_effort": undefined, "temperature": 0.8, "top_p": 1, } ❯ src/getOpenAIBody.test.ts:78:24
src/getOpenAIBody.test.ts > getOpenAIBody > should override parameters from the playground with the ones in parsedBody: src/getOpenAIBody.test.ts#L210
Error: Snapshot `getOpenAIBody > should override parameters from the playground with the ones in parsedBody 1` mismatched - Expected + Received @@ -11,10 +11,11 @@ "role": "system", }, ], "model": "gpt-4-turbo", "presence_penalty": 0.5, + "reasoning_effort": undefined, "response_format": { "type": "json_object", }, "seed": 123, "stop": [ ❯ src/getOpenAIBody.test.ts:210:24
src/getOpenAIBody.test.ts > getOpenAIBody > thread messages > should compile thread messages with passed variables: src/getOpenAIBody.test.ts#L324
Error: Snapshot `getOpenAIBody > thread messages > should compile thread messages with passed variables 1` mismatched - Expected + Received @@ -11,8 +11,9 @@ "role": "system", }, ], "model": "gpt-3.5-turbo", "presence_penalty": 0, + "reasoning_effort": undefined, "temperature": 0.8, "top_p": 1, } ❯ src/getOpenAIBody.test.ts:324:26
src/getOpenAIBody.test.ts > getOpenAIBody > thread messages > should combine template messages with other messages: src/getOpenAIBody.test.ts#L385
Error: Snapshot `getOpenAIBody > thread messages > should combine template messages with other messages 1` mismatched - Expected + Received @@ -11,8 +11,9 @@ "role": "user", }, ], "model": "gpt-3.5-turbo", "presence_penalty": 0, + "reasoning_effort": undefined, "temperature": 0.8, "top_p": 1, } ❯ src/getOpenAIBody.test.ts:385:26
src/getOpenAIBody.test.ts > getOpenAIBody > thread messages > should NOT compile thread messages with variables: src/getOpenAIBody.test.ts#L441
Error: Snapshot `getOpenAIBody > thread messages > should NOT compile thread messages with variables 1` mismatched - Expected + Received @@ -7,8 +7,9 @@ "role": "user", }, ], "model": "gpt-3.5-turbo", "presence_penalty": 0, + "reasoning_effort": undefined, "temperature": 0.8, "top_p": 1, } ❯ src/getOpenAIBody.test.ts:441:26
src/react/useChatStream.test.ts > useAIStream > public API > return values > messages > should add another message to the initial one: src/react/useChatStream.test.ts#L372
AssertionError: expected [ { role: 'user', …(1) }, …(1) ] to deeply equal [ { role: 'user', …(1) }, …(1) ] - Expected + Received Array [ Object { "content": "user input", "role": "user", }, Object { "content": "hello.", + "parsed": null, + "refusal": null, "role": "assistant", + "tool_calls": Array [], }, ] ❯ src/react/useChatStream.test.ts:372:45
src/react/useChatStream.test.ts > useAIStream > public API > return values > messages > should complete 2 messages: src/react/useChatStream.test.ts#L423
AssertionError: expected [ { role: 'user', …(1) }, …(2) ] to deeply equal [ { role: 'user', …(1) }, …(2) ] - Expected + Received Array [ Object { "content": "user input", "role": "user", }, Object { "content": "hello!", "role": "assistant", }, Object { "content": " And this is my end.", + "parsed": null, + "refusal": null, "role": "assistant", + "tool_calls": Array [], }, ] ❯ src/react/useChatStream.test.ts:423:45
src/react/useChatStream.test.ts > useAIStream > public API > return values > messages > should return message with a tool call: src/react/useChatStream.test.ts#L469
AssertionError: expected [ { role: 'user', …(1) }, …(1) ] to deeply equal [ { role: 'user', …(1) }, { …(3) } ] - Expected + Received Array [ Object { "content": "user input", "role": "user", }, Object { "content": "Understood, I will get the current weather for Prague, Czech Republic.", + "parsed": null, + "refusal": null, "role": "assistant", "tool_calls": Array [ Object { "function": Object { "arguments": "{\"location\":\"Prague, Czech Republic\"}", "name": "get_weather", }, "id": "call_tNW2f79DhRvuuwrslSYt3yVT", "type": "function", }, ], }, ] ❯ src/react/useChatStream.test.ts:469:45
src/react/useChatStream.test.ts > useAIStream > public API > too calls > should trigger a tool call: src/react/useChatStream.test.ts#L537
AssertionError: expected "spy" to be called with arguments: [ { function: { …(2) }, …(2) }, …(1) ] Received: 1st spy call: Array [ Object { "function": Object { "arguments": "{\"location\":\"Prague, Czech Republic\"}", "name": "get_weather", }, "id": "call_tNW2f79DhRvuuwrslSYt3yVT", "type": "function", }, Object { "content": "Understood, I will get the current weather for Prague, Czech Republic.", + "parsed": null, + "refusal": null, "role": "assistant", "tool_calls": Array [ Object { "function": Object { "arguments": "{\"location\":\"Prague, Czech Republic\"}", "name": "get_weather", }, "id": "call_tNW2f79DhRvuuwrslSYt3yVT", "type": "function", }, ], }, ] Number of calls: 1 ❯ src/react/useChatStream.test.ts:537:30
runs typescript and tests
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/