fix(@ai-sdk/azure): Don't submit logprobs to azure if not specified #4154
Annotations
13 errors and 8 warnings
src/openai-chat-language-model.test.ts > doGenerate > should pass the model and the messages:
packages/openai/src/openai-chat-language-model.test.ts#L279
AssertionError: expected { model: 'gpt-3.5-turbo', …(1) } to strictly equal { model: 'gpt-3.5-turbo', …(2) }
- Expected
+ Received
Object {
- "logprobs": false,
"messages": Array [
Object {
"content": "Hello",
"role": "user",
},
],
"model": "gpt-3.5-turbo",
}
❯ src/openai-chat-language-model.test.ts:279:47
|
src/openai-chat-language-model.test.ts > doGenerate > should pass settings:
packages/openai/src/openai-chat-language-model.test.ts#L302
AssertionError: expected { model: 'gpt-3.5-turbo', …(6) } to strictly equal { model: 'gpt-3.5-turbo', …(6) }
- Expected
+ Received
Object {
"logit_bias": Object {
"50256": -100,
},
- "logprobs": true,
+ "logprobs": 2,
"messages": Array [
Object {
"content": "Hello",
"role": "user",
},
],
"model": "gpt-3.5-turbo",
"parallel_tool_calls": false,
"top_logprobs": 2,
"user": "test-user-id",
}
❯ src/openai-chat-language-model.test.ts:302:47
|
src/openai-chat-language-model.test.ts > doGenerate > should pass tools and toolChoice:
packages/openai/src/openai-chat-language-model.test.ts#L341
AssertionError: expected { model: 'gpt-3.5-turbo', …(3) } to strictly equal { model: 'gpt-3.5-turbo', …(4) }
- Expected
+ Received
Object {
- "logprobs": false,
"messages": Array [
Object {
"content": "Hello",
"role": "user",
},
],
"model": "gpt-3.5-turbo",
"tool_choice": Object {
"function": Object {
"name": "test-tool",
},
"type": "function",
},
"tools": Array [
Object {
"function": Object {
"name": "test-tool",
"parameters": Object {
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": Object {
"value": Object {
"type": "string",
},
},
"required": Array [
"value",
],
"type": "object",
},
},
"type": "function",
},
],
}
❯ src/openai-chat-language-model.test.ts:341:47
|
src/openai-chat-language-model.test.ts > doStream > should pass the messages and the model:
packages/openai/src/openai-chat-language-model.test.ts#L773
AssertionError: expected { model: 'gpt-3.5-turbo', …(3) } to strictly equal { stream: true, …(4) }
- Expected
+ Received
Object {
- "logprobs": false,
"messages": Array [
Object {
"content": "Hello",
"role": "user",
},
],
"model": "gpt-3.5-turbo",
"stream": true,
"stream_options": Object {
"include_usage": true,
},
}
❯ src/openai-chat-language-model.test.ts:773:47
|
Test (18.x)
@ai-sdk/openai#test: command (/home/runner/work/ai/ai/packages/openai) pnpm run test exited (1)
|
Test (18.x)
Process completed with exit code 1.
|
Test (20.x)
The job was canceled because "_18_x" failed.
|
Test (20.x)
@ai-sdk/openai#test: command (/home/runner/work/ai/ai/packages/openai) pnpm run test exited (1)
|
src/openai-chat-language-model.test.ts > doGenerate > should pass the model and the messages:
packages/openai/src/openai-chat-language-model.test.ts#L279
AssertionError: expected { model: 'gpt-3.5-turbo', …(1) } to strictly equal { model: 'gpt-3.5-turbo', …(2) }
- Expected
+ Received
Object {
- "logprobs": false,
"messages": Array [
Object {
"content": "Hello",
"role": "user",
},
],
"model": "gpt-3.5-turbo",
}
❯ src/openai-chat-language-model.test.ts:279:47
|
src/openai-chat-language-model.test.ts > doGenerate > should pass settings:
packages/openai/src/openai-chat-language-model.test.ts#L302
AssertionError: expected { model: 'gpt-3.5-turbo', …(6) } to strictly equal { model: 'gpt-3.5-turbo', …(6) }
- Expected
+ Received
Object {
"logit_bias": Object {
"50256": -100,
},
- "logprobs": true,
+ "logprobs": 2,
"messages": Array [
Object {
"content": "Hello",
"role": "user",
},
],
"model": "gpt-3.5-turbo",
"parallel_tool_calls": false,
"top_logprobs": 2,
"user": "test-user-id",
}
❯ src/openai-chat-language-model.test.ts:302:47
|
src/openai-chat-language-model.test.ts > doGenerate > should pass tools and toolChoice:
packages/openai/src/openai-chat-language-model.test.ts#L341
AssertionError: expected { model: 'gpt-3.5-turbo', …(3) } to strictly equal { model: 'gpt-3.5-turbo', …(4) }
- Expected
+ Received
Object {
- "logprobs": false,
"messages": Array [
Object {
"content": "Hello",
"role": "user",
},
],
"model": "gpt-3.5-turbo",
"tool_choice": Object {
"function": Object {
"name": "test-tool",
},
"type": "function",
},
"tools": Array [
Object {
"function": Object {
"name": "test-tool",
"parameters": Object {
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": Object {
"value": Object {
"type": "string",
},
},
"required": Array [
"value",
],
"type": "object",
},
},
"type": "function",
},
],
}
❯ src/openai-chat-language-model.test.ts:341:47
|
src/openai-chat-language-model.test.ts > doStream > should pass the messages and the model:
packages/openai/src/openai-chat-language-model.test.ts#L773
AssertionError: expected { model: 'gpt-3.5-turbo', …(3) } to strictly equal { stream: true, …(4) }
- Expected
+ Received
Object {
- "logprobs": false,
"messages": Array [
Object {
"content": "Hello",
"role": "user",
},
],
"model": "gpt-3.5-turbo",
"stream": true,
"stream_options": Object {
"include_usage": true,
},
}
❯ src/openai-chat-language-model.test.ts:773:47
|
Test (20.x)
The operation was canceled.
|
Test (18.x)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, pnpm/[email protected], actions/setup-node@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Test (18.x)
The following actions uses node12 which is deprecated and will be forced to run on node16: pnpm/[email protected], actions/setup-node@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Test (18.x)
The `save-state` 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/
|
Test (18.x)
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/
|
Test (18.x)
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/
|
Test (20.x)
The `save-state` 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/
|
Test (20.x)
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/
|
Test (20.x)
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/
|