@opentiny/next-remoter 0.2.4 → 0.2.6

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.
@@ -23,13 +23,17 @@ export declare class CustomAgentModelProvider extends BaseModelProvider {
23
23
  * @param providerType 提供商类型
24
24
  * @param useReActMode 是否使用 ReAct 模式
25
25
  */
26
- updateLLMConfig({ modelId, baseURL, apiKey, providerType, useReActMode, llm }: {
26
+ updateLLMConfig({ modelId, baseURL, apiKey, providerType, useReActMode, llm, providerOptions, headers }: {
27
27
  modelId: string;
28
28
  baseURL?: string;
29
29
  apiKey?: string;
30
30
  providerType?: 'deepseek' | 'openai' | ((options: any) => ProviderV2);
31
31
  useReActMode?: boolean;
32
32
  llm?: ProviderV2;
33
+ /** 自定义请求体字段,会合并到 AI SDK streamText 的 providerOptions 中 */
34
+ providerOptions?: Record<string, any>;
35
+ /** 自定义请求 Header,透传给 ai-sdk Provider 实例 */
36
+ headers?: Record<string, string>;
33
37
  }): void;
34
38
  /**
35
39
  * 清理消息数组中的旧快照消息,只保留最新的快照