listpage-next-nest 0.0.186 → 0.0.194
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.d.ts +4 -4
- package/dist/cjs/index.js +3 -3
- package/package.json +1 -1
package/dist/cjs/index.d.ts
CHANGED
|
@@ -153,8 +153,8 @@ export declare class MetaProvider extends LLMProvider {
|
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
declare type MetaRequestionOption = {
|
|
156
|
-
api_key
|
|
157
|
-
model
|
|
156
|
+
api_key?: string;
|
|
157
|
+
model?: 'fast' | 'fast_thinking' | 'ds-r1';
|
|
158
158
|
messages: Array<{
|
|
159
159
|
role: string;
|
|
160
160
|
content: string;
|
|
@@ -322,8 +322,8 @@ export declare class VolcengineProvider extends LLMProvider<VolcengineRequestion
|
|
|
322
322
|
}
|
|
323
323
|
|
|
324
324
|
declare type VolcengineRequestionOption = {
|
|
325
|
-
api_key
|
|
326
|
-
model
|
|
325
|
+
api_key?: string;
|
|
326
|
+
model?: string;
|
|
327
327
|
messages: Array<{
|
|
328
328
|
role: string;
|
|
329
329
|
content: string;
|
package/dist/cjs/index.js
CHANGED
|
@@ -521,8 +521,8 @@ const external_rxjs_namespaceObject = require("rxjs");
|
|
|
521
521
|
class LLMProvider {
|
|
522
522
|
constructor(options){
|
|
523
523
|
this.baseURL = '';
|
|
524
|
-
this.apiKey = options
|
|
525
|
-
this.model = options
|
|
524
|
+
this.apiKey = options?.api_key;
|
|
525
|
+
this.model = options?.model;
|
|
526
526
|
}
|
|
527
527
|
async call(options) {
|
|
528
528
|
const response = await this.request({
|
|
@@ -663,7 +663,7 @@ class VolcengineProvider extends LLMProvider {
|
|
|
663
663
|
return response;
|
|
664
664
|
}
|
|
665
665
|
constructor(...args){
|
|
666
|
-
super(...args), this.baseURL = 'https://ark.cn-beijing.volces.com/api/v3/chat/completions
|
|
666
|
+
super(...args), this.baseURL = 'https://ark.cn-beijing.volces.com/api/v3/chat/completions';
|
|
667
667
|
}
|
|
668
668
|
}
|
|
669
669
|
class MetaProvider extends LLMProvider {
|