Skip to content

Commit c23401c

Browse files
committed
Release 0.8.8-beta1
1 parent 75fc08a commit c23401c

78 files changed

Lines changed: 2320 additions & 2439 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
node_modules
22
.DS_Store
3-
/dist
4-
.env
3+
/dist

.prettierignore

Lines changed: 0 additions & 17 deletions
This file was deleted.

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ retry limit (default: 2).
100100

101101
A request is deemed retriable when any of the following HTTP status codes is returned:
102102

103-
- [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout)
104-
- [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests)
105-
- [5XX](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500) (Internal Server Errors)
103+
- [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout)
104+
- [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests)
105+
- [5XX](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500) (Internal Server Errors)
106106

107107
Use the `maxRetries` request option to configure this behavior.
108108

@@ -139,12 +139,12 @@ controller.abort(); // aborts the request
139139
The SDK defaults to `node-fetch` but will use the global fetch client if present. The SDK works in the following
140140
runtimes:
141141

142-
- Node.js 18+
143-
- Vercel
144-
- Cloudflare Workers
145-
- Deno v1.25+
146-
- Bun 1.0+
147-
- React Native
142+
- Node.js 18+
143+
- Vercel
144+
- Cloudflare Workers
145+
- Deno v1.25+
146+
- Bun 1.0+
147+
- React Native
148148

149149
### Customizing Fetch Client
150150

package.json

Lines changed: 31 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
11
{
22
"name": "humanloop",
3-
"version": "0.8.8",
3+
"version": "0.8.8-beta1",
44
"private": false,
55
"repository": "https://github.com/humanloop/humanloop-node",
66
"main": "./index.js",
77
"types": "./index.d.ts",
88
"scripts": {
99
"format": "prettier . --write --ignore-unknown",
1010
"build": "tsc",
11-
"prepack": "yarn build && ./scripts/prepack.sh",
12-
"clean": "./scripts/clean.sh",
13-
"test": "jest --detectOpenHandles --forceExit"
11+
"prepack": "cp -rv dist/. .",
12+
"test": "jest"
1413
},
1514
"dependencies": {
15+
"url-join": "4.0.1",
16+
"form-data": "^4.0.0",
17+
"formdata-node": "^6.0.3",
18+
"node-fetch": "2.7.0",
19+
"qs": "6.11.2",
20+
"readable-stream": "^4.5.2",
21+
"form-data-encoder": "^4.0.2",
1622
"@opentelemetry/api": "^1.9.0",
1723
"@opentelemetry/auto-instrumentations-node": "^0.53.0",
1824
"@opentelemetry/sdk-metrics": "^1.28.0",
@@ -22,48 +28,37 @@
2228
"@traceloop/instrumentation-anthropic": "^0.11.1",
2329
"@traceloop/instrumentation-cohere": "^0.11.1",
2430
"@traceloop/instrumentation-openai": "^0.11.3",
25-
"cli-progress": "^3.12.0",
26-
"form-data": "^4.0.0",
27-
"form-data-encoder": "^4.0.2",
28-
"formdata-node": "^6.0.3",
29-
"lodash": "^4.17.21",
31+
"uuid": "^11.0.3",
3032
"nanoid": "^5.0.9",
31-
"node-fetch": "2.7.0",
32-
"p-map": "^7.0.3",
33-
"qs": "6.11.2",
34-
"readable-stream": "^4.5.2",
35-
"stable-hash": "^0.0.4",
36-
"ts-json-schema-generator": "^2.3.0",
37-
"url-join": "4.0.1",
38-
"uuid": "^11.0.3"
33+
"cli-progress": "^3.12.0",
34+
"lodash": "^4.17.21"
3935
},
4036
"devDependencies": {
41-
"@anthropic-ai/sdk": "^0.32.1",
42-
"@babel/core": "^7.26.0",
43-
"@babel/plugin-transform-modules-commonjs": "^7.26.3",
44-
"@babel/preset-env": "^7.26.0",
45-
"@trivago/prettier-plugin-sort-imports": "^5.2.0",
46-
"@types/cli-progress": "^3.11.6",
47-
"@types/jest": "29.5.5",
48-
"@types/lodash": "4.17.5",
49-
"@types/node": "17.0.33",
50-
"@types/node-fetch": "2.6.9",
37+
"@types/url-join": "4.0.1",
5138
"@types/qs": "6.9.8",
39+
"@types/node-fetch": "2.6.9",
5240
"@types/readable-stream": "^4.0.15",
53-
"@types/url-join": "4.0.1",
54-
"babel-jest": "^29.7.0",
55-
"cohere-ai": "^7.15.0",
56-
"dotenv": "^16.4.6",
5741
"fetch-mock-jest": "^1.5.1",
42+
"webpack": "^5.94.0",
43+
"ts-loader": "^9.3.1",
5844
"jest": "29.7.0",
45+
"@types/jest": "29.5.5",
46+
"ts-jest": "29.1.1",
5947
"jest-environment-jsdom": "29.7.0",
60-
"jsonschema": "^1.4.1",
61-
"openai": "^4.74.0",
48+
"@types/node": "17.0.33",
6249
"prettier": "^3.4.2",
63-
"ts-jest": "29.1.1",
64-
"ts-loader": "^9.3.1",
6550
"typescript": "4.6.4",
66-
"webpack": "^5.94.0"
51+
"openai": "^4.74.0",
52+
"@anthropic-ai/sdk": "^0.32.1",
53+
"cohere-ai": "^7.15.0",
54+
"dotenv": "^16.4.6",
55+
"jsonschema": "^1.4.1",
56+
"@types/cli-progress": "^3.11.6",
57+
"babel-jest": "^29.7.0",
58+
"@babel/core": "^7.26.0",
59+
"@babel/plugin-transform-modules-commonjs": "^7.26.3",
60+
"@babel/preset-env": "^7.26.0",
61+
"@types/lodash": "^4.17.13"
6762
},
6863
"browser": {
6964
"fs": false,

reference.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -555,12 +555,6 @@ await client.prompts.upsert({
555555
provider: "openai",
556556
maxTokens: -1,
557557
temperature: 0.7,
558-
topP: 1,
559-
presencePenalty: 0,
560-
frequencyPenalty: 0,
561-
other: {},
562-
tools: [],
563-
linkedTools: [],
564558
commitMessage: "Initial commit",
565559
});
566560
```

0 commit comments

Comments
 (0)