OpenAI native provider #4481
Annotations
10 errors and 4 warnings
|
common/src/util/__tests__/messages.test.ts#L884
[
- ObjectContaining {
+ {
+ "content": "System",
"role": "system",
},
{
"content": [
{
- "text": "L",
- "type": "text",
- },
- {
- "providerOptions": ObjectContaining {
+ "providerOptions": {
+ "anthropic": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
"openaiCompatible": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
+ "openrouter": {
"cache_control": {
"type": "ephemeral",
},
},
},
- "text": "ong enough text",
+ "text": "Long enough text",
"type": "text",
},
{
"text": "X",
"type": "text",
},
],
"role": "user",
},
- ObjectContaining {
+ {
+ "content": [
+ {
+ "providerOptions": {
+ "anthropic": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
+ "openaiCompatible": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
+ "openrouter": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
+ },
+ "text": "Next",
+ "type": "text",
+ },
+ ],
"role": "user",
+ "tags": [
+ "USER_PROMPT",
+ ],
},
]
- Expected - 8
+ Received + 41
at <anonymous> (/home/runner/work/***/***/common/src/util/__***s__/messages.***.ts:884:22)
|
|
common/src/util/__tests__/messages.test.ts#L761
[
- ObjectContaining {
+ {
+ "content": "System",
"role": "system",
},
- ObjectContaining {
+ {
+ "content": [
+ {
+ "providerOptions": {
+ "anthropic": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
+ "openaiCompatible": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
+ "openrouter": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
+ },
+ "text": "Context",
+ "type": "text",
+ },
+ ],
"role": "user",
},
- ObjectContaining {
+ {
+ "content": [
+ {
+ "text": "Response",
+ "type": "text",
+ },
+ ],
"role": "assistant",
},
{
"content": [
{
"text": "More context",
"type": "text",
},
{
- "text": "U",
- "type": "text",
- },
- {
- "providerOptions": ObjectContaining {
+ "providerOptions": {
+ "anthropic": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
"openaiCompatible": {
"cache_control": {
"type": "ephemeral",
},
},
+ "openrouter": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
},
- "text": "ser message",
+ "text": "User message",
"type": "text",
},
],
"role": "user",
},
]
- Expected - 9
+ Received + 45
at <anonymous> (/home/runner/work/***/***/common/src/util/__***s__/messages.***.ts:761:22)
|
|
common/src/util/__tests__/messages.test.ts#L718
[
- ObjectContaining {
+ {
+ "content": "System",
"role": "system",
},
- ObjectContaining {
+ {
+ "content": [
+ {
+ "providerOptions": {
+ "anthropic": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
+ "openaiCompatible": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
+ "openrouter": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
+ },
+ "text": "Context",
+ "type": "text",
+ },
+ ],
"role": "user",
},
- ObjectContaining {
- "role": "assistant",
- },
{
"content": [
{
- "text": "M",
+ "text": "Response",
"type": "text",
},
+ ],
+ "role": "assistant",
+ },
+ {
+ "content": [
{
- "providerOptions": ObjectContaining {
+ "providerOptions": {
+ "anthropic": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
"openaiCompatible": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
+ "openrouter": {
"cache_control": {
"type": "ephemeral",
},
},
},
- "text": "ore context",
+ "text": "More context",
"type": "text",
},
],
"role": "user",
},
- ObjectContaining {
+ {
+ "content": [
+ {
+ "providerOptions": {
+ "anthropic": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
+ "openaiCompatible": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
+ "openrouter": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
+ },
+ "text": "Step",
+ "type": "text",
+ },
+ ],
"role": "user",
+ "tags": [
+ "STEP_PROMPT",
+ ],
},
]
- Expected - 9
+ Received + 71
at <anonymous> (/home/runner/work/***/***/common/src/util/__***s__/messages.***.ts:718:22)
|
|
common/src/util/__tests__/messages.test.ts#L676
[
- ObjectContaining {
+ {
+ "content": "System",
"role": "system",
},
- ObjectContaining {
+ {
+ "content": [
+ {
+ "text": "Context",
+ "type": "text",
+ },
+ ],
"role": "user",
},
- ObjectContaining {
+ {
+ "content": [
+ {
+ "text": "Response",
+ "type": "text",
+ },
+ ],
"role": "assistant",
},
{
"content": [
{
- "text": "I",
+ "providerOptions": {
+ "anthropic": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
+ "openaiCompatible": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
+ "openrouter": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
+ },
+ "text": "Instructions",
"type": "text",
},
+ ],
+ "role": "user",
+ },
+ {
+ "content": [
{
- "providerOptions": ObjectContaining {
+ "providerOptions": {
+ "anthropic": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
"openaiCompatible": {
"cache_control": {
"type": "ephemeral",
},
},
+ "openrouter": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
},
- "text": "nstructions",
+ "text": "Second response",
"type": "text",
},
],
- "role": "user",
- },
- ObjectContaining {
"role": "assistant",
+ "tags": [
+ "LAST_ASSISTANT_MESSAGE",
+ ],
},
]
- Expected - 9
+ Received + 54
at <anonymous> (/home/runner/work/***/***/common/src/util/__***s__/messages.***.ts:676:22)
|
|
common/src/util/__tests__/messages.test.ts#L630
[
- ObjectContaining {
+ {
+ "content": "System",
"role": "system",
},
- ObjectContaining {
+ {
+ "content": [
+ {
+ "providerOptions": {
+ "anthropic": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
+ "openaiCompatible": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
+ "openrouter": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
+ },
+ "text": "Context",
+ "type": "text",
+ },
+ ],
"role": "user",
},
- ObjectContaining {
- "role": "assistant",
- },
{
"content": [
{
- "text": "M",
+ "text": "Response",
"type": "text",
},
+ ],
+ "role": "assistant",
+ },
+ {
+ "content": [
{
- "providerOptions": ObjectContaining {
+ "providerOptions": {
+ "anthropic": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
"openaiCompatible": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
+ "openrouter": {
"cache_control": {
"type": "ephemeral",
},
},
},
- "text": "ore context",
+ "text": "More context",
"type": "text",
},
],
"role": "user",
},
- ObjectContaining {
+ {
+ "content": [
+ {
+ "providerOptions": {
+ "anthropic": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
+ "openaiCompatible": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
+ "openrouter": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
+ },
+ "text": "User prompt",
+ "type": "text",
+ },
+ ],
"role": "user",
+ "tags": [
+ "USER_PROMPT",
+ ],
},
]
- Expected - 9
+ Received + 71
at <anonymous> (/home/runner/work/***/***/common/src/util/__***s__/messages.***.ts:630:22)
|
|
common/src/util/__tests__/messages.test.ts#L884
[
- ObjectContaining {
+ {
+ "content": "System",
"role": "system",
},
{
"content": [
{
- "text": "L",
- "type": "text",
- },
- {
- "providerOptions": ObjectContaining {
+ "providerOptions": {
+ "anthropic": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
"openaiCompatible": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
+ "openrouter": {
"cache_control": {
"type": "ephemeral",
},
},
},
- "text": "ong enough text",
+ "text": "Long enough text",
"type": "text",
},
{
"text": "X",
"type": "text",
},
],
"role": "user",
},
- ObjectContaining {
+ {
+ "content": [
+ {
+ "providerOptions": {
+ "anthropic": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
+ "openaiCompatible": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
+ "openrouter": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
+ },
+ "text": "Next",
+ "type": "text",
+ },
+ ],
"role": "user",
+ "tags": [
+ "USER_PROMPT",
+ ],
},
]
- Expected - 8
+ Received + 41
at <anonymous> (/home/runner/work/***/***/common/src/util/__***s__/messages.***.ts:884:22)
|
|
common/src/util/__tests__/messages.test.ts#L761
[
- ObjectContaining {
+ {
+ "content": "System",
"role": "system",
},
- ObjectContaining {
+ {
+ "content": [
+ {
+ "providerOptions": {
+ "anthropic": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
+ "openaiCompatible": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
+ "openrouter": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
+ },
+ "text": "Context",
+ "type": "text",
+ },
+ ],
"role": "user",
},
- ObjectContaining {
+ {
+ "content": [
+ {
+ "text": "Response",
+ "type": "text",
+ },
+ ],
"role": "assistant",
},
{
"content": [
{
"text": "More context",
"type": "text",
},
{
- "text": "U",
- "type": "text",
- },
- {
- "providerOptions": ObjectContaining {
+ "providerOptions": {
+ "anthropic": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
"openaiCompatible": {
"cache_control": {
"type": "ephemeral",
},
},
+ "openrouter": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
},
- "text": "ser message",
+ "text": "User message",
"type": "text",
},
],
"role": "user",
},
]
- Expected - 9
+ Received + 45
at <anonymous> (/home/runner/work/***/***/common/src/util/__***s__/messages.***.ts:761:22)
|
|
common/src/util/__tests__/messages.test.ts#L718
[
- ObjectContaining {
+ {
+ "content": "System",
"role": "system",
},
- ObjectContaining {
+ {
+ "content": [
+ {
+ "providerOptions": {
+ "anthropic": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
+ "openaiCompatible": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
+ "openrouter": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
+ },
+ "text": "Context",
+ "type": "text",
+ },
+ ],
"role": "user",
},
- ObjectContaining {
- "role": "assistant",
- },
{
"content": [
{
- "text": "M",
+ "text": "Response",
"type": "text",
},
+ ],
+ "role": "assistant",
+ },
+ {
+ "content": [
{
- "providerOptions": ObjectContaining {
+ "providerOptions": {
+ "anthropic": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
"openaiCompatible": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
+ "openrouter": {
"cache_control": {
"type": "ephemeral",
},
},
},
- "text": "ore context",
+ "text": "More context",
"type": "text",
},
],
"role": "user",
},
- ObjectContaining {
+ {
+ "content": [
+ {
+ "providerOptions": {
+ "anthropic": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
+ "openaiCompatible": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
+ "openrouter": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
+ },
+ "text": "Step",
+ "type": "text",
+ },
+ ],
"role": "user",
+ "tags": [
+ "STEP_PROMPT",
+ ],
},
]
- Expected - 9
+ Received + 71
at <anonymous> (/home/runner/work/***/***/common/src/util/__***s__/messages.***.ts:718:22)
|
|
common/src/util/__tests__/messages.test.ts#L676
[
- ObjectContaining {
+ {
+ "content": "System",
"role": "system",
},
- ObjectContaining {
+ {
+ "content": [
+ {
+ "text": "Context",
+ "type": "text",
+ },
+ ],
"role": "user",
},
- ObjectContaining {
+ {
+ "content": [
+ {
+ "text": "Response",
+ "type": "text",
+ },
+ ],
"role": "assistant",
},
{
"content": [
{
- "text": "I",
+ "providerOptions": {
+ "anthropic": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
+ "openaiCompatible": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
+ "openrouter": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
+ },
+ "text": "Instructions",
"type": "text",
},
+ ],
+ "role": "user",
+ },
+ {
+ "content": [
{
- "providerOptions": ObjectContaining {
+ "providerOptions": {
+ "anthropic": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
"openaiCompatible": {
"cache_control": {
"type": "ephemeral",
},
},
+ "openrouter": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
},
- "text": "nstructions",
+ "text": "Second response",
"type": "text",
},
],
- "role": "user",
- },
- ObjectContaining {
"role": "assistant",
+ "tags": [
+ "LAST_ASSISTANT_MESSAGE",
+ ],
},
]
- Expected - 9
+ Received + 54
at <anonymous> (/home/runner/work/***/***/common/src/util/__***s__/messages.***.ts:676:22)
|
|
common/src/util/__tests__/messages.test.ts#L630
[
- ObjectContaining {
+ {
+ "content": "System",
"role": "system",
},
- ObjectContaining {
+ {
+ "content": [
+ {
+ "providerOptions": {
+ "anthropic": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
+ "openaiCompatible": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
+ "openrouter": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
+ },
+ "text": "Context",
+ "type": "text",
+ },
+ ],
"role": "user",
},
- ObjectContaining {
- "role": "assistant",
- },
{
"content": [
{
- "text": "M",
+ "text": "Response",
"type": "text",
},
+ ],
+ "role": "assistant",
+ },
+ {
+ "content": [
{
- "providerOptions": ObjectContaining {
+ "providerOptions": {
+ "anthropic": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
"openaiCompatible": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
+ "openrouter": {
"cache_control": {
"type": "ephemeral",
},
},
},
- "text": "ore context",
+ "text": "More context",
"type": "text",
},
],
"role": "user",
},
- ObjectContaining {
+ {
+ "content": [
+ {
+ "providerOptions": {
+ "anthropic": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
+ "openaiCompatible": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
+ "openrouter": {
+ "cache_control": {
+ "type": "ephemeral",
+ },
+ },
+ },
+ "text": "User prompt",
+ "type": "text",
+ },
+ ],
"role": "user",
+ "tags": [
+ "USER_PROMPT",
+ ],
},
]
- Expected - 9
+ Received + 71
at <anonymous> (/home/runner/work/***/***/common/src/util/__***s__/messages.***.ts:630:22)
|
|
|
|
|
|
|
|
|
The logs for this run have expired and are no longer available.
Loading