twinnydotdev / twinny

The most no-nonsense, locally or API-hosted AI code completion plugin for Visual Studio Code - like GitHub Copilot but completely free and 100% private.
https://twinny.dev
MIT License
3.05k stars 164 forks source link

Randomly stopped working, shows 404 in ollama serve output #149

Closed SerialIterator closed 8 months ago

SerialIterator commented 8 months ago

Describe the bug It was working fine then the chat window shows the spinning wheel forever. I see [GIN] 2024/02/29 - 17:45:18 | 404 | 122.317µs | 127.0.0.1 | POST "/api/chat" (404) in the ollama terminal output. I can click the twinny bot head to select a model and ollama terminal shows [GIN] 2024/02/29 - 17:49:10 | 200 | 383.735µs | 127.0.0.1 | GET "/api/tags" (200) so I know it's connecting to the server and receiving a reply. It also displays the models I have available for Chat and Fill-in-middle fields. No model output though.

To Reproduce Steps to reproduce the behavior:

  1. Go to twinny chat window
  2. Type message
  3. Send Message
  4. See spinning wheel forever

Expected behavior Expected response from model

Screenshots

image

Desktop (please complete the following information):

Additional context Using deepseek-coder:33b-instruct model which was working fine but now is not.

AntonKrug commented 8 months ago

And what happens if you do direct curl command to the API example:

curl http://localhost:11434/api/chat -d '{
  "model": "deepseek-coder:33b-instruct",
  "messages": [
    { "role": "user", "content": "hello there" }
  ]
}'
SerialIterator commented 8 months ago

