kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
old-agentic-v1^2
rodzic
c166a2199e
commit
a7730d5b1a
|
@ -149,6 +149,15 @@ export function createTestKyInstance(
|
|||
}
|
||||
|
||||
const responseBody = await response.json()
|
||||
const resopnseBodyAsBuffer = Buffer.from(
|
||||
JSON.stringify(responseBody),
|
||||
'utf8'
|
||||
)
|
||||
|
||||
if (resopnseBodyAsBuffer.byteLength >= 1_000_000) {
|
||||
// ignore response bodies which are too large
|
||||
return
|
||||
}
|
||||
// console.log({ cacheKey, responseBody })
|
||||
|
||||
await keyv.set(cacheKey, responseBody)
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
- [Development](#development)
|
||||
- [Environment](#environment)
|
||||
- [Local Testing](#local-testing)
|
||||
- [Scratch](#scratch)
|
||||
- [License](#license)
|
||||
|
||||
## Intro
|
||||
|
@ -56,41 +55,6 @@ Ensure you have `REDIS_URL_TEST` set to a valid redis connection URL.
|
|||
pnpm test
|
||||
```
|
||||
|
||||
Agentic uses [ava][ava] as its test runner. To just execute unit tests, run:
|
||||
|
||||
```bash
|
||||
pnpm test:unit
|
||||
```
|
||||
|
||||
To run a specific test, use the `--match` flag like so:
|
||||
|
||||
```bash
|
||||
pnpm test:unit --match='name of the test'
|
||||
```
|
||||
|
||||
### Scratch
|
||||
|
||||
- `@agentic/core`
|
||||
- Task, Agentic, logging, caching, types, constants
|
||||
- `@agentic/human-feedback`
|
||||
- `@agentic/human-feedback-cli`
|
||||
- `@agentic/human-feedback-sms`
|
||||
- `@agentic/human-feedback-slack`
|
||||
- `@agentic/experimenation`
|
||||
- `@agentic/tools`
|
||||
- `@agentic/tools-serpapi`
|
||||
- `@agentic/tools-metaphor`
|
||||
- `@agentic/tools-browser`
|
||||
- `@agentic/tools-multion`
|
||||
- `@agentic/llms`
|
||||
- `@agentic/llms-openai`
|
||||
- `@agentic/llms-anthropic`
|
||||
- `@agentic/llms-huggingface`
|
||||
- `@agentic/agents`
|
||||
- `@agentic/cli`
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Travis Fischer](https://transitivebullsh.it)
|
||||
|
||||
[ava]: https://github.com/avajs/ava
|
||||
|
|
Ładowanie…
Reference in New Issue