Skip to content

Commit

Permalink
Release 0.8.8-beta1
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Dec 20, 2024
1 parent 75fc08a commit c23401c
Show file tree
Hide file tree
Showing 78 changed files with 2,320 additions and 2,439 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
node_modules
.DS_Store
/dist
.env
/dist
17 changes: 0 additions & 17 deletions .prettierignore

This file was deleted.

18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ retry limit (default: 2).

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

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

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

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

- Node.js 18+
- Vercel
- Cloudflare Workers
- Deno v1.25+
- Bun 1.0+
- React Native
- Node.js 18+
- Vercel
- Cloudflare Workers
- Deno v1.25+
- Bun 1.0+
- React Native

### Customizing Fetch Client

Expand Down
67 changes: 31 additions & 36 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
{
"name": "humanloop",
"version": "0.8.8",
"version": "0.8.8-beta1",
"private": false,
"repository": "https://github.com/humanloop/humanloop-node",
"main": "./index.js",
"types": "./index.d.ts",
"scripts": {
"format": "prettier . --write --ignore-unknown",
"build": "tsc",
"prepack": "yarn build && ./scripts/prepack.sh",
"clean": "./scripts/clean.sh",
"test": "jest --detectOpenHandles --forceExit"
"prepack": "cp -rv dist/. .",
"test": "jest"
},
"dependencies": {
"url-join": "4.0.1",
"form-data": "^4.0.0",
"formdata-node": "^6.0.3",
"node-fetch": "2.7.0",
"qs": "6.11.2",
"readable-stream": "^4.5.2",
"form-data-encoder": "^4.0.2",
"@opentelemetry/api": "^1.9.0",
"@opentelemetry/auto-instrumentations-node": "^0.53.0",
"@opentelemetry/sdk-metrics": "^1.28.0",
Expand All @@ -22,48 +28,37 @@
"@traceloop/instrumentation-anthropic": "^0.11.1",
"@traceloop/instrumentation-cohere": "^0.11.1",
"@traceloop/instrumentation-openai": "^0.11.3",
"cli-progress": "^3.12.0",
"form-data": "^4.0.0",
"form-data-encoder": "^4.0.2",
"formdata-node": "^6.0.3",
"lodash": "^4.17.21",
"uuid": "^11.0.3",
"nanoid": "^5.0.9",
"node-fetch": "2.7.0",
"p-map": "^7.0.3",
"qs": "6.11.2",
"readable-stream": "^4.5.2",
"stable-hash": "^0.0.4",
"ts-json-schema-generator": "^2.3.0",
"url-join": "4.0.1",
"uuid": "^11.0.3"
"cli-progress": "^3.12.0",
"lodash": "^4.17.21"
},
"devDependencies": {
"@anthropic-ai/sdk": "^0.32.1",
"@babel/core": "^7.26.0",
"@babel/plugin-transform-modules-commonjs": "^7.26.3",
"@babel/preset-env": "^7.26.0",
"@trivago/prettier-plugin-sort-imports": "^5.2.0",
"@types/cli-progress": "^3.11.6",
"@types/jest": "29.5.5",
"@types/lodash": "4.17.5",
"@types/node": "17.0.33",
"@types/node-fetch": "2.6.9",
"@types/url-join": "4.0.1",
"@types/qs": "6.9.8",
"@types/node-fetch": "2.6.9",
"@types/readable-stream": "^4.0.15",
"@types/url-join": "4.0.1",
"babel-jest": "^29.7.0",
"cohere-ai": "^7.15.0",
"dotenv": "^16.4.6",
"fetch-mock-jest": "^1.5.1",
"webpack": "^5.94.0",
"ts-loader": "^9.3.1",
"jest": "29.7.0",
"@types/jest": "29.5.5",
"ts-jest": "29.1.1",
"jest-environment-jsdom": "29.7.0",
"jsonschema": "^1.4.1",
"openai": "^4.74.0",
"@types/node": "17.0.33",
"prettier": "^3.4.2",
"ts-jest": "29.1.1",
"ts-loader": "^9.3.1",
"typescript": "4.6.4",
"webpack": "^5.94.0"
"openai": "^4.74.0",
"@anthropic-ai/sdk": "^0.32.1",
"cohere-ai": "^7.15.0",
"dotenv": "^16.4.6",
"jsonschema": "^1.4.1",
"@types/cli-progress": "^3.11.6",
"babel-jest": "^29.7.0",
"@babel/core": "^7.26.0",
"@babel/plugin-transform-modules-commonjs": "^7.26.3",
"@babel/preset-env": "^7.26.0",
"@types/lodash": "^4.17.13"
},
"browser": {
"fs": false,
Expand Down
6 changes: 0 additions & 6 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -555,12 +555,6 @@ await client.prompts.upsert({
provider: "openai",
maxTokens: -1,
temperature: 0.7,
topP: 1,
presencePenalty: 0,
frequencyPenalty: 0,
other: {},
tools: [],
linkedTools: [],
commitMessage: "Initial commit",
});
```
Expand Down
Loading

0 comments on commit c23401c

Please sign in to comment.