{"model":"deepseek-coder:33b-instruct","created_at":"2024-03-01T04:18:26.568493591Z","message":{"role":"assistant","content":"!"},"done":false}
{"model":"deepseek-coder:33b-instruct","created_at":"2024-03-01T04:18:26.604873738Z","message":{"role":"assistant","content":" How"},"done":false}
{"model":"deepseek-coder:33b-instruct","created_at":"2024-03-01T04:18:26.639791761Z","message":{"role":"assistant","content":" can"},"done":false}
{"model":"deepseek-coder:33b-instruct","created_at":"2024-03-01T04:18:26.676272116Z","message":{"role":"assistant","content":" I"},"done":false}
{"model":"deepseek-coder:33b-instruct","created_at":"2024-03-01T04:18:26.712023863Z","message":{"role":"assistant","content":" assist"},"done":false}
{"model":"deepseek-coder:33b-instruct","created_at":"2024-03-01T04:18:26.747786557Z","message":{"role":"assistant","content":" you"},"done":false}
{"model":"deepseek-coder:33b-instruct","created_at":"2024-03-01T04:18:26.784063406Z","message":{"role":"assistant","content":" with"},"done":false}
{"model":"deepseek-coder:33b-instruct","created_at":"2024-03-01T04:18:26.818714227Z","message":{"role":"assistant","content":" your"},"done":false}
{"model":"deepseek-coder:33b-instruct","created_at":"2024-03-01T04:18:26.853442203Z","message":{"role":"assistant","content":" programming"},"done":false}
{"model":"deepseek-coder:33b-instruct","created_at":"2024-03-01T04:18:26.889043108Z","message":{"role":"assistant","content":" or"},"done":false}
{"model":"deepseek-coder:33b-instruct","created_at":"2024-03-01T04:18:26.923883289Z","message":{"role":"assistant","content":" computer"},"done":false}
{"model":"deepseek-coder:33b-instruct","created_at":"2024-03-01T04:18:26.959568056Z","message":{"role":"assistant","content":" science"},"done":false}
{"model":"deepseek-coder:33b-instruct","created_at":"2024-03-01T04:18:26.993800157Z","message":{"role":"assistant","content":" questions"},"done":false}
{"model":"deepseek-coder:33b-instruct","created_at":"2024-03-01T04:18:27.029722032Z","message":{"role":"assistant","content":" today"},"done":false}
{"model":"deepseek-coder:33b-instruct","created_at":"2024-03-01T04:18:27.064393852Z","message":{"role":"assistant","content":"?"},"done":false}
{"model":"deepseek-coder:33b-instruct","created_at":"2024-03-01T04:18:27.100141182Z","message":{"role":"assistant","content":"\n"},"done":false}
{"model":"deepseek-coder:33b-instruct","created_at":"2024-03-01T04:18:27.133883981Z","message":{"role":"assistant","content":""},"done":true,"total_duration":4044992615,"load_duration":3108084858,"prompt_eval_count":71,"prompt_eval_duration":333788000,"eval_count":18,"eval_duration":602241000}```

I'm also able to use Open WebUI with no problem:
<img width="476" alt="image" src="https://github.com/rjmacarthy/twinny/assets/33410869/79dda7ab-dadb-4d2e-9267-924be9059a31">

update:
I changed User and Workspace `Chat Model Name` and `Fim Model Name` to another model and back and now I do get a reply in chat but it only responds "Sorry, I don't understand. Please try again."

The Ollama output for that request is:
```time=2024-02-29T20:25:59.574-08:00 level=INFO source=cpu_common.go:11 msg="CPU has AVX2"
time=2024-02-29T20:25:59.574-08:00 level=INFO source=gpu.go:146 msg="CUDA Compute Capability detected: 8.6"
time=2024-02-29T20:25:59.574-08:00 level=INFO source=cpu_common.go:11 msg="CPU has AVX2"
time=2024-02-29T20:25:59.574-08:00 level=INFO source=gpu.go:146 msg="CUDA Compute Capability detected: 8.6"
time=2024-02-29T20:25:59.574-08:00 level=INFO source=cpu_common.go:11 msg="CPU has AVX2"
loading library /tmp/ollama805221853/cuda_v11/libext_server.so
time=2024-02-29T20:25:59.574-08:00 level=INFO source=dyn_ext_server.go:90 msg="Loading Dynamic llm server: /tmp/ollama805221853/cuda_v11/libext_server.so"
time=2024-02-29T20:25:59.574-08:00 level=INFO source=dyn_ext_server.go:145 msg="Initializing llama server"
llama_model_loader: loaded meta data with 26 key-value pairs and 561 tensors from /home/jason/.ollama/models/blobs/sha256:065b9a7416ba28634cd4efc2cd3024d4755731c1275dc0286b81b01793185fbb (version GGUF V3 (latest))
llama_model_loader: Dumping metadata keys/values. Note: KV overrides do not apply in this output.
llama_model_loader: - kv   0:                       general.architecture str              = llama
llama_model_loader: - kv   1:                               general.name str              = deepseek-ai
llama_model_loader: - kv   2:                       llama.context_length u32              = 16384
llama_model_loader: - kv   3:                     llama.embedding_length u32              = 7168
llama_model_loader: - kv   4:                          llama.block_count u32              = 62
llama_model_loader: - kv   5:                  llama.feed_forward_length u32              = 19200
llama_model_loader: - kv   6:                 llama.rope.dimension_count u32              = 128llama_model_loader: - kv   7:                 llama.attention.head_count u32              = 56
llama_model_loader: - kv   8:              llama.attention.head_count_kv u32              = 8
llama_model_loader: - kv   9:     llama.attention.layer_norm_rms_epsilon f32              = 0.000001
llama_model_loader: - kv  10:                       llama.rope.freq_base f32              = 100000.000000
llama_model_loader: - kv  11:                    llama.rope.scaling.type str              = linear
llama_model_loader: - kv  12:                  llama.rope.scaling.factor f32              = 4.000000
llama_model_loader: - kv  13:                          general.file_type u32              = 2
llama_model_loader: - kv  14:                       tokenizer.ggml.model str              = gpt2
llama_model_loader: - kv  15:                      tokenizer.ggml.tokens arr[str,32256]   = ["!", "\"", "#", "$", "%", "&", "'", ...
llama_model_loader: - kv  16:                      tokenizer.ggml.scores arr[f32,32256]   = [0.000000, 0.000000, 0.000000, 0.0000...
llama_model_loader: - kv  17:                  tokenizer.ggml.token_type arr[i32,32256]   = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, ...
llama_model_loader: - kv  18:                      tokenizer.ggml.merges arr[str,31757]   = ["Ġ Ġ", "Ġ t", "Ġ a", "i n", "h e...
llama_model_loader: - kv  19:                tokenizer.ggml.bos_token_id u32              = 32013
llama_model_loader: - kv  20:                tokenizer.ggml.eos_token_id u32              = 32021
llama_model_loader: - kv  21:            tokenizer.ggml.padding_token_id u32              = 32014
llama_model_loader: - kv  22:               tokenizer.ggml.add_bos_token bool             = true
llama_model_loader: - kv  23:               tokenizer.ggml.add_eos_token bool             = false
llama_model_loader: - kv  24:                    tokenizer.chat_template str              = {% if not add_generation_prompt is de...
llama_model_loader: - kv  25:               general.quantization_version u32              = 2
llama_model_loader: - type  f32:  125 tensors
llama_model_loader: - type q4_0:  435 tensors
llama_model_loader: - type q6_K:    1 tensors
llm_load_vocab: mismatch in special tokens definition ( 243/32256 vs 256/32256 ).
llm_load_print_meta: format           = GGUF V3 (latest)
llm_load_print_meta: arch             = llama
llm_load_print_meta: vocab type       = BPE
llm_load_print_meta: n_vocab          = 32256
llm_load_print_meta: n_merges         = 31757
llm_load_print_meta: n_ctx_train      = 16384
llm_load_print_meta: n_embd           = 7168
llm_load_print_meta: n_head           = 56
llm_load_print_meta: n_head_kv        = 8
llm_load_print_meta: n_layer          = 62
llm_load_print_meta: n_rot            = 128
llm_load_print_meta: n_embd_head_k    = 128
llm_load_print_meta: n_embd_head_v    = 128
llm_load_print_meta: n_gqa            = 7
llm_load_print_meta: n_embd_k_gqa     = 1024
llm_load_print_meta: n_embd_v_gqa     = 1024
llm_load_print_meta: f_norm_eps       = 0.0e+00
llm_load_print_meta: f_norm_rms_eps   = 1.0e-06
llm_load_print_meta: f_clamp_kqv      = 0.0e+00
llm_load_print_meta: f_max_alibi_bias = 0.0e+00
llm_load_print_meta: n_ff             = 19200
llm_load_print_meta: n_expert         = 0
llm_load_print_meta: n_expert_used    = 0
llm_load_print_meta: rope scaling     = linear
llm_load_print_meta: freq_base_train  = 100000.0
llm_load_print_meta: freq_scale_train = 0.25
llm_load_print_meta: n_yarn_orig_ctx  = 16384
llm_load_print_meta: rope_finetuned   = unknown
llm_load_print_meta: model type       = ?B
llm_load_print_meta: model ftype      = Q4_0
llm_load_print_meta: model params     = 33.34 B
llm_load_print_meta: model size       = 17.53 GiB (4.52 BPW)
llm_load_print_meta: general.name     = deepseek-ai
llm_load_print_meta: BOS token        = 32013 '<|begin▁of▁sentence|>'
llm_load_print_meta: EOS token        = 32021 '<|EOT|>'
llm_load_print_meta: PAD token        = 32014 '<|end▁of▁sentence|>'
llm_load_print_meta: LF token         = 126 'Ä'
llm_load_tensors: ggml ctx size =    0.43 MiB
llm_load_tensors: offloading 62 repeating layers to GPU
llm_load_tensors: offloading non-repeating layers to GPU
llm_load_tensors: offloaded 63/63 layers to GPU
llm_load_tensors:        CPU buffer size =   124.03 MiB
llm_load_tensors:      CUDA0 buffer size = 17822.34 MiB
...................................................................................................
llama_new_context_with_model: n_ctx      = 2048
llama_new_context_with_model: freq_base  = 100000.0
llama_new_context_with_model: freq_scale = 0.25
llama_kv_cache_init:      CUDA0 KV buffer size =   496.00 MiB
llama_new_context_with_model: KV self size  =  496.00 MiB, K (f16):  248.00 MiB, V (f16):  248.00 MiB
llama_new_context_with_model:  CUDA_Host input buffer size   =    18.01 MiB
llama_new_context_with_model:      CUDA0 compute buffer size =   297.00 MiB
llama_new_context_with_model:  CUDA_Host compute buffer size =    15.40 MiB
llama_new_context_with_model: graph splits (measure): 3
time=2024-02-29T20:26:02.545-08:00 level=INFO source=dyn_ext_server.go:156 msg="Starting llama main loop"
[GIN] 2024/02/29 - 20:26:03 | 200 |  3.803592974s |       127.0.0.1 | POST     "/api/chat"```

Although I have Twinny Debug mode active, I don't know where it's output is if that would help
rjmacarthy commented 8 months ago

Please make sure to update to the latest Ollama and latest Twinny version if not already. And also please open developer tools in vs code and share the debug information displayed when making requests. You need to enable the setting if it's not already enabled for debug at the bottom of the settings for twinny extension. Thanks.

SerialIterator commented 8 months ago

I pulled up dev tools and this is the console output when I send "hello":


***Twinny Stream Debug***
Streaming response from localhost:11434.
Request body:
{
  "model": "deepseek-coder:33b-instruct",
  "prompt": "<<SYS>>You are a helpful, respectful and honest coding assistant.\nAlways reply with using markdown.\nFor code refactoring, use markdown with code formatting.<</SYS>>\n  \nhello\n  ",
  "stream": true,
  "messages": [
    {
      "role": "system",
      "content": "<<SYS>>You are a helpful, respectful and honest coding assistant.\nAlways reply with using markdown.\nFor code refactoring, use markdown with code formatting.<</SYS>>\n  "
    },
    {
      "role": "user",
      "content": "hello",
      "type": "chat"
    }
  ],
  "keep_alive": "5m",
  "options": {
    "temperature": 0.2,
    "num_predict": 4096
  }
}

Request options:
{
  "hostname": "localhost",
  "port": 11434,
  "path": "/api/chat/",
  "protocol": "http",
  "method": "POST",
  "headers": {
    "Content-Type": "application/json",
    "Authorization": "Bearer "
  }
}

log.ts:437   ERR [Extension Host] Error parsing JSON: TypeError: Cannot read properties of undefined (reading '0')
    at e.getChatDataFromProvider (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:129389)
    at onStreamData (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:90816)
    at Object.transform (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:122055)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at transformStreamDefaultControllerEnqueue (node:internal/webstreams/transformstream:490:5)
    at TransformStreamDefaultController.enqueue (node:internal/webstreams/transformstream:301:5)
    at Object.transform (node:internal/webstreams/encoding:156:22)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at transformStreamDefaultControllerEnqueue (node:internal/webstreams/transformstream:490:5)
    at TransformStreamDefaultController.enqueue (node:internal/webstreams/transformstream:301:5)
    at Object.identityTransformAlgorithm [as transform] (node:internal/deps/undici/undici:11066:22)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at node:internal/webstreams/transformstream:554:16
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
console.ts:137 [Extension Host] Error parsing JSON: TypeError: Cannot read properties of undefined (reading '0')
    at e.getChatDataFromProvider (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:129389)
    at onStreamData (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:90816)
    at Object.transform (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:122055)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at transformStreamDefaultControllerEnqueue (node:internal/webstreams/transformstream:490:5)
    at TransformStreamDefaultController.enqueue (node:internal/webstreams/transformstream:301:5)
    at Object.transform (node:internal/webstreams/encoding:156:22)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at transformStreamDefaultControllerEnqueue (node:internal/webstreams/transformstream:490:5)
    at TransformStreamDefaultController.enqueue (node:internal/webstreams/transformstream:301:5)
    at Object.identityTransformAlgorithm [as transform] (node:internal/deps/undici/undici:11066:22)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at node:internal/webstreams/transformstream:554:16
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
p @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
S @ rpcProtocol.ts:458
Q @ rpcProtocol.ts:443
M @ rpcProtocol.ts:373
L @ rpcProtocol.ts:299
(anonymous) @ rpcProtocol.ts:161
y @ event.ts:1127
fire @ event.ts:1158
fire @ ipc.net.ts:650
V.onmessage @ localProcessExtensionHost.ts:376
log.ts:437   ERR [Extension Host] Error parsing JSON: TypeError: Cannot read properties of undefined (reading '0')
    at e.getChatDataFromProvider (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:129389)
    at onStreamData (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:90816)
    at Object.transform (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:122055)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at transformStreamDefaultControllerEnqueue (node:internal/webstreams/transformstream:490:5)
    at TransformStreamDefaultController.enqueue (node:internal/webstreams/transformstream:301:5)
    at Object.transform (node:internal/webstreams/encoding:156:22)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at transformStreamDefaultControllerEnqueue (node:internal/webstreams/transformstream:490:5)
    at TransformStreamDefaultController.enqueue (node:internal/webstreams/transformstream:301:5)
    at Object.identityTransformAlgorithm [as transform] (node:internal/deps/undici/undici:11066:22)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at ReadableStreamDefaultController.enqueue (node:internal/webstreams/readablestream:1039:5)
    at Fetch.resume (node:internal/deps/undici/undici:11424:45)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
console.ts:137 [Extension Host] Error parsing JSON: TypeError: Cannot read properties of undefined (reading '0')
    at e.getChatDataFromProvider (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:129389)
    at onStreamData (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:90816)
    at Object.transform (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:122055)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at transformStreamDefaultControllerEnqueue (node:internal/webstreams/transformstream:490:5)
    at TransformStreamDefaultController.enqueue (node:internal/webstreams/transformstream:301:5)
    at Object.transform (node:internal/webstreams/encoding:156:22)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at transformStreamDefaultControllerEnqueue (node:internal/webstreams/transformstream:490:5)
    at TransformStreamDefaultController.enqueue (node:internal/webstreams/transformstream:301:5)
    at Object.identityTransformAlgorithm [as transform] (node:internal/deps/undici/undici:11066:22)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at ReadableStreamDefaultController.enqueue (node:internal/webstreams/readablestream:1039:5)
    at Fetch.resume (node:internal/deps/undici/undici:11424:45)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
p @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
S @ rpcProtocol.ts:458
Q @ rpcProtocol.ts:443
M @ rpcProtocol.ts:373
L @ rpcProtocol.ts:299
(anonymous) @ rpcProtocol.ts:161
y @ event.ts:1127
fire @ event.ts:1158
fire @ ipc.net.ts:650
V.onmessage @ localProcessExtensionHost.ts:376
log.ts:437   ERR [Extension Host] Error parsing JSON: TypeError: Cannot read properties of undefined (reading '0')
    at e.getChatDataFromProvider (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:129389)
    at onStreamData (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:90816)
    at Object.transform (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:122055)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at transformStreamDefaultControllerEnqueue (node:internal/webstreams/transformstream:490:5)
    at TransformStreamDefaultController.enqueue (node:internal/webstreams/transformstream:301:5)
    at Object.transform (node:internal/webstreams/encoding:156:22)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at transformStreamDefaultControllerEnqueue (node:internal/webstreams/transformstream:490:5)
    at TransformStreamDefaultController.enqueue (node:internal/webstreams/transformstream:301:5)
    at Object.identityTransformAlgorithm [as transform] (node:internal/deps/undici/undici:11066:22)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at ReadableStreamDefaultController.enqueue (node:internal/webstreams/readablestream:1039:5)
    at Fetch.resume (node:internal/deps/undici/undici:11424:45)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
console.ts:137 [Extension Host] Error parsing JSON: TypeError: Cannot read properties of undefined (reading '0')
    at e.getChatDataFromProvider (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:129389)
    at onStreamData (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:90816)
    at Object.transform (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:122055)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at transformStreamDefaultControllerEnqueue (node:internal/webstreams/transformstream:490:5)
    at TransformStreamDefaultController.enqueue (node:internal/webstreams/transformstream:301:5)
    at Object.transform (node:internal/webstreams/encoding:156:22)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at transformStreamDefaultControllerEnqueue (node:internal/webstreams/transformstream:490:5)
    at TransformStreamDefaultController.enqueue (node:internal/webstreams/transformstream:301:5)
    at Object.identityTransformAlgorithm [as transform] (node:internal/deps/undici/undici:11066:22)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at ReadableStreamDefaultController.enqueue (node:internal/webstreams/readablestream:1039:5)
    at Fetch.resume (node:internal/deps/undici/undici:11424:45)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
p @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
S @ rpcProtocol.ts:458
Q @ rpcProtocol.ts:443
M @ rpcProtocol.ts:373
L @ rpcProtocol.ts:299
(anonymous) @ rpcProtocol.ts:161
y @ event.ts:1127
fire @ event.ts:1158
fire @ ipc.net.ts:650
V.onmessage @ localProcessExtensionHost.ts:376
log.ts:437   ERR [Extension Host] Error parsing JSON: TypeError: Cannot read properties of undefined (reading '0')
    at e.getChatDataFromProvider (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:129389)
    at onStreamData (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:90816)
    at Object.transform (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:122055)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at transformStreamDefaultControllerEnqueue (node:internal/webstreams/transformstream:490:5)
    at TransformStreamDefaultController.enqueue (node:internal/webstreams/transformstream:301:5)
    at Object.transform (node:internal/webstreams/encoding:156:22)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at transformStreamDefaultControllerEnqueue (node:internal/webstreams/transformstream:490:5)
    at TransformStreamDefaultController.enqueue (node:internal/webstreams/transformstream:301:5)
    at Object.identityTransformAlgorithm [as transform] (node:internal/deps/undici/undici:11066:22)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at ReadableStreamDefaultController.enqueue (node:internal/webstreams/readablestream:1039:5)
    at Fetch.resume (node:internal/deps/undici/undici:11424:45)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
console.ts:137 [Extension Host] Error parsing JSON: TypeError: Cannot read properties of undefined (reading '0')
    at e.getChatDataFromProvider (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:129389)
    at onStreamData (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:90816)
    at Object.transform (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:122055)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at transformStreamDefaultControllerEnqueue (node:internal/webstreams/transformstream:490:5)
    at TransformStreamDefaultController.enqueue (node:internal/webstreams/transformstream:301:5)
    at Object.transform (node:internal/webstreams/encoding:156:22)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at transformStreamDefaultControllerEnqueue (node:internal/webstreams/transformstream:490:5)
    at TransformStreamDefaultController.enqueue (node:internal/webstreams/transformstream:301:5)
    at Object.identityTransformAlgorithm [as transform] (node:internal/deps/undici/undici:11066:22)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at ReadableStreamDefaultController.enqueue (node:internal/webstreams/readablestream:1039:5)
    at Fetch.resume (node:internal/deps/undici/undici:11424:45)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
p @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
S @ rpcProtocol.ts:458
Q @ rpcProtocol.ts:443
M @ rpcProtocol.ts:373
L @ rpcProtocol.ts:299
(anonymous) @ rpcProtocol.ts:161
y @ event.ts:1127
fire @ event.ts:1158
fire @ ipc.net.ts:650
V.onmessage @ localProcessExtensionHost.ts:376
log.ts:437   ERR [Extension Host] Error parsing JSON: TypeError: Cannot read properties of undefined (reading '0')
    at e.getChatDataFromProvider (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:129389)
    at onStreamData (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:90816)
    at Object.transform (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:122055)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at transformStreamDefaultControllerEnqueue (node:internal/webstreams/transformstream:490:5)
    at TransformStreamDefaultController.enqueue (node:internal/webstreams/transformstream:301:5)
    at Object.transform (node:internal/webstreams/encoding:156:22)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at transformStreamDefaultControllerEnqueue (node:internal/webstreams/transformstream:490:5)
    at TransformStreamDefaultController.enqueue (node:internal/webstreams/transformstream:301:5)
    at Object.identityTransformAlgorithm [as transform] (node:internal/deps/undici/undici:11066:22)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at ReadableStreamDefaultController.enqueue (node:internal/webstreams/readablestream:1039:5)
    at Fetch.resume (node:internal/deps/undici/undici:11424:45)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
console.ts:137 [Extension Host] Error parsing JSON: TypeError: Cannot read properties of undefined (reading '0')
    at e.getChatDataFromProvider (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:129389)
    at onStreamData (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:90816)
    at Object.transform (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:122055)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at transformStreamDefaultControllerEnqueue (node:internal/webstreams/transformstream:490:5)
    at TransformStreamDefaultController.enqueue (node:internal/webstreams/transformstream:301:5)
    at Object.transform (node:internal/webstreams/encoding:156:22)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at transformStreamDefaultControllerEnqueue (node:internal/webstreams/transformstream:490:5)
    at TransformStreamDefaultController.enqueue (node:internal/webstreams/transformstream:301:5)
    at Object.identityTransformAlgorithm [as transform] (node:internal/deps/undici/undici:11066:22)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at ReadableStreamDefaultController.enqueue (node:internal/webstreams/readablestream:1039:5)
    at Fetch.resume (node:internal/deps/undici/undici:11424:45)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
p @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
S @ rpcProtocol.ts:458
Q @ rpcProtocol.ts:443
M @ rpcProtocol.ts:373
L @ rpcProtocol.ts:299
(anonymous) @ rpcProtocol.ts:161
y @ event.ts:1127
fire @ event.ts:1158
fire @ ipc.net.ts:650
V.onmessage @ localProcessExtensionHost.ts:376
log.ts:437   ERR [Extension Host] Error parsing JSON: TypeError: Cannot read properties of undefined (reading '0')
    at e.getChatDataFromProvider (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:129389)
    at onStreamData (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:90816)
    at Object.transform (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:122055)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at transformStreamDefaultControllerEnqueue (node:internal/webstreams/transformstream:490:5)
    at TransformStreamDefaultController.enqueue (node:internal/webstreams/transformstream:301:5)
    at Object.transform (node:internal/webstreams/encoding:156:22)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at transformStreamDefaultControllerEnqueue (node:internal/webstreams/transformstream:490:5)
    at TransformStreamDefaultController.enqueue (node:internal/webstreams/transformstream:301:5)
    at Object.identityTransformAlgorithm [as transform] (node:internal/deps/undici/undici:11066:22)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at ReadableStreamDefaultController.enqueue (node:internal/webstreams/readablestream:1039:5)
    at Fetch.resume (node:internal/deps/undici/undici:11424:45)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
console.ts:137 [Extension Host] Error parsing JSON: TypeError: Cannot read properties of undefined (reading '0')
    at e.getChatDataFromProvider (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:129389)
    at onStreamData (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:90816)
    at Object.transform (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:122055)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at transformStreamDefaultControllerEnqueue (node:internal/webstreams/transformstream:490:5)
    at TransformStreamDefaultController.enqueue (node:internal/webstreams/transformstream:301:5)
    at Object.transform (node:internal/webstreams/encoding:156:22)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at transformStreamDefaultControllerEnqueue (node:internal/webstreams/transformstream:490:5)
    at TransformStreamDefaultController.enqueue (node:internal/webstreams/transformstream:301:5)
    at Object.identityTransformAlgorithm [as transform] (node:internal/deps/undici/undici:11066:22)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at ReadableStreamDefaultController.enqueue (node:internal/webstreams/readablestream:1039:5)
    at Fetch.resume (node:internal/deps/undici/undici:11424:45)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
p @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
S @ rpcProtocol.ts:458
Q @ rpcProtocol.ts:443
M @ rpcProtocol.ts:373
L @ rpcProtocol.ts:299
(anonymous) @ rpcProtocol.ts:161
y @ event.ts:1127
fire @ event.ts:1158
fire @ ipc.net.ts:650
V.onmessage @ localProcessExtensionHost.ts:376
log.ts:437   ERR [Extension Host] Error parsing JSON: TypeError: Cannot read properties of undefined (reading '0')
    at e.getChatDataFromProvider (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:129389)
    at onStreamData (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:90816)
    at Object.transform (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:122055)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at transformStreamDefaultControllerEnqueue (node:internal/webstreams/transformstream:490:5)
    at TransformStreamDefaultController.enqueue (node:internal/webstreams/transformstream:301:5)
    at Object.transform (node:internal/webstreams/encoding:156:22)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at transformStreamDefaultControllerEnqueue (node:internal/webstreams/transformstream:490:5)
    at TransformStreamDefaultController.enqueue (node:internal/webstreams/transformstream:301:5)
    at Object.identityTransformAlgorithm [as transform] (node:internal/deps/undici/undici:11066:22)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at ReadableStreamDefaultController.enqueue (node:internal/webstreams/readablestream:1039:5)
    at Fetch.resume (node:internal/deps/undici/undici:11424:45)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
console.ts:137 [Extension Host] Error parsing JSON: TypeError: Cannot read properties of undefined (reading '0')
    at e.getChatDataFromProvider (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:129389)
    at onStreamData (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:90816)
    at Object.transform (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:122055)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at transformStreamDefaultControllerEnqueue (node:internal/webstreams/transformstream:490:5)
    at TransformStreamDefaultController.enqueue (node:internal/webstreams/transformstream:301:5)
    at Object.transform (node:internal/webstreams/encoding:156:22)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at transformStreamDefaultControllerEnqueue (node:internal/webstreams/transformstream:490:5)
    at TransformStreamDefaultController.enqueue (node:internal/webstreams/transformstream:301:5)
    at Object.identityTransformAlgorithm [as transform] (node:internal/deps/undici/undici:11066:22)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at ReadableStreamDefaultController.enqueue (node:internal/webstreams/readablestream:1039:5)
    at Fetch.resume (node:internal/deps/undici/undici:11424:45)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
p @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
S @ rpcProtocol.ts:458
Q @ rpcProtocol.ts:443
M @ rpcProtocol.ts:373
L @ rpcProtocol.ts:299
(anonymous) @ rpcProtocol.ts:161
y @ event.ts:1127
fire @ event.ts:1158
fire @ ipc.net.ts:650
V.onmessage @ localProcessExtensionHost.ts:376
log.ts:437   ERR [Extension Host] Error parsing JSON: TypeError: Cannot read properties of undefined (reading '0')
    at e.getChatDataFromProvider (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:129389)
    at onStreamData (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:90816)
    at Object.transform (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:122055)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at transformStreamDefaultControllerEnqueue (node:internal/webstreams/transformstream:490:5)
    at TransformStreamDefaultController.enqueue (node:internal/webstreams/transformstream:301:5)
    at Object.transform (node:internal/webstreams/encoding:156:22)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at transformStreamDefaultControllerEnqueue (node:internal/webstreams/transformstream:490:5)
    at TransformStreamDefaultController.enqueue (node:internal/webstreams/transformstream:301:5)
    at Object.identityTransformAlgorithm [as transform] (node:internal/deps/undici/undici:11066:22)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at ReadableStreamDefaultController.enqueue (node:internal/webstreams/readablestream:1039:5)
    at Fetch.resume (node:internal/deps/undici/undici:11424:45)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
console.ts:137 [Extension Host] Error parsing JSON: TypeError: Cannot read properties of undefined (reading '0')
    at e.getChatDataFromProvider (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:129389)
    at onStreamData (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:90816)
    at Object.transform (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:122055)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at transformStreamDefaultControllerEnqueue (node:internal/webstreams/transformstream:490:5)
    at TransformStreamDefaultController.enqueue (node:internal/webstreams/transformstream:301:5)
    at Object.transform (node:internal/webstreams/encoding:156:22)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at transformStreamDefaultControllerEnqueue (node:internal/webstreams/transformstream:490:5)
    at TransformStreamDefaultController.enqueue (node:internal/webstreams/transformstream:301:5)
    at Object.identityTransformAlgorithm [as transform] (node:internal/deps/undici/undici:11066:22)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at ReadableStreamDefaultController.enqueue (node:internal/webstreams/readablestream:1039:5)
    at Fetch.resume (node:internal/deps/undici/undici:11424:45)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
p @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
S @ rpcProtocol.ts:458
Q @ rpcProtocol.ts:443
M @ rpcProtocol.ts:373
L @ rpcProtocol.ts:299
(anonymous) @ rpcProtocol.ts:161
y @ event.ts:1127
fire @ event.ts:1158
fire @ ipc.net.ts:650
V.onmessage @ localProcessExtensionHost.ts:376
log.ts:437   ERR [Extension Host] Error parsing JSON: TypeError: Cannot read properties of undefined (reading '0')
    at e.getChatDataFromProvider (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:129389)
    at onStreamData (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:90816)
    at Object.transform (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:122055)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at transformStreamDefaultControllerEnqueue (node:internal/webstreams/transformstream:490:5)
    at TransformStreamDefaultController.enqueue (node:internal/webstreams/transformstream:301:5)
    at Object.transform (node:internal/webstreams/encoding:156:22)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at transformStreamDefaultControllerEnqueue (node:internal/webstreams/transformstream:490:5)
    at TransformStreamDefaultController.enqueue (node:internal/webstreams/transformstream:301:5)
    at Object.identityTransformAlgorithm [as transform] (node:internal/deps/undici/undici:11066:22)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at ReadableStreamDefaultController.enqueue (node:internal/webstreams/readablestream:1039:5)
    at Fetch.resume (node:internal/deps/undici/undici:11424:45)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
console.ts:137 [Extension Host] Error parsing JSON: TypeError: Cannot read properties of undefined (reading '0')
    at e.getChatDataFromProvider (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:129389)
    at onStreamData (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:90816)
    at Object.transform (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:122055)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at transformStreamDefaultControllerEnqueue (node:internal/webstreams/transformstream:490:5)
    at TransformStreamDefaultController.enqueue (node:internal/webstreams/transformstream:301:5)
    at Object.transform (node:internal/webstreams/encoding:156:22)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at transformStreamDefaultControllerEnqueue (node:internal/webstreams/transformstream:490:5)
    at TransformStreamDefaultController.enqueue (node:internal/webstreams/transformstream:301:5)
    at Object.identityTransformAlgorithm [as transform] (node:internal/deps/undici/undici:11066:22)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at ReadableStreamDefaultController.enqueue (node:internal/webstreams/readablestream:1039:5)
    at Fetch.resume (node:internal/deps/undici/undici:11424:45)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
p @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
S @ rpcProtocol.ts:458
Q @ rpcProtocol.ts:443
M @ rpcProtocol.ts:373
L @ rpcProtocol.ts:299
(anonymous) @ rpcProtocol.ts:161
y @ event.ts:1127
fire @ event.ts:1158
fire @ ipc.net.ts:650
V.onmessage @ localProcessExtensionHost.ts:376
log.ts:437   ERR [Extension Host] Error parsing JSON: TypeError: Cannot read properties of undefined (reading '0')
    at e.getChatDataFromProvider (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:129389)
    at onStreamData (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:90816)
    at Object.transform (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:122055)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at transformStreamDefaultControllerEnqueue (node:internal/webstreams/transformstream:490:5)
    at TransformStreamDefaultController.enqueue (node:internal/webstreams/transformstream:301:5)
    at Object.transform (node:internal/webstreams/encoding:156:22)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at transformStreamDefaultControllerEnqueue (node:internal/webstreams/transformstream:490:5)
    at TransformStreamDefaultController.enqueue (node:internal/webstreams/transformstream:301:5)
    at Object.identityTransformAlgorithm [as transform] (node:internal/deps/undici/undici:11066:22)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at ReadableStreamDefaultController.enqueue (node:internal/webstreams/readablestream:1039:5)
    at Fetch.resume (node:internal/deps/undici/undici:11424:45)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
console.ts:137 [Extension Host] Error parsing JSON: TypeError: Cannot read properties of undefined (reading '0')
    at e.getChatDataFromProvider (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:129389)
    at onStreamData (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:90816)
    at Object.transform (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:122055)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at transformStreamDefaultControllerEnqueue (node:internal/webstreams/transformstream:490:5)
    at TransformStreamDefaultController.enqueue (node:internal/webstreams/transformstream:301:5)
    at Object.transform (node:internal/webstreams/encoding:156:22)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at transformStreamDefaultControllerEnqueue (node:internal/webstreams/transformstream:490:5)
    at TransformStreamDefaultController.enqueue (node:internal/webstreams/transformstream:301:5)
    at Object.identityTransformAlgorithm [as transform] (node:internal/deps/undici/undici:11066:22)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at ReadableStreamDefaultController.enqueue (node:internal/webstreams/readablestream:1039:5)
    at Fetch.resume (node:internal/deps/undici/undici:11424:45)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
p @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
S @ rpcProtocol.ts:458
Q @ rpcProtocol.ts:443
M @ rpcProtocol.ts:373
L @ rpcProtocol.ts:299
(anonymous) @ rpcProtocol.ts:161
y @ event.ts:1127
fire @ event.ts:1158
fire @ ipc.net.ts:650
V.onmessage @ localProcessExtensionHost.ts:376
log.ts:437   ERR [Extension Host] Error parsing JSON: TypeError: Cannot read properties of undefined (reading '0')
    at e.getChatDataFromProvider (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:129389)
    at onStreamData (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:90816)
    at Object.transform (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:122055)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at transformStreamDefaultControllerEnqueue (node:internal/webstreams/transformstream:490:5)
    at TransformStreamDefaultController.enqueue (node:internal/webstreams/transformstream:301:5)
    at Object.transform (node:internal/webstreams/encoding:156:22)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at transformStreamDefaultControllerEnqueue (node:internal/webstreams/transformstream:490:5)
    at TransformStreamDefaultController.enqueue (node:internal/webstreams/transformstream:301:5)
    at Object.identityTransformAlgorithm [as transform] (node:internal/deps/undici/undici:11066:22)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at ReadableStreamDefaultController.enqueue (node:internal/webstreams/readablestream:1039:5)
    at Fetch.resume (node:internal/deps/undici/undici:11424:45)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
console.ts:137 [Extension Host] Error parsing JSON: TypeError: Cannot read properties of undefined (reading '0')
    at e.getChatDataFromProvider (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:129389)
    at onStreamData (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:90816)
    at Object.transform (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:122055)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at transformStreamDefaultControllerEnqueue (node:internal/webstreams/transformstream:490:5)
    at TransformStreamDefaultController.enqueue (node:internal/webstreams/transformstream:301:5)
    at Object.transform (node:internal/webstreams/encoding:156:22)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at transformStreamDefaultControllerEnqueue (node:internal/webstreams/transformstream:490:5)
    at TransformStreamDefaultController.enqueue (node:internal/webstreams/transformstream:301:5)
    at Object.identityTransformAlgorithm [as transform] (node:internal/deps/undici/undici:11066:22)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at ReadableStreamDefaultController.enqueue (node:internal/webstreams/readablestream:1039:5)
    at Fetch.resume (node:internal/deps/undici/undici:11424:45)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
p @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
S @ rpcProtocol.ts:458
Q @ rpcProtocol.ts:443
M @ rpcProtocol.ts:373
L @ rpcProtocol.ts:299
(anonymous) @ rpcProtocol.ts:161
y @ event.ts:1127
fire @ event.ts:1158
fire @ ipc.net.ts:650
V.onmessage @ localProcessExtensionHost.ts:376
log.ts:437   ERR [Extension Host] Error parsing JSON: TypeError: Cannot read properties of undefined (reading '0')
    at e.getChatDataFromProvider (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:129389)
    at onStreamData (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:90816)
    at Object.transform (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:122055)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at transformStreamDefaultControllerEnqueue (node:internal/webstreams/transformstream:490:5)
    at TransformStreamDefaultController.enqueue (node:internal/webstreams/transformstream:301:5)
    at Object.transform (node:internal/webstreams/encoding:156:22)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at transformStreamDefaultControllerEnqueue (node:internal/webstreams/transformstream:490:5)
    at TransformStreamDefaultController.enqueue (node:internal/webstreams/transformstream:301:5)
    at Object.identityTransformAlgorithm [as transform] (node:internal/deps/undici/undici:11066:22)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at ReadableStreamDefaultController.enqueue (node:internal/webstreams/readablestream:1039:5)
    at Fetch.resume (node:internal/deps/undici/undici:11424:45)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
console.ts:137 [Extension Host] Error parsing JSON: TypeError: Cannot read properties of undefined (reading '0')
    at e.getChatDataFromProvider (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:129389)
    at onStreamData (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:90816)
    at Object.transform (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:122055)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at transformStreamDefaultControllerEnqueue (node:internal/webstreams/transformstream:490:5)
    at TransformStreamDefaultController.enqueue (node:internal/webstreams/transformstream:301:5)
    at Object.transform (node:internal/webstreams/encoding:156:22)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at transformStreamDefaultControllerEnqueue (node:internal/webstreams/transformstream:490:5)
    at TransformStreamDefaultController.enqueue (node:internal/webstreams/transformstream:301:5)
    at Object.identityTransformAlgorithm [as transform] (node:internal/deps/undici/undici:11066:22)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at ReadableStreamDefaultController.enqueue (node:internal/webstreams/readablestream:1039:5)
    at Fetch.resume (node:internal/deps/undici/undici:11424:45)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
p @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
S @ rpcProtocol.ts:458
Q @ rpcProtocol.ts:443
M @ rpcProtocol.ts:373
L @ rpcProtocol.ts:299
(anonymous) @ rpcProtocol.ts:161
y @ event.ts:1127
fire @ event.ts:1158
fire @ ipc.net.ts:650
V.onmessage @ localProcessExtensionHost.ts:376
log.ts:437   ERR [Extension Host] Error parsing JSON: TypeError: Cannot read properties of undefined (reading '0')
    at e.getChatDataFromProvider (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:129389)
    at onStreamData (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:90816)
    at Object.transform (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:122055)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at transformStreamDefaultControllerEnqueue (node:internal/webstreams/transformstream:490:5)
    at TransformStreamDefaultController.enqueue (node:internal/webstreams/transformstream:301:5)
    at Object.transform (node:internal/webstreams/encoding:156:22)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at transformStreamDefaultControllerEnqueue (node:internal/webstreams/transformstream:490:5)
    at TransformStreamDefaultController.enqueue (node:internal/webstreams/transformstream:301:5)
    at Object.identityTransformAlgorithm [as transform] (node:internal/deps/undici/undici:11066:22)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at ReadableStreamDefaultController.enqueue (node:internal/webstreams/readablestream:1039:5)
    at Fetch.resume (node:internal/deps/undici/undici:11424:45)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
console.ts:137 [Extension Host] Error parsing JSON: TypeError: Cannot read properties of undefined (reading '0')
    at e.getChatDataFromProvider (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:129389)
    at onStreamData (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:90816)
    at Object.transform (c:\Users\jason\.vscode\extensions\rjmacarthy.twinny-3.7.7\out\index.js:2:122055)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at transformStreamDefaultControllerEnqueue (node:internal/webstreams/transformstream:490:5)
    at TransformStreamDefaultController.enqueue (node:internal/webstreams/transformstream:301:5)
    at Object.transform (node:internal/webstreams/encoding:156:22)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at transformStreamDefaultControllerEnqueue (node:internal/webstreams/transformstream:490:5)
    at TransformStreamDefaultController.enqueue (node:internal/webstreams/transformstream:301:5)
    at Object.identityTransformAlgorithm [as transform] (node:internal/deps/undici/undici:11066:22)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at transformStreamDefaultControllerPerformTransform (node:internal/webstreams/transformstream:509:18)
    at transformStreamDefaultSinkWriteAlgorithm (node:internal/webstreams/transformstream:559:10)
    at Object.write (node:internal/webstreams/transformstream:364:14)
    at ensureIsPromise (node:internal/webstreams/util:192:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1114:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1229:5)
    at writableStreamDefaultControllerWrite (node:internal/webstreams/writablestream:1103:3)
    at writableStreamDefaultWriterWrite (node:internal/webstreams/writablestream:993:3)
    at Object.[kChunk] (node:internal/webstreams/readablestream:1401:28)
    at readableStreamFulfillReadRequest (node:internal/webstreams/readablestream:1992:24)
    at readableStreamDefaultControllerEnqueue (node:internal/webstreams/readablestream:2183:5)
    at ReadableStreamDefaultController.enqueue (node:internal/webstreams/readablestream:1039:5)
    at Fetch.resume (node:internal/deps/undici/undici:11424:45)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
p @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
S @ rpcProtocol.ts:458
Q @ rpcProtocol.ts:443
M @ rpcProtocol.ts:373
L @ rpcProtocol.ts:299
(anonymous) @ rpcProtocol.ts:161
y @ event.ts:1127
fire @ event.ts:1158
fire @ ipc.net.ts:650
V.onmessage @ localProcessExtensionHost.ts:376```
rjmacarthy commented 8 months ago

Please can you make the following changes:

{
  "hostname": "localhost",
  "port": 11434,
  "path": "/v1/chat/completions", // new chat api endpoint for ollama
  "protocol": "http",
  "method": "POST",
  "headers": {
    "Content-Type": "application/json",
    "Authorization": "Bearer "
  }
}

Also please edit your prompt templates and remove the <<SYS>> from the system template, this is now handled by Ollama OpenAI compatible chat endpoint.

https://ollama.com/blog/openai-compatibility https://github.com/rjmacarthy/twinny/releases/tag/v3.7.0

SerialIterator commented 8 months ago

I've changed what I could in Twinny settings but where do I edit the template at? There is no options for protocol, method or headers in the twinny settings...

It's working now. I guess this can be closed although I'm sure I've tested this configuration of settings (default) already. Thank you

rjmacarthy commented 8 months ago

Thanks, I thought it would cause an issue for some people which is why I made a minor release to 3.7 . You can edit the templates here, add, remove or edit existing ones to improve the response from the model as you see fit. The protocol is managed by the useTls setting which if enabled changes to https. The method is always POST and the headers are always just the Bearer token if there is one.

image

Opens a new vscode with the editable templates image

Templates you add/remove/edit can be set as default here:

image