Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Idk what to name this title but can you show me how to fix this #27

Closed
KhangLoveCat opened this issue Jan 2, 2025 · 2 comments
Closed

Comments

@KhangLoveCat
Copy link

This is the log:
C:\Users\admin\Documents\Neuro>python main.py
Starting Project...
2025-01-02 22:07:24.203231: I tensorflow/core/util/port.cc:153] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable TF_ENABLE_ONEDNN_OPTS=0.
2025-01-02 22:07:26.202536: I tensorflow/core/util/port.cc:153] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable TF_ENABLE_ONEDNN_OPTS=0.
GPT2InferenceModel has generative capabilities, as prepare_inputs_for_generation is explicitly overwritten. However, it doesn't directly inherit from GenerationMixin. From 👉v4.50👈 onwards, PreTrainedModel will NOT inherit from GenerationMixin, and this model will lose the ability to call generate and other related functions.

  • If you're using trust_remote_code=True, you can get rid of this warning by loading the model with an auto class. See https://huggingface.co/docs/transformers/en/model_doc/auto#auto-classes
  • If you are the owner of the model architecture code, please modify your model class such that it inherits from GenerationMixin (after PreTrainedModel, otherwise you'll get an exception).
  • If you are not the owner of the model architecture class, please contact the model code owner to update it.
    [2025-01-02 22:07:55,993] [INFO] [real_accelerator.py:191:get_accelerator] Setting ds_accelerator to cuda (auto detect)

[2025-01-02 22:07:56,720] torch.distributed.elastic.multiprocessing.redirects: [WARNING] NOTE: Redirects are currently not supported in Windows or MacOs.
[2025-01-02 22:07:57,079] [INFO] [logging.py:96:log_dist] [Rank -1] DeepSpeed info: version=0.14.0+ce78a63, git-hash=ce78a63, git-branch=master

[2025-01-02 22:07:57,081] [WARNING] [config_utils.py:69:_process_deprecated_field] Config parameter replace_method is deprecated. This parameter is no longer needed, please remove from your call to DeepSpeed-inference

[2025-01-02 22:07:57,081] [WARNING] [config_utils.py:69:_process_deprecated_field] Config parameter mp_size is deprecated use tensor_parallel.tp_size instead

[2025-01-02 22:07:57,081] [INFO] [logging.py:96:log_dist] [Rank -1] quantize_bits = 8 mlp_extra_grouping = False, quantize_groups = 1

[2025-01-02 22:07:57,416] [INFO] [logging.py:96:log_dist] [Rank -1] DeepSpeed-Inference config: {'layer_id': 0, 'hidden_size': 1024, 'intermediate_size': 4096, 'heads': 16, 'num_hidden_layers': -1, 'dtype': torch.float32, 'pre_layer_norm': True, 'norm_type': <NormType.LayerNorm: 1>, 'local_rank': -1, 'stochastic_mode': False, 'epsilon': 1e-05, 'mp_size': 1, 'scale_attention': True, 'triangular_masking': True, 'local_attention': False, 'window_size': 1, 'rotary_dim': -1, 'rotate_half': False, 'rotate_every_two': True, 'return_tuple': True, 'mlp_after_attn': True, 'mlp_act_func_type': <ActivationFuncType.GELU: 1>, 'specialized_mode': False, 'training_mp_size': 1, 'bigscience_bloom': False, 'max_out_tokens': 1024, 'min_out_tokens': 1, 'scale_attn_by_inverse_layer_idx': False, 'enable_qkv_quantization': False, 'use_mup': False, 'return_single_tuple': False, 'set_empty_params': False, 'transposed_mode': False, 'use_triton': False, 'triton_autotune': False, 'num_kv': -1, 'rope_theta': 10000}

You are using the default legacy behaviour of the <class 'transformers.models.llama.tokenization_llama_fast.LlamaTokenizerFast'>. This is expected, and simply means that the legacy (previous) behavior will be used so nothing changes for you. If you want to use the new behaviour, set legacy=False. This should only be set if you understand what it means, and thoroughly read the reason why this was added as explained in huggingface/transformers#24565 - if you loaded a llama tokenizer from a GGUF file you can ignore this message.
2025-01-02 22:08:06.398059: I tensorflow/core/util/port.cc:153] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable TF_ENABLE_ONEDNN_OPTS=0.
2025-01-02 22:08:07.967958: I tensorflow/core/util/port.cc:153] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable TF_ENABLE_ONEDNN_OPTS=0.
MEMORY: Loaded 1 memories from database.
Starting Socket.io server
Prompter loop started
STT Starting
======== Running on http://0.0.0.0:8080 ========
(Press CTRL+C to quit)
Failed to connect to Vtube Studio. Disabling Vtube Studio module.
STT Ready
SYSTEM READY
SIGNALS: Human Talking Start
Could not locate cudnn_ops64_9.dll. Please make sure it is in your library path!
Invalid handle. Cannot load symbol cudnnCreateTensorDescriptor
CoquiEngine: General synthesis error: occured in synthesize worker thread of coqui engine.
Process Process-1:
Traceback (most recent call last):
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\multiprocessing\connection.py", line 328, in _recv_bytes
nread, err = ov.GetOverlappedResult(True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
BrokenPipeError: [WinError 109] The pipe has been ended

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\RealtimeTTS\engines\coqui_engine.py", line 515, in _synthesize_worker
message = conn.recv()
^^^^^^^^^^^
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\multiprocessing\connection.py", line 250, in recv
buf = self._recv_bytes()
^^^^^^^^^^^^^^^^^^
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\multiprocessing\connection.py", line 337, in _recv_bytes
raise EOFError
Exception in thread Thread-2 (poll_connection)EOFError
:

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
Traceback (most recent call last):
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 1045, in _bootstrap_inner
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\multiprocessing\process.py", line 314, in _bootstrap
self.run()
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\multiprocessing\process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\RealtimeTTS\engines\coqui_engine.py", line 643, in _synthesize_worker
conn.send(('error', str(e)))
self.run()
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\multiprocessing\connection.py", line 206, in send
self._send_bytes(_ForkingPickler.dumps(obj))
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\multiprocessing\connection.py", line 289, in _send_bytes
ov, err = _winapi.WriteFile(self._handle, buf, overlapped=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 982, in run
BrokenPipeError: [WinError 232] The pipe is being closed
self._target(*self._args, **self._kwargs)
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\RealtimeSTT\audio_recorder.py", line 115, in poll_connection
if self.conn.poll(0.01):
^^^^^^^^^^^^^^^^^^^^
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\multiprocessing\connection.py", line 257, in poll
return self._poll(timeout)
^^^^^^^^^^^^^^^^^^^
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\multiprocessing\connection.py", line 344, in _poll
_winapi.PeekNamedPipe(self._handle)[0] != 0):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
BrokenPipeError: [WinError 109] The pipe has been ended

@kimjammer
Copy link
Owner

Hi there, at least one of the issues is that the microphone or speaker devices has not been configured correctly. Run utils/listAudioDevices.py, and find the correct device numbers and put them in constants.py. Note that if you add or remove a device it will change device numbers, so do it with all the devices that you'll use connected.

@KhangLoveCat
Copy link
Author

Thanks but i have another problem with the http ig:
This is the log of main.py: C:\Users\admin\Documents\Neuro>python main.py
Starting Project...
2025-01-03 13:41:18.197133: I tensorflow/core/util/port.cc:153] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable TF_ENABLE_ONEDNN_OPTS=0.
2025-01-03 13:41:20.188489: I tensorflow/core/util/port.cc:153] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable TF_ENABLE_ONEDNN_OPTS=0.
GPT2InferenceModel has generative capabilities, as prepare_inputs_for_generation is explicitly overwritten. However, it doesn't directly inherit from GenerationMixin. From 👉v4.50👈 onwards, PreTrainedModel will NOT inherit from GenerationMixin, and this model will lose the ability to call generate and other related functions.

  • If you're using trust_remote_code=True, you can get rid of this warning by loading the model with an auto class. See https://huggingface.co/docs/transformers/en/model_doc/auto#auto-classes
  • If you are the owner of the model architecture code, please modify your model class such that it inherits from GenerationMixin (after PreTrainedModel, otherwise you'll get an exception).
  • If you are not the owner of the model architecture class, please contact the model code owner to update it.
    [2025-01-03 13:41:50,939] [INFO] [real_accelerator.py:191:get_accelerator] Setting ds_accelerator to cuda (auto detect)

[2025-01-03 13:41:51,580] torch.distributed.elastic.multiprocessing.redirects: [WARNING] NOTE: Redirects are currently not supported in Windows or MacOs.
[2025-01-03 13:41:51,898] [INFO] [logging.py:96:log_dist] [Rank -1] DeepSpeed info: version=0.14.0+ce78a63, git-hash=ce78a63, git-branch=master

[2025-01-03 13:41:51,899] [WARNING] [config_utils.py:69:_process_deprecated_field] Config parameter replace_method is deprecated. This parameter is no longer needed, please remove from your call to DeepSpeed-inference

[2025-01-03 13:41:51,899] [WARNING] [config_utils.py:69:_process_deprecated_field] Config parameter mp_size is deprecated use tensor_parallel.tp_size instead

[2025-01-03 13:41:51,899] [INFO] [logging.py:96:log_dist] [Rank -1] quantize_bits = 8 mlp_extra_grouping = False, quantize_groups = 1

[2025-01-03 13:41:52,189] [INFO] [logging.py:96:log_dist] [Rank -1] DeepSpeed-Inference config: {'layer_id': 0, 'hidden_size': 1024, 'intermediate_size': 4096, 'heads': 16, 'num_hidden_layers': -1, 'dtype': torch.float32, 'pre_layer_norm': True, 'norm_type': <NormType.LayerNorm: 1>, 'local_rank': -1, 'stochastic_mode': False, 'epsilon': 1e-05, 'mp_size': 1, 'scale_attention': True, 'triangular_masking': True, 'local_attention': False, 'window_size': 1, 'rotary_dim': -1, 'rotate_half': False, 'rotate_every_two': True, 'return_tuple': True, 'mlp_after_attn': True, 'mlp_act_func_type': <ActivationFuncType.GELU: 1>, 'specialized_mode': False, 'training_mp_size': 1, 'bigscience_bloom': False, 'max_out_tokens': 1024, 'min_out_tokens': 1, 'scale_attn_by_inverse_layer_idx': False, 'enable_qkv_quantization': False, 'use_mup': False, 'return_single_tuple': False, 'set_empty_params': False, 'transposed_mode': False, 'use_triton': False, 'triton_autotune': False, 'num_kv': -1, 'rope_theta': 10000}

You are using the default legacy behaviour of the <class 'transformers.models.llama.tokenization_llama_fast.LlamaTokenizerFast'>. This is expected, and simply means that the legacy (previous) behavior will be used so nothing changes for you. If you want to use the new behaviour, set legacy=False. This should only be set if you understand what it means, and thoroughly read the reason why this was added as explained in huggingface/transformers#24565 - if you loaded a llama tokenizer from a GGUF file you can ignore this message.
2025-01-03 13:42:01.419438: I tensorflow/core/util/port.cc:153] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable TF_ENABLE_ONEDNN_OPTS=0.
2025-01-03 13:42:03.091566: I tensorflow/core/util/port.cc:153] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable TF_ENABLE_ONEDNN_OPTS=0.
MEMORY: Loaded 1 memories from database.
Starting Socket.io server
Prompter loop started
STT Starting
======== Running on http://0.0.0.0:8080 ========
(Press CTRL+C to quit)
Failed to connect to Vtube Studio. Disabling Vtube Studio module.
STT Ready
SYSTEM READY
RealTimeSTT: aiohttp.server - ERROR - Error handling request
Traceback (most recent call last):
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\web_protocol.py", line 380, in data_received
messages, upgraded, tail = self._request_parser.feed_data(data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "aiohttp\_http_parser.pyx", line 558, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadHttpMethod: 400, message:
Invalid method encountered:

bytearray(b'\x16\x03\x01\x01\t\x01')
             ^

RealTimeSTT: asyncio - ERROR - Task exception was never retrieved
future: <Task finished name='Task-83' coro=<RequestHandler.start() done, defined at C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\web_protocol.py:513> exception=ValueError("Invalid URL: port can't be converted to integer")>
Traceback (most recent call last):
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_parse.py", line 134, in split_netloc
port = int(port_str)
^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: '443:443'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\web_protocol.py", line 554, in start
request = self._request_factory(message, payload, self, writer, handler)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\web_app.py", line 503, in _make_request
return _cls(
^^^^^
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\web_request.py", line 186, in init
self._cache["host"] = url.host
^^^^^^^^
File "src\propcache\_helpers_c.pyx", line 33, in propcache._helpers_c.under_cached_property.get
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_url.py", line 738, in host
if (raw := self.raw_host) is None:
^^^^^^^^^^^^^
File "src\propcache\_helpers_c.pyx", line 33, in propcache._helpers_c.under_cached_property.get
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_url.py", line 728, in raw_host
self._cache_netloc()
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_url.py", line 562, in _cache_netloc
split_loc = split_netloc(self._netloc)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_parse.py", line 136, in split_netloc
raise ValueError("Invalid URL: port can't be converted to integer")
ValueError: Invalid URL: port can't be converted to integer
RealTimeSTT: aiohttp.server - ERROR - Error handling request
Traceback (most recent call last):
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\web_protocol.py", line 380, in data_received
messages, upgraded, tail = self._request_parser.feed_data(data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "aiohttp\_http_parser.pyx", line 558, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadHttpMethod: 400, message:
Invalid method encountered:

bytearray(b'\x16\x03\x01\x01\t\x01')
             ^

RealTimeSTT: asyncio - ERROR - Task exception was never retrieved
future: <Task finished name='Task-187' coro=<RequestHandler.start() done, defined at C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\web_protocol.py:513> exception=ValueError("Invalid URL: port can't be converted to integer")>
Traceback (most recent call last):
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_parse.py", line 134, in split_netloc
port = int(port_str)
^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: '443:443'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\web_protocol.py", line 554, in start
request = self._request_factory(message, payload, self, writer, handler)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\web_app.py", line 503, in _make_request
return _cls(
^^^^^
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\web_request.py", line 186, in init
self._cache["host"] = url.host
^^^^^^^^
File "src\propcache\_helpers_c.pyx", line 33, in propcache._helpers_c.under_cached_property.get
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_url.py", line 738, in host
if (raw := self.raw_host) is None:
^^^^^^^^^^^^^
File "src\propcache\_helpers_c.pyx", line 33, in propcache._helpers_c.under_cached_property.get
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_url.py", line 728, in raw_host
self._cache_netloc()
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_url.py", line 562, in _cache_netloc
split_loc = split_netloc(self._netloc)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_parse.py", line 136, in split_netloc
raise ValueError("Invalid URL: port can't be converted to integer")
ValueError: Invalid URL: port can't be converted to integer
RealTimeSTT: asyncio - ERROR - Task exception was never retrieved
future: <Task finished name='Task-189' coro=<RequestHandler.start() done, defined at C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\web_protocol.py:513> exception=ValueError("Invalid URL: port can't be converted to integer")>
Traceback (most recent call last):
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_parse.py", line 134, in split_netloc
port = int(port_str)
^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: '443:443'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\web_protocol.py", line 554, in start
request = self._request_factory(message, payload, self, writer, handler)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\web_app.py", line 503, in _make_request
return _cls(
^^^^^
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\web_request.py", line 186, in init
self._cache["host"] = url.host
^^^^^^^^
File "src\propcache\_helpers_c.pyx", line 33, in propcache._helpers_c.under_cached_property.get
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_url.py", line 738, in host
if (raw := self.raw_host) is None:
^^^^^^^^^^^^^
File "src\propcache\_helpers_c.pyx", line 33, in propcache._helpers_c.under_cached_property.get
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_url.py", line 728, in raw_host
self._cache_netloc()
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_url.py", line 562, in _cache_netloc
split_loc = split_netloc(self._netloc)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_parse.py", line 136, in split_netloc
raise ValueError("Invalid URL: port can't be converted to integer")
ValueError: Invalid URL: port can't be converted to integer
RealTimeSTT: aiohttp.server - ERROR - Error handling request
Traceback (most recent call last):
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\web_protocol.py", line 380, in data_received
messages, upgraded, tail = self._request_parser.feed_data(data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "aiohttp\_http_parser.pyx", line 558, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadHttpMethod: 400, message:
Invalid method encountered:

bytearray(b'\x16\x03\x01\x01\t\x01')
             ^

PROMPTING AI
SIGNALS: AI Thinking Start
Prompter thread encountered an error: Cannot use chat template functions because tokenizer.chat_template is not set and no template argument was passed! For information about writing templates and setting the tokenizer.chat_template attribute, please see the documentation at https://huggingface.co/docs/transformers/main/en/chat_templating
RealTimeSTT: asyncio - ERROR - Task exception was never retrieved
future: <Task finished name='Task-124' coro=<RequestHandler.start() done, defined at C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\web_protocol.py:513> exception=ValueError("Invalid URL: port can't be converted to integer")>
Traceback (most recent call last):
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_parse.py", line 134, in split_netloc
port = int(port_str)
^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: '443:443'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\web_protocol.py", line 554, in start
request = self._request_factory(message, payload, self, writer, handler)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\web_app.py", line 503, in _make_request
return _cls(
^^^^^
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\web_request.py", line 186, in init
self._cache["host"] = url.host
^^^^^^^^
File "src\propcache\_helpers_c.pyx", line 33, in propcache._helpers_c.under_cached_property.get
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_url.py", line 738, in host
if (raw := self.raw_host) is None:
^^^^^^^^^^^^^
File "src\propcache\_helpers_c.pyx", line 33, in propcache._helpers_c.under_cached_property.get
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_url.py", line 728, in raw_host
self._cache_netloc()
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_url.py", line 562, in _cache_netloc
split_loc = split_netloc(self._netloc)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_parse.py", line 136, in split_netloc
raise ValueError("Invalid URL: port can't be converted to integer")
ValueError: Invalid URL: port can't be converted to integer
RealTimeSTT: asyncio - ERROR - Task exception was never retrieved
future: <Task finished name='Task-126' coro=<RequestHandler.start() done, defined at C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\web_protocol.py:513> exception=ValueError("Invalid URL: port can't be converted to integer")>
Traceback (most recent call last):
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_parse.py", line 134, in split_netloc
port = int(port_str)
^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: '443:443'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\web_protocol.py", line 554, in start
request = self._request_factory(message, payload, self, writer, handler)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\web_app.py", line 503, in _make_request
return _cls(
^^^^^
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\web_request.py", line 186, in init
self._cache["host"] = url.host
^^^^^^^^
File "src\propcache\_helpers_c.pyx", line 33, in propcache._helpers_c.under_cached_property.get
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_url.py", line 738, in host
if (raw := self.raw_host) is None:
^^^^^^^^^^^^^
File "src\propcache\_helpers_c.pyx", line 33, in propcache._helpers_c.under_cached_property.get
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_url.py", line 728, in raw_host
self._cache_netloc()
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_url.py", line 562, in _cache_netloc
split_loc = split_netloc(self._netloc)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_parse.py", line 136, in split_netloc
raise ValueError("Invalid URL: port can't be converted to integer")
ValueError: Invalid URL: port can't be converted to integer
RealTimeSTT: asyncio - ERROR - Task exception was never retrieved
future: <Task finished name='Task-130' coro=<RequestHandler.start() done, defined at C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\web_protocol.py:513> exception=ValueError("Invalid URL: port can't be converted to integer")>
Traceback (most recent call last):
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_parse.py", line 134, in split_netloc
port = int(port_str)
^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: '443:443'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\web_protocol.py", line 554, in start
request = self._request_factory(message, payload, self, writer, handler)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\web_app.py", line 503, in _make_request
return _cls(
^^^^^
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\web_request.py", line 186, in init
self._cache["host"] = url.host
^^^^^^^^
File "src\propcache\_helpers_c.pyx", line 33, in propcache._helpers_c.under_cached_property.get
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_url.py", line 738, in host
if (raw := self.raw_host) is None:
^^^^^^^^^^^^^
File "src\propcache\_helpers_c.pyx", line 33, in propcache._helpers_c.under_cached_property.get
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_url.py", line 728, in raw_host
self._cache_netloc()
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_url.py", line 562, in _cache_netloc
split_loc = split_netloc(self._netloc)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_parse.py", line 136, in split_netloc
raise ValueError("Invalid URL: port can't be converted to integer")
ValueError: Invalid URL: port can't be converted to integer
RealTimeSTT: asyncio - ERROR - Task exception was never retrieved
future: <Task finished name='Task-134' coro=<RequestHandler.start() done, defined at C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\web_protocol.py:513> exception=ValueError("Invalid URL: port can't be converted to integer")>
Traceback (most recent call last):
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_parse.py", line 134, in split_netloc
port = int(port_str)
^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: '443:443'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\web_protocol.py", line 554, in start
request = self._request_factory(message, payload, self, writer, handler)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\web_app.py", line 503, in _make_request
return _cls(
^^^^^
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\web_request.py", line 186, in init
self._cache["host"] = url.host
^^^^^^^^
File "src\propcache\_helpers_c.pyx", line 33, in propcache._helpers_c.under_cached_property.get
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_url.py", line 738, in host
if (raw := self.raw_host) is None:
^^^^^^^^^^^^^
File "src\propcache\_helpers_c.pyx", line 33, in propcache._helpers_c.under_cached_property.get
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_url.py", line 728, in raw_host
self._cache_netloc()
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_url.py", line 562, in _cache_netloc
split_loc = split_netloc(self._netloc)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_parse.py", line 136, in split_netloc
raise ValueError("Invalid URL: port can't be converted to integer")
ValueError: Invalid URL: port can't be converted to integer
RealTimeSTT: asyncio - ERROR - Task exception was never retrieved
future: <Task finished name='Task-136' coro=<RequestHandler.start() done, defined at C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\web_protocol.py:513> exception=ValueError("Invalid URL: port can't be converted to integer")>
Traceback (most recent call last):
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_parse.py", line 134, in split_netloc
port = int(port_str)
^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: '443:443'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\web_protocol.py", line 554, in start
request = self._request_factory(message, payload, self, writer, handler)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\web_app.py", line 503, in _make_request
return _cls(
^^^^^
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\web_request.py", line 186, in init
self._cache["host"] = url.host
^^^^^^^^
File "src\propcache\_helpers_c.pyx", line 33, in propcache._helpers_c.under_cached_property.get
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_url.py", line 738, in host
if (raw := self.raw_host) is None:
^^^^^^^^^^^^^
File "src\propcache\_helpers_c.pyx", line 33, in propcache._helpers_c.under_cached_property.get
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_url.py", line 728, in raw_host
self._cache_netloc()
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_url.py", line 562, in _cache_netloc
split_loc = split_netloc(self._netloc)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_parse.py", line 136, in split_netloc
raise ValueError("Invalid URL: port can't be converted to integer")
ValueError: Invalid URL: port can't be converted to integer
RealTimeSTT: asyncio - ERROR - Task exception was never retrieved
future: <Task finished name='Task-146' coro=<RequestHandler.start() done, defined at C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\web_protocol.py:513> exception=ValueError("Invalid URL: port can't be converted to integer")>
Traceback (most recent call last):
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_parse.py", line 134, in split_netloc
port = int(port_str)
^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: '443:443'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\web_protocol.py", line 554, in start
request = self._request_factory(message, payload, self, writer, handler)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\web_app.py", line 503, in _make_request
return _cls(
^^^^^
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\web_request.py", line 186, in init
self._cache["host"] = url.host
^^^^^^^^
File "src\propcache\_helpers_c.pyx", line 33, in propcache._helpers_c.under_cached_property.get
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_url.py", line 738, in host
if (raw := self.raw_host) is None:
^^^^^^^^^^^^^
File "src\propcache\_helpers_c.pyx", line 33, in propcache._helpers_c.under_cached_property.get
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_url.py", line 728, in raw_host
self._cache_netloc()
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_url.py", line 562, in _cache_netloc
split_loc = split_netloc(self._netloc)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_parse.py", line 136, in split_netloc
raise ValueError("Invalid URL: port can't be converted to integer")
ValueError: Invalid URL: port can't be converted to integer
RealTimeSTT: asyncio - ERROR - Task exception was never retrieved
future: <Task finished name='Task-156' coro=<RequestHandler.start() done, defined at C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\web_protocol.py:513> exception=ValueError("Invalid URL: port can't be converted to integer")>
Traceback (most recent call last):
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_parse.py", line 134, in split_netloc
port = int(port_str)
^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: '443:443'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\web_protocol.py", line 554, in start
request = self._request_factory(message, payload, self, writer, handler)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\web_app.py", line 503, in _make_request
return _cls(
^^^^^
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\web_request.py", line 186, in init
self._cache["host"] = url.host
^^^^^^^^
File "src\propcache\_helpers_c.pyx", line 33, in propcache._helpers_c.under_cached_property.get
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_url.py", line 738, in host
if (raw := self.raw_host) is None:
^^^^^^^^^^^^^
File "src\propcache\_helpers_c.pyx", line 33, in propcache._helpers_c.under_cached_property.get
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_url.py", line 728, in raw_host
self._cache_netloc()
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_url.py", line 562, in _cache_netloc
split_loc = split_netloc(self._netloc)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_parse.py", line 136, in split_netloc
raise ValueError("Invalid URL: port can't be converted to integer")
ValueError: Invalid URL: port can't be converted to integer
RealTimeSTT: asyncio - ERROR - Task exception was never retrieved
future: <Task finished name='Task-166' coro=<RequestHandler.start() done, defined at C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\web_protocol.py:513> exception=ValueError("Invalid URL: port can't be converted to integer")>
Traceback (most recent call last):
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_parse.py", line 134, in split_netloc
port = int(port_str)
^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: '443:443'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\web_protocol.py", line 554, in start
request = self._request_factory(message, payload, self, writer, handler)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\web_app.py", line 503, in _make_request
return _cls(
^^^^^
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\web_request.py", line 186, in init
self._cache["host"] = url.host
^^^^^^^^
File "src\propcache\_helpers_c.pyx", line 33, in propcache._helpers_c.under_cached_property.get
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_url.py", line 738, in host
if (raw := self.raw_host) is None:
^^^^^^^^^^^^^
File "src\propcache\_helpers_c.pyx", line 33, in propcache._helpers_c.under_cached_property.get
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_url.py", line 728, in raw_host
self._cache_netloc()
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_url.py", line 562, in _cache_netloc
split_loc = split_netloc(self._netloc)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_parse.py", line 136, in split_netloc
raise ValueError("Invalid URL: port can't be converted to integer")
ValueError: Invalid URL: port can't be converted to integer
RealTimeSTT: asyncio - ERROR - Task exception was never retrieved
future: <Task finished name='Task-172' coro=<RequestHandler.start() done, defined at C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\web_protocol.py:513> exception=ValueError("Invalid URL: port can't be converted to integer")>
Traceback (most recent call last):
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_parse.py", line 134, in split_netloc
port = int(port_str)
^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: '443:443'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\web_protocol.py", line 554, in start
request = self._request_factory(message, payload, self, writer, handler)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\web_app.py", line 503, in _make_request
return _cls(
^^^^^
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\web_request.py", line 186, in init
self._cache["host"] = url.host
^^^^^^^^
File "src\propcache\_helpers_c.pyx", line 33, in propcache._helpers_c.under_cached_property.get
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_url.py", line 738, in host
if (raw := self.raw_host) is None:
^^^^^^^^^^^^^
File "src\propcache\_helpers_c.pyx", line 33, in propcache._helpers_c.under_cached_property.get
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_url.py", line 728, in raw_host
self._cache_netloc()
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_url.py", line 562, in _cache_netloc
split_loc = split_netloc(self._netloc)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_parse.py", line 136, in split_netloc
raise ValueError("Invalid URL: port can't be converted to integer")
ValueError: Invalid URL: port can't be converted to integer
RealTimeSTT: asyncio - ERROR - Task exception was never retrieved
future: <Task finished name='Task-390' coro=<RequestHandler.start() done, defined at C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\web_protocol.py:513> exception=ValueError("Invalid URL: port can't be converted to integer")>
Traceback (most recent call last):
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_parse.py", line 134, in split_netloc
port = int(port_str)
^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: '443:443'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\web_protocol.py", line 554, in start
request = self._request_factory(message, payload, self, writer, handler)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\web_app.py", line 503, in _make_request
return _cls(
^^^^^
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\web_request.py", line 186, in init
self._cache["host"] = url.host
^^^^^^^^
File "src\propcache\_helpers_c.pyx", line 33, in propcache._helpers_c.under_cached_property.get
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_url.py", line 738, in host
if (raw := self.raw_host) is None:
^^^^^^^^^^^^^
File "src\propcache\_helpers_c.pyx", line 33, in propcache._helpers_c.under_cached_property.get
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_url.py", line 728, in raw_host
self._cache_netloc()
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_url.py", line 562, in _cache_netloc
split_loc = split_netloc(self._netloc)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\yarl_parse.py", line 136, in split_netloc
raise ValueError("Invalid URL: port can't be converted to integer")
ValueError: Invalid URL: port can't be converted to integer

and this is the log of text-generation-webui:
13:23:55-545055 INFO Loaded "gemma2-9b-neuro-sama-q4_k_m.gguf" in 4.37 seconds.
13:23:55-549010 INFO LOADER: "llama.cpp"
13:23:55-552368 INFO TRUNCATION LENGTH: 8192
13:23:55-559215 INFO INSTRUCTION TEMPLATE: "Custom (obtained from model metadata)"
Closing server running on port: 7860
13:24:00-485722 INFO Loading the extension "openai"
13:24:00-936842 INFO OpenAI-compatible API URL:

                     http://127.0.0.1:5000

Running on local URL: http://127.0.0.1:7860
This is mine constants.py:

This file holds various constants used in the program

Variables marked with #UNIQUE# will be unique to your setup and NEED to be changed or the program will not work correctly.

CORE SECTION: All constants in this section are necessary

Microphone/Speaker device indices

Use utils/listAudioDevices.py to find the correct device ID

#UNIQUE#
INPUT_DEVICE_INDEX = 1
OUTPUT_DEVICE_INDEX = 2

How many seconds to wait before prompting AI

PATIENCE = 60

URL of LLM API Endpoint

LLM_ENDPOINT = ""

LLM_ENDPOINT = "https://127.0.0.1:5000"

Twitch chat messages above this length will be ignored

TWITCH_MAX_MESSAGE_LENGTH = 300

Twitch channel for bot to join

#UNIQUE#
TWITCH_CHANNEL = "lunasparkai"

Voice reference file for TTS

#UNIQUE#
VOICE_REFERENCE = "neuro.wav"

MULTIMODAL SPECIFIC SECTION: Not needed when not using multimodal capabilities

MULTIMODAL_ENDPOINT = ""

MULTIMODAL_MODEL = "openbmb/MiniCPM-Llama3-V-2_5-int4"

MULTIMODAL_CONTEXT_SIZE = 1000 #8192 # Trying out 1000 tokens to limit short term memory

This is the multimodal strategy (when to use multimodal/text only llm) that the program will start with.

Runtime changes will not be saved here.

Valid values are: "always", "never"

MULTIMODAL_STRATEGY = "never"

This is the monitor index that screenshots will be taken. THIS IS NOT THE MONITOR NUMBER IN DISPLAY SETTINGS

Monitor 0 is a "virtual" monitor contains all monitor screens.

PRIMARY_MONITOR = 0

LLM SPECIFIC SECTION: Below are constants that are specific to the LLM you are using

The model you are using, to calculate how many tokens the current message is

Ensure this is correct! Used for token count estimation

MODEL = ""

Context size (maximum number of tokens in the prompt) Will target upto 90% usage of this limit

CONTEXT_SIZE = 8192

This is your name

#UNIQUE#
HOST_NAME = "A"

This is the AI's name

AI_NAME = "Luna"

The system prompt. Any character text needs to be here.

You MUST ensure it is less than CONTEXT_SIZE tokens

SYSTEM_PROMPT = ""

List of banned tokens to be passed to the textgen web ui api

For Mistral 7B v0.2, token 422 is the "#" token. The LLM was spamming #life #vtuber #funfact etc.

BANNED_TOKENS = ""

List of stopping strings. Necessary for Llama 3

STOP_STRINGS = ["\n", "<|eot_id|>"]

MEMORY SECTION: Constants relevant to forming new memories

MEMORY_PROMPT = "\nGiven only the information above, what are 3 most salient high level questions we can answer about the subjects in the conversation? Separate each question and answer pair with "{qa}", and only output the question and answer, no explanations."

How many messages in the history to include for querying the database.

MEMORY_QUERY_MESSAGE_COUNT = 5

How many memories to recall and insert into context

MEMORY_RECALL_COUNT = 5

VTUBE STUDIO SECTION: Configure & tune model & prop positions here.

The defaults are for the Hiyori model on a full 16 by 9 aspect ratio screen

VTUBE_MODEL_POSITIONS = {
"chat": {
"x": 0.4,
"y": -1.4,
"size": -35,
"rotation": 0,
},
"screen": {
"x": 0.65,
"y": -1.6,
"size": -45,
"rotation": 0,
},
"react": {
"x": 0.7,
"y": -1.7,
"size": -48,
"rotation": 0,
},
}

VTUBE_MIC_POSITION = {
"x": 0.52,
"y": -0.52,
"size": 0.22,
"rotation": 0,
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants