()
| 491 | } |
| 492 | |
| 493 | function initialize() |
| 494 | { |
| 495 | var savedApiKey = localStorage.getItem("anthropic-api-key"); |
| 496 | if(savedApiKey) |
| 497 | setApiKey(savedApiKey); |
| 498 | } |
| 499 | |
| 500 | export const apiState = writable("KEY_REQUIRED"); |
| 501 | export const messageList = writable(messages); |