File tree 5 files changed +11
-11
lines changed
5 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 39
39
"license" : " MIT" ,
40
40
"dependencies" : {
41
41
"@langchain/core" : " ~0.1" ,
42
- "cohere-ai" : " ^7.6.2 "
42
+ "cohere-ai" : " ^7.8.0 "
43
43
},
44
44
"devDependencies" : {
45
45
"@jest/globals" : " ^29.5.0" ,
Original file line number Diff line number Diff line change @@ -150,13 +150,12 @@ export class ChatCohere<
150
150
invocationParams ( options : this[ "ParsedCallOptions" ] ) {
151
151
const params = {
152
152
model : this . model ,
153
- preambleOverride : options . preambleOverride ,
153
+ preamble : options . preamble ,
154
154
conversationId : options . conversationId ,
155
155
promptTruncation : options . promptTruncation ,
156
156
connectors : options . connectors ,
157
157
searchQueriesOnly : options . searchQueriesOnly ,
158
158
documents : options . documents ,
159
- citationQuality : options . citationQuality ,
160
159
temperature : options . temperature ?? this . temperature ,
161
160
} ;
162
161
// Filter undefined entries
Original file line number Diff line number Diff line change @@ -86,7 +86,8 @@ export class CohereEmbeddings
86
86
this . embeddingWithRetry ( {
87
87
model : this . model ,
88
88
texts : batch ,
89
- inputType : this . inputType ,
89
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
90
+ inputType : this . inputType as any ,
90
91
} )
91
92
) ;
92
93
@@ -118,7 +119,8 @@ export class CohereEmbeddings
118
119
const { embeddings } = await this . embeddingWithRetry ( {
119
120
model : this . model ,
120
121
texts : [ text ] ,
121
- inputType : this . inputType ,
122
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
123
+ inputType : this . inputType as any ,
122
124
} ) ;
123
125
if ( "float" in embeddings && embeddings . float ) {
124
126
return embeddings . float [ 0 ] ;
Original file line number Diff line number Diff line change @@ -113,7 +113,6 @@ export class Cohere extends LLM<CohereCallOptions> implements CohereInput {
113
113
frequencyPenalty : options . frequencyPenalty ,
114
114
presencePenalty : options . presencePenalty ,
115
115
returnLikelihoods : options . returnLikelihoods ,
116
- logitBias : options . logitBias ,
117
116
} ;
118
117
// Filter undefined entries
119
118
return Object . fromEntries (
Original file line number Diff line number Diff line change @@ -8899,7 +8899,7 @@ __metadata:
8899
8899
"@tsconfig/recommended": ^1.0.3
8900
8900
"@typescript-eslint/eslint-plugin": ^6.12.0
8901
8901
"@typescript-eslint/parser": ^6.12.0
8902
- cohere-ai: ^7.6.2
8902
+ cohere-ai: ^7.8.0
8903
8903
dotenv: ^16.3.1
8904
8904
dpdm: ^3.12.0
8905
8905
eslint: ^8.33.0
@@ -18176,16 +18176,16 @@ __metadata:
18176
18176
languageName: node
18177
18177
linkType: hard
18178
18178
18179
- "cohere-ai@npm:^7.6.2 ":
18180
- version: 7.6.2
18181
- resolution: "cohere-ai@npm:7.6.2 "
18179
+ "cohere-ai@npm:^7.8.0 ":
18180
+ version: 7.8.0
18181
+ resolution: "cohere-ai@npm:7.8.0 "
18182
18182
dependencies:
18183
18183
form-data: 4.0.0
18184
18184
js-base64: 3.7.2
18185
18185
node-fetch: 2.7.0
18186
18186
qs: 6.11.2
18187
18187
url-join: 4.0.1
18188
- checksum: cf70c115ddc50162f9fa7df5d2d569417ab68000dc4ca1a93646c457b61f691fd91cf5f73d69fd225d8224c05c105f74d7ca5a7700e6c0f4b37df70aa3d4fb48
18188
+ checksum: dc2f612fe209329542a45c0c600cc5eb65cce138f935e9a254c0a992000de28d298ed961acb9d58d19d84b26e981c6fa39f8ac29adb82f2ffe5495b11dc58766
18189
18189
languageName: node
18190
18190
linkType: hard
18191
18191
You can’t perform that action at this time.
0 commit comments