Skip to content

Commit ea16584

Browse files
committed
Remove blank tags array from options object
Eliminated unnecessary empty 'tags' arrays from the options object in WorkersAIChatLanguageModel. This simplifies the code and avoids passing redundant data.
1 parent 5770712 commit ea16584

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.changeset/poor-dots-laugh.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"workers-ai-provider": patch
3+
---
4+
5+
remove blank tags array

packages/workers-ai-provider/src/workersai-chat-language-model.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ export class WorkersAIChatLanguageModel implements LanguageModelV2 {
159159
{
160160
gateway: this.config.gateway ?? gateway,
161161
...passthroughOptions,
162-
tags: [],
163162
},
164163
);
165164

@@ -307,7 +306,6 @@ export class WorkersAIChatLanguageModel implements LanguageModelV2 {
307306
{
308307
gateway: this.config.gateway ?? gateway,
309308
...passthroughOptions,
310-
tags: [],
311309
},
312310
);
313311

0 commit comments

Comments
 (0)