@friendliai/ai-provider 0.1.1 → 0.1.2

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/README.md CHANGED
@@ -12,7 +12,7 @@ npm i @friendliai/ai-provider
12
12
 
13
13
  ## Provider Instance
14
14
 
15
- You can import the default provider instance `friendliai` from `@friendliai/ai-provider`:
15
+ You need to set the `FRIENDLI_TOKEN` environment variable to use the FriendliAI provider, and you can import the default provider instance `friendliai` from `@friendliai/ai-provider`.
16
16
 
17
17
  ```ts
18
18
  import { friendliai } from "@friendliai/ai-provider";
package/dist/index.d.mts CHANGED
@@ -44,7 +44,7 @@ interface FriendliAIChatSettings {
44
44
  BETA FEATURE: Include the model's training loss in the response.
45
45
  */
46
46
  tools?: Array<{
47
- type: "web:site" | "web:search" | "math:calendar" | "math:statistics" | "math:calculator" | "code:python-interpreter";
47
+ type: "calculator" | "web_search";
48
48
  }>;
49
49
  /**
50
50
  Whether to use legacy function calling. Defaults to false.
package/dist/index.d.ts CHANGED
@@ -44,7 +44,7 @@ interface FriendliAIChatSettings {
44
44
  BETA FEATURE: Include the model's training loss in the response.
45
45
  */
46
46
  tools?: Array<{
47
- type: "web:site" | "web:search" | "math:calendar" | "math:statistics" | "math:calculator" | "code:python-interpreter";
47
+ type: "calculator" | "web_search";
48
48
  }>;
49
49
  /**
50
50
  Whether to use legacy function calling. Defaults to false.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@friendliai/ai-provider",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",