-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathTODO
More file actions
30 lines (25 loc) · 1.63 KB
/
TODO
File metadata and controls
30 lines (25 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
## Todo
GOAL
- Take this framework live to NPM
- take ai project manager live (based on published NPM package)
- Adding Gemini support
- Gemini has a couple things that it seems better at.
Next:
- bundle as proper library
- make library example
Future:
- refactor out rendering logic from client to a CLI-oriented module, so that I can break out the message lifecycle from the rendering for server use
- tag tools individually for caching
- Vision
- handle 429 issues
```
429 {"type":"error","error":{"type":"rate_limit_error","message":"Number of request tokens has exceeded your per-minute rate limit (https://docs.anthropic.com/en/api/rate-limits); see the response headers for current usage. Please reduce the prompt length or the maximum tokens requested, or try again later. You may also contact sales at https://www.anthropic.com/contact-sales to discuss your options for a rate limit increase."}}
2 | import { castToError } from "./core.mjs";
3 | export class AnthropicError extends Error {
4 | }
5 | export class APIError extends AnthropicError {
6 | constructor(status, error, message, headers) {
7 | super(`${APIError.makeMessage(status, error, message)}`);
^
error: 429 {"type":"error","error":{"type":"rate_limit_error","message":"Number of request tokens has exceeded your per-minute rate limit (https://docs.anthropic.com/en/api/rate-limits); see the response headers for current usage. Please reduce the prompt length or the maximum tokens requested, or try again later. You may also contact sales at https://www.anthropic.com/contact-sales to discuss your options for a rate limit increase."}}
```