Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
fix: restructured and fixes error breaking the app (#19)
Browse files Browse the repository at this point in the history
* fix: restructured and fixes error breaking the app

* update cohere

* unhold anthropic tests

* fix anthropic tests

* fix error

* update anthropic tests

* test mistral

* add maxTokens

* max tokens as 1

* use cheaper models  in test

* change version to `0.1.2`

---------

Co-authored-by: patcher99 <[email protected]>
  • Loading branch information
AmanAgarwal041 and patcher9 authored Mar 24, 2024
1 parent c455396 commit d562717
Show file tree
Hide file tree
Showing 19 changed files with 1,533 additions and 1,396 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ DokuMetry.init({llm: cohere, dokuUrl: "YOUR_DOKU_INGESTER_URL", apiKey: "YOUR_DO
| skipResp | Skip response from the Doku Ingester for faster execution | Optional |


## Error
To make it easier to follow the server errors caused by dokumetry, we have logged the errors like `Dokumetry: Error transmitting Data: HTTP status 401`, where `Dokumetry` is the application name in blue and the rest is the error in red.

## Semantic Versioning
This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) conventions, though certain backwards-incompatible changes may be released as minor versions:

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dokumetry",
"version": "0.1.1",
"version": "0.1.2",
"description": "An NPM Package for tracking OpenAI API calls and sending usage metrics to Doku",
"main": "src/index.js",
"scripts": {
Expand All @@ -27,8 +27,8 @@
"stream": "^0.0.2"
},
"devDependencies": {
"@azure/openai": "^1.0.0-beta.11",
"@anthropic-ai/sdk": "^0.18.0",
"@azure/openai": "^1.0.0-beta.11",
"@mistralai/mistralai": "^0.1.3",
"chai": "^5.0.3",
"cohere-ai": "^7.7.3",
Expand Down
168 changes: 0 additions & 168 deletions src/anthropic.js

This file was deleted.

Loading

0 comments on commit d562717

Please sign in to comment.