@uibot/agents 0.19.0 → 0.22.0

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.
@@ -14,12 +14,16 @@ export interface ResolvedModelTarget {
14
14
  */
15
15
  apiKey?: string | null;
16
16
  baseURL?: string;
17
+ /** Provider-specific HTTP headers (e.g. `x-opencode-session` for OpenCode Go). */
18
+ defaultHeaders?: Record<string, string>;
17
19
  }
18
20
  export interface ModelFactoryOptions {
19
21
  /** API key for the model provider. Falls back to OPENAI_API_KEY env var. */
20
22
  apiKey?: string;
21
23
  /** Base URL for OpenAI-compatible endpoints (e.g. DashScope). Falls back to OPENAI_BASE_URL env var. */
22
24
  baseURL?: string;
25
+ /** Default HTTP headers merged into OpenAI SDK configuration. */
26
+ defaultHeaders?: Record<string, string>;
23
27
  /** Default model ID when the agent has no defaultModel specified. */
24
28
  defaultModelId?: string;
25
29
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uibot/agents",
3
- "version": "0.19.0",
3
+ "version": "0.22.0",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -27,8 +27,8 @@
27
27
  "access": "public"
28
28
  },
29
29
  "dependencies": {
30
- "@uibot/context": "^0.19.0",
31
- "@uibot/contracts": "^0.19.0",
30
+ "@uibot/context": "^0.22.0",
31
+ "@uibot/contracts": "^0.22.0",
32
32
  "@langchain/anthropic": "^1.5.5",
33
33
  "@langchain/core": "^1.2.6",
34
34
  "@langchain/langgraph": "^1.4.4",