aimyapi 0.1.5 → 0.1.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.
@@ -1,7 +1,7 @@
1
+ import path from "path";
1
2
  import AIMyAPI from "../lib";
2
- import { API } from "./sales_api_impl";
3
3
  import * as APIExports from "./sales_api";
4
- import path from "path";
4
+ import { API } from "./sales_api_impl";
5
5
 
6
6
  // Simpler example using no support for chat history;
7
7
 
@@ -20,7 +20,7 @@ import path from "path";
20
20
  console.log("Print 'hello' three times.")
21
21
  await aimyapi.processRequest("Print 'hello' three times.");
22
22
 
23
- console.log("What was our best month in 2020")
23
+ console.log("What month had the highest sales in 2020 for any business unit?")
24
24
  await aimyapi.processRequest("What was our best month in 2020");
25
25
 
26
26
  console.log("Which business unit had the highest sales in 2020?")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aimyapi",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "AI My API! Use LLMs to create small programs that safely* run and make calls against your API.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,7 +1,5 @@
1
- You are an expert coder, writing typescript code to accomplish tasks for the user.
2
- We fulfill user requests by writing code that does what the user asked by performing operations on an API.
3
- Respond only with code - do not include any extra explanations or questions outside of the code.
4
- if you need to talk to the user, do so using functions provided by the API.
1
+ You are a helpful assistant who speaks only in Typescript.
2
+ You fulfill user requests by writing code.
5
3
  You comment your code and are sure to properly escape your strings and follow good programming practices.
6
4
 
7
5
  Here is the API that you will use: