text:
Home Assistant integration with Extended OpenAI Conversation and LocalAI

LocalAI version:
2.18.1
Environment, CPU architecture, OS, and Version:
Linux localAI 6.1.0-22-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.94-1 (2024-06-21) x86_64 GNU/Linux
Describe the bug
When using integration with Home Assistant the Assist chat return an error "Sorry, I had a problem talking to OpenAI: Connection error."  When running localai with debugging there is a error:  panic: Unrecognized schema: map[]
To Reproduce

Have a working localai (tested using curl requests to model and received a responce.)
Install Home Assistant integrations using Extended OpenAI Conversation.
LocalAI receives the requests, starts processing it the gets the error.

Note: all models were tested prior to HA integration.
Expected behavior
Return response from AI model
Logs
root@localAI:~# local-ai --debug
9:32PM INF env file found, loading environment variables from file envFile=/etc/localai.env
9:32PM DBG Setting logging to debug
9:32PM INF Starting LocalAI using 6 threads, with models path: /usr/share/local-ai/models
9:32PM INF LocalAI version:  ()
9:32PM DBG CPU capabilities: [3dnowprefetch abm adx aes apic arat arch_capabilities arch_perfmon avx avx2 bmi1 bmi2 clflush clflushopt cmov constant_tsc cpuid cpuid_fault cx16 cx8 de ept ept_ad erms f16c flexpriority flush_l1d fma fpu fsgsbase fxsr ht hypervisor ibpb ibrs invpcid invpcid_single lahf_lm lm mca mce md_clear mmx movbe mpx msr mtrr nopl nx pae pat pcid pclmulqdq pdcm pdpe1gb pge pni popcnt pse pse36 pti rdrand rdseed rdtscp rep_good sep smap smep ss ssbd sse sse2 sse4_1 sse4_2 ssse3 stibp syscall tpr_shadow tsc tsc_adjust tsc_deadline_timer tsc_known_freq umip vme vmx vnmi vpid x2apic xgetbv1 xsave xsavec xsaveopt xsaves xtopology]
9:32PM DBG GPU count: 1
9:32PM DBG GPU: card #0 @0000:00:02.0 -> driver: 'bochs-drm' class: 'Display controller' vendor: 'unknown' product: 'unknown'
9:32PM DBG guessDefaultsFromFile: template already set name=gpt-4
9:32PM DBG guessDefaultsFromFile: template already set name=Hermes-2-Pro-Llama-3-8B-Q5_K_M
9:32PM DBG guessDefaultsFromFile: template already set name=luna
9:32PM DBG guessDefaultsFromFile: template already set name=luna5
9:32PM DBG guessDefaultsFromFile: template already set name=phi-2-chat:Q8_0
9:32PM INF Preloading models from /usr/share/local-ai/models
Model name: gpt-4
Model name: Hermes-2-Pro-Llama-3-8B-Q5_K_M
Model name: luna
Model name: luna5
Model name: phi-2-chat:Q8_0
9:32PM DBG Model: Hermes-2-Pro-Llama-3-8B-Q5_K_M (config: {PredictionOptions:{Model:Hermes-2-Pro-Llama-3-8B-Q5_K_M.gguf Language: Translate:false N:0 TopP:0xc000b773a8 TopK:0xc000b773b0 Temperature:0xc000b773b8 Maxtokens:0xc000b773e8 Echo:false Batch:0 IgnoreEOS:false RepeatPenalty:0 RepeatLastN:0 Keep:0 FrequencyPenalty:0 PresencePenalty:0 TFZ:0xc000b773e0 TypicalP:0xc000b773d8 Seed:0xc000b77400 NegativePrompt: RopeFreqBase:0 RopeFreqScale:0 NegativePromptScale:0 UseFastTokenizer:false ClipSkip:0 Tokenizer:} Name:Hermes-2-Pro-Llama-3-8B-Q5_K_M F16:0xc000b773a0 Threads:0xc000b77398 Debug:0xc000b773f8 Roles:map[] Embeddings:false Backend: TemplateConfig:{Chat:{{.Input -}}
<|im_start|>assistant
ChatMessage:<|im_start|>{{if eq .RoleName "assistant"}}assistant{{else if eq .RoleName "system"}}system{{else if eq .RoleName "tool"}}tool{{else if eq .RoleName "user"}}user{{end}}
{{- if .FunctionCall }}
<tool_call>
{{- else if eq .RoleName "tool" }}
<tool_response>
{{- end }}
{{- if .Content}}
{{.Content }}
{{- end }}
{{- if .FunctionCall}}
{{toJson .FunctionCall}}
{{- end }}
{{- if .FunctionCall }}
</tool_call>
{{- else if eq .RoleName "tool" }}
</tool_response>
{{- end }}<|im_end|>
Completion:{{.Input}}
Edit: Functions:<|im_start|>system
You are a function calling AI model.
Here are the available tools:

{{range .Functions}}
{'type': 'function', 'function': {'name': '{{.Name}}', 'description': '{{.Description}}', 'parameters': {{toJson .Parameters}} }}
{{end}}

You should call the tools provided to you sequentially
Please use  XML tags to record your reasoning and planning before you call the functions as follows:

{step-by-step reasoning and plan in bullet points}

For each function call return a json object with function name and arguments within <tool_call> XML tags as follows:
<tool_call>
{"arguments": , "name": }
</tool_call><|im_end|>
{{.Input -}}
<|im_start|>assistant UseTokenizerTemplate:false JoinChatMessagesByCharacter:} PromptStrings:[] InputStrings:[] InputToken:[] functionCallString: functionCallNameString: ResponseFormat: ResponseFormatMap:map[] FunctionsConfig:{DisableNoAction:true GrammarConfig:{ParallelCalls:false DisableParallelNewLines:false MixedMode:true NoMixedFreeString:false NoGrammar:false Prefix: ExpectStringsAfterJSON:false PropOrder:} NoActionFunctionName: NoActionDescriptionName: ResponseRegex:[] JSONRegexMatch:[(?s)<tool_call>(.?)</tool_call> (?s)<tool_call>(.?)] ReplaceFunctionResults:[{Key:(?s)^[^{[]* Value:} {Key:(?s)[^}]]$ Value:} {Key:'([^']?)' Value:DQUOTE${1}DQUOTE} {Key:\" Value:TEMP_QUOTE} {Key:' Value:'} {Key:DQUOTE Value:"} {Key:TEMP_QUOTE Value:"} {Key:(?s). Value:}] ReplaceLLMResult:[{Key:(?s). Value:}] CaptureLLMResult:[] FunctionName:true} FeatureFlag:map[] LLMConfig:{SystemPrompt: TensorSplit: MainGPU: RMSNormEps:0 NGQA:0 PromptCachePath: PromptCacheAll:false PromptCacheRO:false MirostatETA:0xc000b773d0 MirostatTAU:0xc000b773c8 Mirostat:0xc000b773c0 NGPULayers:0xc000b773f0 MMap:0xc000b77340 MMlock:0xc000b773f9 LowVRAM:0xc000b773f9 Grammar: StopWords:[<|im_end|>  </tool_call> <|eot_id|> <|end_of_text|>] Cutstrings:[] TrimSpace:[] TrimSuffix:[] ContextSize:0xc000b77348 NUMA:false LoraAdapter: LoraBase: LoraScale:0 NoMulMatQ:false DraftModel: NDraft:0 Quantization: GPUMemoryUtilization:0 TrustRemoteCode:false EnforceEager:false SwapSpace:0 MaxModelLen:0 TensorParallelSize:0 MMProj: FlashAttention:false NoKVOffloading:false RopeScaling: ModelType: YarnExtFactor:0 YarnAttnFactor:0 YarnBetaFast:0 YarnBetaSlow:0} AutoGPTQ:{ModelBaseName: Device: Triton:false UseFastTokenizer:false} Diffusers:{CUDA:false PipelineType: SchedulerType: EnableParameters: CFGScale:0 IMG2IMG:false ClipSkip:0 ClipModel: ClipSubFolder: ControlNet:} Step:0 GRPC:{Attempts:0 AttemptsSleepTime:0} TTSConfig:{Voice: VallE:{AudioPath:}} CUDA:false DownloadFiles:[] Description: Usage:})
9:32PM DBG Model: gpt-4 (config: {PredictionOptions:{Model:Hermes-2-Pro-Llama-3-8B-Q4_K_M.gguf Language: Translate:false N:0 TopP:0xc000b76fd8 TopK:0xc000b76fe0 Temperature:0xc000b76fe8 Maxtokens:0xc000b77018 Echo:false Batch:0 IgnoreEOS:false RepeatPenalty:0 RepeatLastN:0 Keep:0 FrequencyPenalty:0 PresencePenalty:0 TFZ:0xc000b77010 TypicalP:0xc000b77008 Seed:0xc000b77030 NegativePrompt: RopeFreqBase:0 RopeFreqScale:0 NegativePromptScale:0 UseFastTokenizer:false ClipSkip:0 Tokenizer:} Name:gpt-4 F16:0xc000b76fd0 Threads:0xc000b76fc8 Debug:0xc000b77028 Roles:map[] Embeddings:false Backend: TemplateConfig:{Chat:{{.Input -}}
<|im_start|>assistant
ChatMessage:<|im_start|>{{if eq .RoleName "assistant"}}assistant{{else if eq .RoleName "system"}}system{{else if eq .RoleName "tool"}}tool{{else if eq .RoleName "user"}}user{{end}}
{{- if .FunctionCall }}
<tool_call>
{{- else if eq .RoleName "tool" }}
<tool_response>
{{- end }}
{{- if .Content}}
{{.Content }}
{{- end }}
{{- if .FunctionCall}}
{{toJson .FunctionCall}}
{{- end }}
{{- if .FunctionCall }}
</tool_call>
{{- else if eq .RoleName "tool" }}
</tool_response>
{{- end }}<|im_end|>
Completion:{{.Input}}
Edit: Functions:<|im_start|>system
You are a function calling AI model.
Here are the available tools:

{{range .Functions}}
{'type': 'function', 'function': {'name': '{{.Name}}', 'description': '{{.Description}}', 'parameters': {{toJson .Parameters}} }}
{{end}}

You should call the tools provided to you sequentially
Please use  XML tags to record your reasoning and planning before you call the functions as follows:

{step-by-step reasoning and plan in bullet points}

For each function call return a json object with function name and arguments within <tool_call> XML tags as follows:
<tool_call>
{"arguments": , "name": }
</tool_call><|im_end|>
{{.Input -}}
<|im_start|>assistant UseTokenizerTemplate:false JoinChatMessagesByCharacter:} PromptStrings:[] InputStrings:[] InputToken:[] functionCallString: functionCallNameString: ResponseFormat: ResponseFormatMap:map[] FunctionsConfig:{DisableNoAction:true GrammarConfig:{ParallelCalls:false DisableParallelNewLines:false MixedMode:true NoMixedFreeString:false NoGrammar:false Prefix: ExpectStringsAfterJSON:false PropOrder:} NoActionFunctionName: NoActionDescriptionName: ResponseRegex:[] JSONRegexMatch:[(?s)<tool_call>(.?)</tool_call> (?s)<tool_call>(.?)] ReplaceFunctionResults:[{Key:(?s)^[^{[]* Value:} {Key:(?s)[^}]]$ Value:} {Key:'([^']?)' Value:DQUOTE${1}DQUOTE} {Key:\" Value:TEMP_QUOTE} {Key:' Value:'} {Key:DQUOTE Value:"} {Key:TEMP_QUOTE Value:"} {Key:(?s). Value:}] ReplaceLLMResult:[{Key:(?s). Value:}] CaptureLLMResult:[] FunctionName:true} FeatureFlag:map[] LLMConfig:{SystemPrompt: TensorSplit: MainGPU: RMSNormEps:0 NGQA:0 PromptCachePath: PromptCacheAll:false PromptCacheRO:false MirostatETA:0xc000b77000 MirostatTAU:0xc000b76ff8 Mirostat:0xc000b76ff0 NGPULayers:0xc000b77020 MMap:0xc000b76da0 MMlock:0xc000b77029 LowVRAM:0xc000b77029 Grammar: StopWords:[<|im_end|>  </tool_call> <|eot_id|> <|end_of_text|>] Cutstrings:[] TrimSpace:[] TrimSuffix:[] ContextSize:0xc000b76ea0 NUMA:false LoraAdapter: LoraBase: LoraScale:0 NoMulMatQ:false DraftModel: NDraft:0 Quantization: GPUMemoryUtilization:0 TrustRemoteCode:false EnforceEager:false SwapSpace:0 MaxModelLen:0 TensorParallelSize:0 MMProj: FlashAttention:false NoKVOffloading:false RopeScaling: ModelType: YarnExtFactor:0 YarnAttnFactor:0 YarnBetaFast:0 YarnBetaSlow:0} AutoGPTQ:{ModelBaseName: Device: Triton:false UseFastTokenizer:false} Diffusers:{CUDA:false PipelineType: SchedulerType: EnableParameters: CFGScale:0 IMG2IMG:false ClipSkip:0 ClipModel: ClipSubFolder: ControlNet:} Step:0 GRPC:{Attempts:0 AttemptsSleepTime:0} TTSConfig:{Voice: VallE:{AudioPath:}} CUDA:false DownloadFiles:[] Description: Usage:})
9:32PM DBG Model: luna (config: {PredictionOptions:{Model:luna-ai-llama2-uncensored.Q6_K.gguf Language: Translate:false N:0 TopP:0xc000b77640 TopK:0xc000b77608 Temperature:0xc000b77620 Maxtokens:0xc000b776e0 Echo:false Batch:0 IgnoreEOS:false RepeatPenalty:0 RepeatLastN:0 Keep:0 FrequencyPenalty:0 PresencePenalty:0 TFZ:0xc000b776d8 TypicalP:0xc000b776d0 Seed:0xc000b776f8 NegativePrompt: RopeFreqBase:0 RopeFreqScale:0 NegativePromptScale:0 UseFastTokenizer:false ClipSkip:0 Tokenizer:} Name:luna F16:0xc000b77678 Threads:0xc000b77670 Debug:0xc000b776f0 Roles:map[assistant:ASSISTANT: system:SYSTEM: user:USER:] Embeddings:false Backend:llama TemplateConfig:{Chat:lunademo-chat ChatMessage: Completion:lunademo-completion Edit: Functions: UseTokenizerTemplate:false JoinChatMessagesByCharacter:} PromptStrings:[] InputStrings:[] InputToken:[] functionCallString: functionCallNameString: ResponseFormat: ResponseFormatMap:map[] FunctionsConfig:{DisableNoAction:false GrammarConfig:{ParallelCalls:false DisableParallelNewLines:false MixedMode:false NoMixedFreeString:false NoGrammar:false Prefix: ExpectStringsAfterJSON:false PropOrder:} NoActionFunctionName: NoActionDescriptionName: ResponseRegex:[] JSONRegexMatch:[] ReplaceFunctionResults:[] ReplaceLLMResult:[] CaptureLLMResult:[] FunctionName:false} FeatureFlag:map[] LLMConfig:{SystemPrompt: TensorSplit: MainGPU: RMSNormEps:0 NGQA:0 PromptCachePath: PromptCacheAll:false PromptCacheRO:false MirostatETA:0xc000b776c8 MirostatTAU:0xc000b776c0 Mirostat:0xc000b776b8 NGPULayers:0xc000b776e8 MMap:0xc000b77679 MMlock:0xc000b776f1 LowVRAM:0xc000b776f1 Grammar: StopWords:[] Cutstrings:[] TrimSpace:[] TrimSuffix:[] ContextSize:0xc000b77660 NUMA:false LoraAdapter: LoraBase: LoraScale:0 NoMulMatQ:false DraftModel: NDraft:0 Quantization: GPUMemoryUtilization:0 TrustRemoteCode:false EnforceEager:false SwapSpace:0 MaxModelLen:0 TensorParallelSize:0 MMProj: FlashAttention:false NoKVOffloading:false RopeScaling: ModelType: YarnExtFactor:0 YarnAttnFactor:0 YarnBetaFast:0 YarnBetaSlow:0} AutoGPTQ:{ModelBaseName: Device: Triton:false UseFastTokenizer:false} Diffusers:{CUDA:false PipelineType: SchedulerType: EnableParameters: CFGScale:0 IMG2IMG:false ClipSkip:0 ClipModel: ClipSubFolder: ControlNet:} Step:0 GRPC:{Attempts:0 AttemptsSleepTime:0} TTSConfig:{Voice: VallE:{AudioPath:}} CUDA:false DownloadFiles:[] Description: Usage:})
9:32PM DBG Model: luna5 (config: {PredictionOptions:{Model:luna-ai-llama2-uncensored.Q5_K_M.gguf Language: Translate:false N:0 TopP:0xc000b779a0 TopK:0xc000b77968 Temperature:0xc000b77980 Maxtokens:0xc000b77a40 Echo:false Batch:0 IgnoreEOS:false RepeatPenalty:0 RepeatLastN:0 Keep:0 FrequencyPenalty:0 PresencePenalty:0 TFZ:0xc000b77a38 TypicalP:0xc000b77a30 Seed:0xc000b77a58 NegativePrompt: RopeFreqBase:0 RopeFreqScale:0 NegativePromptScale:0 UseFastTokenizer:false ClipSkip:0 Tokenizer:} Name:luna5 F16:0xc000b779d8 Threads:0xc000b779d0 Debug:0xc000b77a50 Roles:map[assistant:ASSISTANT: system:SYSTEM: user:USER:] Embeddings:false Backend:llama TemplateConfig:{Chat:luna5demo-chat ChatMessage: Completion:luna5demo-completion Edit: Functions: UseTokenizerTemplate:false JoinChatMessagesByCharacter:} PromptStrings:[] InputStrings:[] InputToken:[] functionCallString: functionCallNameString: ResponseFormat: ResponseFormatMap:map[] FunctionsConfig:{DisableNoAction:false GrammarConfig:{ParallelCalls:false DisableParallelNewLines:false MixedMode:false NoMixedFreeString:false NoGrammar:false Prefix: ExpectStringsAfterJSON:false PropOrder:} NoActionFunctionName: NoActionDescriptionName: ResponseRegex:[] JSONRegexMatch:[] ReplaceFunctionResults:[] ReplaceLLMResult:[] CaptureLLMResult:[] FunctionName:false} FeatureFlag:map[] LLMConfig:{SystemPrompt: TensorSplit: MainGPU: RMSNormEps:0 NGQA:0 PromptCachePath: PromptCacheAll:false PromptCacheRO:false MirostatETA:0xc000b77a28 MirostatTAU:0xc000b77a20 Mirostat:0xc000b77a18 NGPULayers:0xc000b77a48 MMap:0xc000b779d9 MMlock:0xc000b77a51 LowVRAM:0xc000b77a51 Grammar: StopWords:[] Cutstrings:[] TrimSpace:[] TrimSuffix:[] ContextSize:0xc000b779c0 NUMA:false LoraAdapter: LoraBase: LoraScale:0 NoMulMatQ:false DraftModel: NDraft:0 Quantization: GPUMemoryUtilization:0 TrustRemoteCode:false EnforceEager:false SwapSpace:0 MaxModelLen:0 TensorParallelSize:0 MMProj: FlashAttention:false NoKVOffloading:false RopeScaling: ModelType: YarnExtFactor:0 YarnAttnFactor:0 YarnBetaFast:0 YarnBetaSlow:0} AutoGPTQ:{ModelBaseName: Device: Triton:false UseFastTokenizer:false} Diffusers:{CUDA:false PipelineType: SchedulerType: EnableParameters: CFGScale:0 IMG2IMG:false ClipSkip:0 ClipModel: ClipSubFolder: ControlNet:} Step:0 GRPC:{Attempts:0 AttemptsSleepTime:0} TTSConfig:{Voice: VallE:{AudioPath:}} CUDA:false DownloadFiles:[] Description: Usage:})
9:32PM DBG Model: phi-2-chat:Q8_0 (config: {PredictionOptions:{Model:phi-2-layla-v1-chatml-Q8_0.gguf Language: Translate:false N:0 TopP:0xc000b77c88 TopK:0xc000b77c90 Temperature:0xc000b77c98 Maxtokens:0xc000b77cc8 Echo:false Batch:0 IgnoreEOS:false RepeatPenalty:0 RepeatLastN:0 Keep:0 FrequencyPenalty:0 PresencePenalty:0 TFZ:0xc000b77cc0 TypicalP:0xc000b77cb8 Seed:0xc000b77ce0 NegativePrompt: RopeFreqBase:0 RopeFreqScale:0 NegativePromptScale:0 UseFastTokenizer:false ClipSkip:0 Tokenizer:} Name:phi-2-chat:Q8_0 F16:0xc000b77c60 Threads:0xc000b77c78 Debug:0xc000b77cd8 Roles:map[] Embeddings:false Backend: TemplateConfig:{Chat:{{.Input}}
<|im_start|>assistant
ChatMessage:<|im_start|>{{ .RoleName }}
{{.Content}}<|im_end|>
Completion:{{.Input}}
Edit: Functions: UseTokenizerTemplate:false JoinChatMessagesByCharacter:} PromptStrings:[] InputStrings:[] InputToken:[] functionCallString: functionCallNameString: ResponseFormat: ResponseFormatMap:map[] FunctionsConfig:{DisableNoAction:false GrammarConfig:{ParallelCalls:false DisableParallelNewLines:false MixedMode:false NoMixedFreeString:false NoGrammar:false Prefix: ExpectStringsAfterJSON:false PropOrder:} NoActionFunctionName: NoActionDescriptionName: ResponseRegex:[] JSONRegexMatch:[] ReplaceFunctionResults:[] ReplaceLLMResult:[] CaptureLLMResult:[] FunctionName:false} FeatureFlag:map[] LLMConfig:{SystemPrompt: TensorSplit: MainGPU: RMSNormEps:0 NGQA:0 PromptCachePath: PromptCacheAll:false PromptCacheRO:false MirostatETA:0xc000b77cb0 MirostatTAU:0xc000b77ca8 Mirostat:0xc000b77ca0 NGPULayers:0xc000b77cd0 MMap:0xc000b77c61 MMlock:0xc000b77cd9 LowVRAM:0xc000b77cd9 Grammar: StopWords:[<|im_end|>] Cutstrings:[] TrimSpace:[] TrimSuffix:[] ContextSize:0xc000b77c50 NUMA:false LoraAdapter: LoraBase: LoraScale:0 NoMulMatQ:false DraftModel: NDraft:0 Quantization: GPUMemoryUtilization:0 TrustRemoteCode:false EnforceEager:false SwapSpace:0 MaxModelLen:0 TensorParallelSize:0 MMProj: FlashAttention:false NoKVOffloading:false RopeScaling: ModelType: YarnExtFactor:0 YarnAttnFactor:0 YarnBetaFast:0 YarnBetaSlow:0} AutoGPTQ:{ModelBaseName: Device: Triton:false UseFastTokenizer:false} Diffusers:{CUDA:false PipelineType: SchedulerType: EnableParameters: CFGScale:0 IMG2IMG:false ClipSkip:0 ClipModel: ClipSubFolder: ControlNet:} Step:0 GRPC:{Attempts:0 AttemptsSleepTime:0} TTSConfig:{Voice: VallE:{AudioPath:}} CUDA:false DownloadFiles:[] Description: Usage:})
9:32PM DBG Extracting backend assets files to /tmp/localai/backend_data
9:32PM DBG processing api keys runtime update
9:32PM DBG processing external_backends.json
9:32PM DBG external backends loaded from external_backends.json
9:32PM INF core/startup process completed!
9:32PM DBG No configuration file found at /tmp/localai/upload/uploadedFiles.json
9:32PM DBG No configuration file found at /tmp/localai/config/assistants.json
9:32PM DBG No configuration file found at /tmp/localai/config/assistantsFile.json
9:32PM INF LocalAI API is listening! Please connect to the endpoint for API documentation. endpoint=http://0.0.0.0:8989
9:32PM DBG Request received: {"model":"phi-2-chat:Q8_0","language":"","translate":false,"n":0,"top_p":1,"top_k":null,"temperature":0.5,"max_tokens":150,"echo":false,"batch":0,"ignore_eos":false,"repeat_penalty":0,"repeat_last_n":0,"n_keep":0,"frequency_penalty":0,"presence_penalty":0,"tfz":null,"typical_p":null,"seed":null,"negative_prompt":"","rope_freq_base":0,"rope_freq_scale":0,"negative_prompt_scale":0,"use_fast_tokenizer":false,"clip_skip":0,"tokenizer":"","file":"","size":"","prompt":null,"instruction":"","input":null,"stop":null,"messages":[{"role":"system","content":"You possess the knowledge of all the universe, answer any question given to you truthfully and to your fullest ability.  \nYou are also a smart home manager who has been given permission to control my smart home which is powered by Home Assistant.\nI will provide you information about my smart home along, you can truthfully make corrections or respond in polite and concise language.\n\nCurrent Time: 2024-07-02 21:32:42.655296-04:00\n\nAvailable Devices:\ncsv\nentity_id,name,state,aliases\ntodo.shopping_list,Shopping List,0,\nmedia_player.pioneer_vsx_932_e87cce,Pioneer VSX-932 E87CCE,unknown,\nsensor.thermostat_air_temperature,Thermostat Air temperature,81.0,\nsensor.thermostat_humidity,Thermostat Humidity,52.0,\nclimate.thermostat,Thermostat ,heat_cool,\nfan.thermostat,Thermostat ,on,\nmedia_player.samsung_qn90ba_85,Samsung QN90BA 85,off,\nlight.reading_light_light,Reading,off,\nlight.yard_light,Yard Light,on,\nlock.front_door_door_lock,Front Door Door lock,locked,\nsensor.front_door_temperature,Front Door Temperature,77.0,\nswitch.ups_ha_switch,UPS HA Switch,on,\nswitch.ups_computer_switch,UPS Computer Switch,on,\nswitch.sengled_e1c_nb7_switch,sengled E1C-NB7 Switch,on,\n\n\nThe current state of devices is provided in Available Devices.\nOnly use the execute_services function when smart home actions are requested.\nDo not tell me what you're thinking about doing either, just do it.\nIf I ask you about the current state of the home, or many devices I have, or how many devices are in a specific state, just respond with the accurate information but do not call the execute_services function.\nIf I ask you what time or date it is be sure to respond in a human readable format.\nIf you don't have enough information to execute a smart home command then specify what other information you need."},{"role":"user","content":"How are you feeling?"}],"functions":[{"name":"execute_services","description":"Use this function to execute service of devices in Home Assistant.","parameters":{"properties":{"list":{"items":{"properties":{"domain":{"description":"The domain of the service","type":"string"},"service":{"description":"The service to be called","type":"string"},"service_data":{"description":"The service data object to indicate what to control.","properties":{"entity_id":{"description":"The entity_id retrieved from available devices. It must start with domain, followed by dot character.","type":"string"}},"required":["entity_id"],"type":"object"}},"required":["domain","service","service_data"],"type":"object"},"type":"array"}},"type":"object"}}],"function_call":"auto","stream":false,"mode":0,"step":0,"grammar":"","grammar_json_functions":null,"grammar_json_name":null,"backend":"","model_base_name":""}
9:32PM DBG guessDefaultsFromFile: template already set name=phi-2-chat:Q8_0
9:32PM DBG Configuration read: &{PredictionOptions:{Model:phi-2-layla-v1-chatml-Q8_0.gguf Language: Translate:false N:0 TopP:0xc000512638 TopK:0xc000b77c90 Temperature:0xc000512630 Maxtokens:0xc000512608 Echo:false Batch:0 IgnoreEOS:false RepeatPenalty:0 RepeatLastN:0 Keep:0 FrequencyPenalty:0 PresencePenalty:0 TFZ:0xc000b77cc0 TypicalP:0xc000b77cb8 Seed:0xc000b77ce0 NegativePrompt: RopeFreqBase:0 RopeFreqScale:0 NegativePromptScale:0 UseFastTokenizer:false ClipSkip:0 Tokenizer:} Name:phi-2-chat:Q8_0 F16:0xc000b77c60 Threads:0xc000b77c78 Debug:0xc000512730 Roles:map[] Embeddings:false Backend: TemplateConfig:{Chat:{{.Input}}
<|im_start|>assistant
ChatMessage:<|im_start|>{{ .RoleName }}
{{.Content}}<|im_end|>
Completion:{{.Input}}
Edit: Functions: UseTokenizerTemplate:false JoinChatMessagesByCharacter:} PromptStrings:[] InputStrings:[] InputToken:[] functionCallString:auto functionCallNameString: ResponseFormat: ResponseFormatMap:map[] FunctionsConfig:{DisableNoAction:false GrammarConfig:{ParallelCalls:false DisableParallelNewLines:false MixedMode:false NoMixedFreeString:false NoGrammar:false Prefix: ExpectStringsAfterJSON:false PropOrder:} NoActionFunctionName: NoActionDescriptionName: ResponseRegex:[] JSONRegexMatch:[] ReplaceFunctionResults:[] ReplaceLLMResult:[] CaptureLLMResult:[] FunctionName:false} FeatureFlag:map[] LLMConfig:{SystemPrompt: TensorSplit: MainGPU: RMSNormEps:0 NGQA:0 PromptCachePath: PromptCacheAll:false PromptCacheRO:false MirostatETA:0xc000b77cb0 MirostatTAU:0xc000b77ca8 Mirostat:0xc000b77ca0 NGPULayers:0xc000b77cd0 MMap:0xc000b77c61 MMlock:0xc000b77cd9 LowVRAM:0xc000b77cd9 Grammar: StopWords:[<|im_end|>] Cutstrings:[] TrimSpace:[] TrimSuffix:[] ContextSize:0xc000b77c50 NUMA:false LoraAdapter: LoraBase: LoraScale:0 NoMulMatQ:false DraftModel: NDraft:0 Quantization: GPUMemoryUtilization:0 TrustRemoteCode:false EnforceEager:false SwapSpace:0 MaxModelLen:0 TensorParallelSize:0 MMProj: FlashAttention:false NoKVOffloading:false RopeScaling: ModelType: YarnExtFactor:0 YarnAttnFactor:0 YarnBetaFast:0 YarnBetaSlow:0} AutoGPTQ:{ModelBaseName: Device: Triton:false UseFastTokenizer:false} Diffusers:{CUDA:false PipelineType: SchedulerType: EnableParameters: CFGScale:0 IMG2IMG:false ClipSkip:0 ClipModel: ClipSubFolder: ControlNet:} Step:0 GRPC:{Attempts:0 AttemptsSleepTime:0} TTSConfig:{Voice: VallE:{AudioPath:}} CUDA:false DownloadFiles:[] Description: Usage:}
9:32PM DBG Response needs to process functions
panic: Unrecognized schema: map[]
goroutine 77 [running]:
github.com/mudler/LocalAI/pkg/functions.(*JSONSchemaConverter).visit(0xc000427990, 0xc0004c4960, {0x0, 0x0}, 0xc0004c4960)
/home/runner/_work/LocalAI/LocalAI/pkg/functions/grammar_json_schema.go:304 +0x69b
github.com/mudler/LocalAI/pkg/functions.(*JSONSchemaConverter).Grammar(0xc000427990, 0xc0004c4960, {0xc0009ff568, 0x1, 0x1})
/home/runner/_work/LocalAI/LocalAI/pkg/functions/grammar_json_schema.go:336 +0x85
github.com/mudler/LocalAI/pkg/functions.(*JSONSchemaConverter).GrammarFromBytes(0xc000427990, {0xc000512e98, 0x2, 0x8}, {0xc0009ff568, 0x1, 0x1})
/home/runner/_work/LocalAI/LocalAI/pkg/functions/grammar_json_schema.go:343 +0x89
github.com/mudler/LocalAI/pkg/functions.JSONFunctionStructureFunction.Grammar({{0x0, 0x0, 0x0}, {0x0, 0x0, 0x0}, 0x0}, {0xc0009ff568, 0x1, 0x1})
/home/runner/_work/LocalAI/LocalAI/pkg/functions/grammar_json_schema.go:405 +0xf8
github.com/mudler/LocalAI/core/http/endpoints/openai.ChatEndpoint.func3(0xc0002b4c08)
/home/runner/_work/LocalAI/LocalAI/core/http/endpoints/openai/chat.go:234 +0xe9d
github.com/gofiber/fiber/v2.(*Ctx).Next(0xc000c9cbf0?)
/home/runner/go/pkg/mod/github.com/gofiber/fiber/v2@v2.52.4/ctx.go:1027 +0x3d
github.com/mudler/LocalAI/core/http.App.func5(0xc0002b4c08)
/home/runner/_work/LocalAI/LocalAI/core/http/app.go:164 +0x227
github.com/gofiber/fiber/v2.(*App).next(0xc000236f08, 0xc0002b4c08)
/home/runner/go/pkg/mod/github.com/gofiber/fiber/v2@v2.52.4/router.go:145 +0x1be
github.com/gofiber/fiber/v2.(*Ctx).Next(0xc0002b4c08?)
/home/runner/go/pkg/mod/github.com/gofiber/fiber/v2@v2.52.4/ctx.go:1030 +0x4d
github.com/mudler/LocalAI/core/http.App.LocalAIMetricsAPIMiddleware.func8(0xc0002b4c08)
/home/runner/_work/LocalAI/LocalAI/core/http/endpoints/localai/metrics.go:38 +0xa5
github.com/gofiber/fiber/v2.(*Ctx).Next(0xc0002b4c08?)
/home/runner/go/pkg/mod/github.com/gofiber/fiber/v2@v2.52.4/ctx.go:1027 +0x3d
github.com/gofiber/contrib/fiberzerolog.New.func1(0xc0002b4c08)
/home/runner/go/pkg/mod/github.com/gofiber/contrib/fiberzerolog@v1.0.0/zerolog.go:36 +0xb7
github.com/gofiber/fiber/v2.(*App).next(0xc000236f08, 0xc0002b4c08)
/home/runner/go/pkg/mod/github.com/gofiber/fiber/v2@v2.52.4/router.go:145 +0x1be
github.com/gofiber/fiber/v2.(*App).handler(0xc000236f08, 0x49d44f?)
/home/runner/go/pkg/mod/github.com/gofiber/fiber/v2@v2.52.4/router.go:172 +0x78
github.com/valyala/fasthttp.(*Server).serveConn(0xc0002dca00, {0x4110c258, 0xc0009ff2c0})
/home/runner/go/pkg/mod/github.com/valyala/fasthttp@v1.51.0/server.go:2359 +0xe70
github.com/valyala/fasthttp.(*workerPool).workerFunc(0xc000626820, 0xc0007216c0)
/home/runner/go/pkg/mod/github.com/valyala/fasthttp@v1.51.0/workerpool.go:224 +0xa4
github.com/valyala/fasthttp.(*workerPool).getCh.func1()
/home/runner/go/pkg/mod/github.com/valyala/fasthttp@v1.51.0/workerpool.go:196 +0x32
created by github.com/valyala/fasthttp.(*workerPool).getCh in goroutine 1
/home/runner/go/pkg/mod/github.com/valyala/fasthttp@v1.51.0/workerpool.go:195 +0x190
root@localAI:~#
Additional context
I got my previos issue resolved by changing the VM CPU type.

I found a couple of solutions.  If I use version 2.8.2 it works.  I am test another integration tool.

cannot get it work.  will look for another solution.

repo: mudler/LocalAI


text:
🛑 Marketplace is down

In 8b2f502, Marketplace (https://marketplace.muetab.com) was down:

HTTP code: 504
Response time: 10105 ms

Resolved: Marketplace is back up in 888e4fa.

source: gharchive/issue

repo: mue/status

license: MIT

license_type: permissive

license_source: github-api


text:
Is there any way to keep open bot even my docker is off?

Hi,
Thanks for your great work. I need some help. I want to use bot even my computer(also docker) is off. Is there any way to use all bot functionalities when docker is off? Or do I have to keep open my docker if I use bot?

To my knowledge, there is no option of running it all within Discord. You will have to provide the infrastructure for the bot, and the bot will only be online if that infrastructure is running. I have used a Raspberry Pi for that in the past and a cheap Linux VPS right now.

Thanks for your help. However I don't have any infrastructure like that. If you provide an infrastructure for yourself,  I would appreciate if you share your bot. This setup seems hard to maintain for personal usage.

I agree this is not optimal and I would have liked to see a simpler option, but that's the tools we are given. The code in this repository plus the instructions are how I solved it.
Unfortunately, I cannot provide a live version of my bot. First, as mentioned in the readme, the current implementation has a major limitation as each instance of the bot can only run one timer. That does not scale for multi-user usage (each user would need their own instance). Second, I do not have the time or budget to provide production-level hosting. All I have is my own crash-and-burn environment that I may use to spin up an instance of the bot from time to time.

Thank you for your support.

repo: muerek/discord-interval-timer-bot


text:
battery control parameter discharge limit & max charging seems unintuitive

Both parameter did not relfect 1:1 against the reals SOC of the battery.
This resulted in a behavior, which was hard to explain.
We want to be have the user in focus  :-D .
With the PR, the values work against the designed capacity and follow the SOC% displayed everywhere.
I also fixed a bug resulting in a wrong "recharge OK" calculation.

Is now running on local test.

Change is running on my side.
Will merge on Thursday.

source: gharchive/pull-request

repo: muexxl/batcontrol


text:
Dialog pickers do not respect material-ui theme (atleast typogaphy.fontSIze)

Environment

Tech
Version

@material-ui/pickers
3.2.2

material-ui
4.3.2

React
16.9.0

Browser
Google  Chrome

Peer library
dayjs@1.8.15

Steps to reproduce
Increase typography.fontSize of material-ui's theme.
Expected behavior

It should respect theme e.g. sizes should be some how related to theme (atleast fontSize)
Actual behavior

The component looks buggy, some parts are partially displayed ( views and current month )  ...

Live example
https://codesandbox.io/embed/material-ui-pickers-usage-demo-ikmcx

I have no idea how to change the sizes depends on fontSize. You can try to increase theme.spacing. But it looks like you need to left the same style for material-ui-pickers.

authors: NoHomey dmtrKovalenko

repo: mui-org/material-ui-pickers


text:
[docs] Menu composition example issue with React-popper

This is not a huge issue, but I was trying the MenuListComposition example, and trying to make it toggle the dropdown on click the "Open Menu" target button.
But I notice that the ClickAwayListener is always called just before (which is weird, but I guess due to how React handles all events from document) the "Open Menu" button click, so toggling is impossible, even when trying to stopPropagation.
https://codesandbox.io/s/oqj43j8o99

Oh, by waiting for a js loop cycle: https://codesandbox.io/s/oqj43j8o99
I'll see if I can update the docs example soon

repo: mui-org/material-ui


text:
Compact display like compact gmail

The new gmail uses Material Design and offers a compact view. I searched for "compact" but couldn't find any guidance on how  I can implement something like it in Material UI.
Can I build a compact material UI application today, if so how? If not, can this be added?

@newtack Check out this demo: https://material-ui.com/demos/avatars/#image-avatars.
import React from "react";
import PropTypes from "prop-types";
import { withStyles } from "@material-ui/core/styles";
import Avatar from "@material-ui/core/Avatar";

const styles = {
  compact: {
    width: 28,
    height: 28
  }
};

function ImageAvatars(props) {
  const { classes } = props;
  return (
    <Avatar
      alt="Olivier Tassinari"
      src="//lh6.googleusercontent.com/-C3OHwSdue54/AAAAAAAAAAI/AAAAAAAAETk/ow0-D2PsYxc/s28-c-k-no/photo.jpg"
      className={classes.compact}
    />
  );
}

ImageAvatars.propTypes = {
  classes: PropTypes.object.isRequired
};

export default withStyles(styles)(ImageAvatars);

https://codesandbox.io/s/4j17y7jpz0

authors: newtack oliviertassinari


text:
No styles extracted and rendered on SSR - styles injected only on client side

Duplicates

[X] I have searched the existing issues

Latest version

[X] I have tested the latest version

Current behavior 😯
Styles are not extracted on SSR - empty styles are returned which makes page unstyled when javascript is turned off. And styles only kick in on client side when javascript is enabled.
(more detailed description in the README of the linked github repository)
Expected behavior 🤔
Styles should be correctly extracted on SSR so that they can be printed
Steps to reproduce 🕹
See README of https://github.com/ingelity/mui-v5-ssr
Context 🔦
styles on SSR are not working and it makes the page jump on load as styles are injected only on client side
Your environment 🌎
Not related to OS or browsers but I have:
Linux 5.4 Ubuntu 18.04.6 LTS (Bionic Beaver)
Chrome: 95.0.4638.69
Firefox: 94.0

@mnajdova  I think I found the culprit. I was also able to reproduce it with the SSR example project that you referenced above. Seems to be because of the way I wrap/pass the Theme around/to children components, but I'll do some more testing tomorrow and will close this issue in case that turns out to be the problem.

@mnajdova yes it was definitely because of incorrect Theme wrapping. Works fine now.


text:
[Drawer] Fix ref forwarding when variant="persistent"

[X] I have followed (at least) the PR section of the contributing guide.

Closes #17090

@ZachStoltz It's a great first pull request on Material-UI 👌🏻. Thank you for working on it!

authors: ZachStoltz oliviertassinari


text:
Remove position sticky

I remove the sticky position because on drop down the menu get overflow

[ ] I have followed (at least) the PR section of the contributing guide.

@nicks78 Please create an issue with the problem you are experiencing. Creating a pull request like this removes the context of the problem.


text:
[test] Include coverage report of browser tests

CodeCov reports previously only included coverage across React stable and next. However, it did not include browser tests which are covering more and more of our code. We can combine the browser and JSDOM reports to get a more accurate picture of our code coverage.

codecov/project — 95.49% (+4.56%) compared to a2867c9

I have noticed a regression in the DX linked to this. Opening test_browser-1 of this PR, you will see

We have the samve behavior in dev mode (how I noticed it):

I could find https://github.com/karma-runner/karma/issues/2342 related to this problem.


text:
[Dialog] Fix override paper styles

Small typo fixed

[x] I have followed (at least) the PR section of the contributing guide.

@newsiberian Thanks, happy to see these new contribution, 5 years later 😁

authors: newsiberian oliviertassinari


text:
icon import issue. Some icons affected

Steps to reproduce
No response
Current behavior
Hi, the issue come up only with the version 6.1 but was not present in the preview version 6.0.2. Even the version 6.1.1 (last release) not solve the problem
I had the issue the NavigateBefore and NavigateNext but not with DoNotDisturb
The returned error is Resolving to directories is not possible with the exports field (request was ./)
I use the following code in same file
import { DoNotDisturb } from '@mui/icons-material/';                 **//working**
import { NavigateNext } from '@mui/icons-material/';      **//not working**
import NavigateBefore from '@mui/icons-material/NavigateBefore';   **//not working**

Thanks a lot for your awesome work
Expected behavior
Context
No response
Your environment

npx @mui/envinfo

 System:
    OS: Linux 6.11 Ubuntu 24.04.1 LTS 24.04.1 LTS (Noble Numbat)
  Binaries:
    Node: 22.8.0 - ~/.nvm/versions/node/v22.8.0/bin/node
    npm: 10.8.3 - ~/.nvm/versions/node/v22.8.0/bin/npm
    pnpm: 9.10.0 - ~/.nvm/versions/node/v22.8.0/bin/pnpm
  Browsers:
    Chrome: 129.0.6668.58
  npmPackages:
    @emotion/react: ^11.13.3 => 11.13.3
    @emotion/styled: ^11.13.0 => 11.13.0
    @mui/base:  5.0.0-beta.40
    @mui/core-downloads-tracker:  6.1.1
    @mui/icons-material: ^6.1.1 => 6.1.1
    @mui/joy: ^5.0.0-beta.48 => 5.0.0-beta.48
    @mui/material: ^6.1.1 => 6.1.1
    @mui/private-theming:  6.1.1
    @mui/styled-engine:  6.1.1
    @mui/system:  6.1.1
    @mui/types:  7.2.17
    @mui/utils:  6.1.1
    @types/react:  18.3.5
    react: ^18.3.1 => 18.3.1
    react-dom: ^18.3.1 => 18.3.1
    typescript:  4.9.5

Search keywords: icons

It's about #43624 then.

You can remove the trailing slash from '@mui/icons-material/'. If you still experience the issue after that, please provide us with a real reproduction (codesandbox or github repo) so we can investigate.

**> @lcfr-dev You can remove the trailing slash from '@mui/icons-material/', this is not supported (*). If you still experience the issue after that, please provide us with a real reproduction (codesandbox or github repo) so that we can investigate.

(*) Verified that we're nowhere advertising this in our docs. Should it be explicitly documented? Feels a bit redundant to me.

Thanks a lot guys. The issue is solved. I just done a clean install of everything in in the project. Previusly i forget to say that I'm using Vite.

authors: Janpot lcfr-dev oliviertassinari

repo: mui/material-ui


text:
[StepIcon] Fix text centering when changing browser font size

What I did
Changed the StepIcon in a backwards compatible way to fix the centering of the text if you change your browser font size
What you need to test

Go to your browser and increase your font size (e.g using Very Large on Chrome)

Before
Text is NOT centered

After
Text is centered

[ ] I have followed (at least) the PR section of the contributing guide.

Great! thanks for your review. Is there documentation on how to write tests for this? I don't fully understand how these fixtures are being tested (I see no assertions).

Nevermind, It looks like you are using Playwright to take screenshots

This should be ready to go

you bet looking forward to more contributions


text:
[Joy] Add missing global exports

I noticed that some of the Components are not re-exported from @mui/joy.

[x] I have followed (at least) the PR section of the contributing guide.

@tomasz-sodzawiczny First of all, really appreciate the fix and the proposal script. But to make it easier, let's split them so that we can merge the fix.
This PR should be just the fix (remove the script). For the script, I propose that you create an issue first describing the intention so that other team members and the community can comment. Later on, if we decided to move forward it will be another PR.
Is this sound good to you?

@tomasz-sodzawiczny First of all, really appreciate the fix and the proposal script. But to make it easier, let's split them so that we can merge the fix.

Done. I put sorting the imports and adding new ones in separate commits, if that helps with reviewing the change.

authors: siriwatknp tomasz-sodzawiczny


text:
[Joy][TextField] Expose decorator classes

Signed-off-by: VelociRaptor 77036902+zignis@users.noreply.github.com

[x] I have followed (at least) the PR section of the contributing guide.

There is no startDecorator or endDecorator component slots in TextField so merely adding it in textFieldClasses does not work. To target the decorators for styling, inputClasses.startDecorator can be used for TextField component.

Sorry, I forgot to check component slots.


text:
Error after updating

After this last update began to give this problem.
I have already updated geokdrive, requeriment.txt and continue with the same problem. Does anyone know what can it be?
I use linux mint and python 3.6.5. The code is the echo example.

Waiting for QR
Bot started
Checking for more messages
Traceback (most recent call last):
File "echo.py", line 14, in
for contact in driver.get_unread():
File "/home/lucas/Documentos/wpp teste/1/webwhatsapi/init.py", line 348, in get_unread
raw_message_groups = self.wapi_functions.getUnreadMessages(include_me, include_notifications, use_unread_count)
File "/home/lucas/Documentos/wpp teste/1/webwhatsapi/wapi_js_wrapper.py", line 44, in getattr
wapi_functions = dir(self)
File "/home/lucas/Documentos/wpp teste/1/webwhatsapi/wapi_js_wrapper.py", line 69, in dir
result = self.driver.execute_script("return window.WAPI")
File "/home/lucas/.local/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 635, in execute_script
'args': converted_args})['value']
File "/home/lucas/.local/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 320, in execute
self.error_handler.check_response(response)
File "/home/lucas/.local/lib/python3.6/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.JavascriptException: Message: Cyclic object value

Check It
https://github.com/mukulhase/WebWhatsapp-Wrapper/issues/404

repo: mukulhase/WebWhatsapp-Wrapper


text:
Empty Mokku tab in Electron app

Hi!
I've tried to add this extension to my Electron app. The tab shows, but it's empty.
Electron v13.2.2
I know that this is not much of a description, but I have no other info to give :c
Hoping for your help!

Hi @Mesya82 ,
Right now it doesn't support Electron app, but thanks for letting me know with V2 (in progress) I will keep that in mind.

repo: mukuljainx/Mokku


text:
aku nambah fakta

aku menambahkan fakta yang ada

Ini masih ada yang kurang. Coba tambahkan ini itu.

Gak bisa ini... gagal.

license: mit

license_source: bigquery


text:
convert array number to string

Berfore :
echo Terbilang::convert(100); // seratus
echo Terbilang::convert([100]); // error
After :
echo Terbilang::convert([100]); // seratus
echo Terbilang::convert(100); // seratus

Ini hanya untuk satu array? :/
Kalau cuma untuk satu array, nggak terlalu berguna. Lebih baik bikin yang bisa multiple array. Misalnya
Terbilang::convert([100, 200, 300]); // seratus, dua ratus, tiga ratus

Ditunggu update-nya. :D

iya mas makasih nanti dibuat untuk multiple array. makasih 👍

license: WTFPL


text:
"dynamic multihash"

This is a little out there, this is born out of an attempt to generalize the type of "content-prefix-ignoring multihash function" described at the bottom of typed_protobuf.md that is required for supporting CosmosSDK chains.
It occurred to me that we may

Want to use a different base hash function than sha2-256
Want to ignore different lengths of prefixes than 32 bytes
Want to ignore suffixing bytes instead of prefixing ones

Currently this would require registering a new multicodec type for each of these multihash variations, but with the multihash proposed here it is possible to describe all of these variations with a single multihash type.
The scheme proposed here is to map the new "dynamic-multihash" type to a multihash algorithm whereby the resulting multihash will take the below form:
{dynamic-multihash-prefix}-{varuint for the multihash code for the used multihash function}-{single byte that indicates whether to trim bytes from front or back of the content}-{varuint for the length of content to trim before hashing it}-{hash of the referenced content whereby the hash function ignored X bytes from either the front or back of the byte string}
A more concrete example looks like:
0xc101-0x02-0x1013-0x00-0x01-0x20-{hash of referenced content whereby the hash function ignored the first 32 bytes of the content}

0xc101 == the proposed multihash type byte prefix for "dynamic-multihash"
0x02 == single byte stipulating how many subsequent bytes are reserved for the multihash type for the base hash function used
0x1013 == multihash type for the hash function used, in this case sha2-224
0x00 == single byte, 0 or 1, that identifies whether bytes should should be trimmed from the front (0) or end (1) of the content before hashing
0x01 == single byte stipulating how many subsequent bytes encode the number of bytes to trim from the referenced content before hashing
0x20 == number of bytes to trim from the referenced content before hashing, in this case 32 bytes

The above resultant multihash would tell us that the referenced content has been hashed using the sha2-224 function and that 32 bytes were trimmed off the front of the binary before hashing it.
One obvious issue although I'm not sure how problematic it would be in the greater system is that you can't tell by looking at the proposed multihash prefix, 0xc101, how long the prefixed content hash will be.

Closing this, deviates too much. Perhaps worthy of a discussion at some point?

repo: multiformats/multicodec


text:
fsck-root depends on s6-linux-init

I'm looking at rc.S/fsck-root/up and it calls some s6-linux-init binaries on failure: s6-linux-init-umountall and s6-linux-init-hpr. Is it somehow required or can they be replaced to work without s6-linux-init?

No, it is not required to use the s6-linux-init binaries. I use them here since this repo is about providing a full s6-based init system and s6-linux-init provides those functions so why not use it.
The s6-linux-init-umountall call can be replaced with umount -ar.
As for s6-linux-init-hpr, at first I thought using sysvinit's reboot command will not work if its init program is not running (because /dev/initctl will not exist). This can happen when the user is testing the s6-based init system without replacing the sysvinit's halt,  init,  poweroff,  reboot,  shutdown, and  telinit binaries (e.g. by suffixing the s6's replacements of those commands with .s6 and then booting the system using init=/sbin/init.s6 as the kernel command line). But, after you brought this up, I tried running the sysvinit's rebootcommand with the-fparameter without itsinitbeing the PID 1 and it seemed to work sos6-linux-init-hpr -frcall can probably be replaced withreboot -f`.

I was thinking not so much about the running s6-linux-init and anohter init system in parallel, but about running s6-rc on to of another init system. s6-rc starts and works perfectly from inittab. It provides a nice way to migrate the system in steps. I can start s6-rc at boot time from inittab and migrate and test the services one by one. It doesn't work though if services call s6-linux-init specific binaries. I thought that s6-linux-init provides compatible sysvinit- and BSD-compatible binaries, so I wondered, whether there is a need to use s6-only binaries. Therefore I'm suggesting to use standard binaries (umount and reboot), where reboot can be s6 or standard Slackware binary), but I get that the repository assumes s6-linux-init and will modify my service locally otherwise.

Hmm, good point. As I mentioned above, I just realized that we can replace them with the standard binaries after you brought this up here.
I have replaced them with the standard binaries in the latest commit. Feel free to inform me here if there are still problems.
Thanks again for bringing this up!

Thanks a lot!


text:
App-Scaling

It appears as though this application was written with hard-coded screen sizes in mind - but with so many different iOS device sizes out there now, it'd be nice to be able to have the app scale to fit better. Also... is the development on this app still alive?

Not completely dead, but very inactive as of late!
This issue is something that would definitely get tackled once I get some more time to commit to the iOS app.

This was fixed by the just-released 1.3.1.

repo: mumble-voip/mumble-iphoneos


text:
Correct message keys for async batching mode

There're some possible changes relative to #325.
As create_message_set() method is called only from base Producer class and from _send_upstream(), I've changed it a little bit, so messages sent as a list of (msg, key) tuples. I've added some basic tests also.
Take a look please, probably it can be improved.
(This PR is squashed to the other branch #326.)

This seems like a reasonable approach.  Another possibility would be to use a namedtuple.  Will take a closer look in the next few days.  Would like to get this issue fixed before next release!

@dpkp Indeed, it's an important fix, I can confirm that enabled Kafka log compaction will delete all messages with same keys at the topic, and it's an irreversible loss of data. I can change it with namedtuple (though don't see a big difference), just let me know if it's necessarily.

authors: dpkp vshlapakov

repo: mumrah/kafka-python


text:
Hardware transcoding

It looks like the current implementation does not support gpu hardware transcoding.  From my understanding, we just need the NVIDIA/AMD drivers in the plex containers to make this happen.  I can work on this if you have some direction.

@colek42, any luck on this one?

I played with it for about an hour, did not make any progress.  Someday I'll hack at it again.

I got this working in the plexinc/pms-docker container part of this helm chart, FWIW:

In my case one of the k8s nodes is running as a VM to a guest with a Skylake CPU that is exposing the intel GPU to the ubuntu VM running the k8s node (via iommu & gvt device virtualization).  I'm also running the Intel GPU Device Plugin for Kubernetes in order to facilitate exposing the GPU device to pods that request it in a resource limit, e.g.
    resources:
      limits:
       gpu.intel.com/i915: 1

'enabling' this was as easy as adding the above resource setting to the values for this helm chart (after deploying the necessary intel GPU device plugin daemonset)

I have also got this working with an old nvidia GPU using the nvidia device plugin. It requires:

Install the NVIDIA device driver (can probably be done using an init container/daemonset and the nvidia install container) - I installed this on my host machine in testing
Install the NVIDIA kubernetes device plugin
Add nvidia.com/gpu resource limit to the plex container:

      resources:
        limits:
          nvidia.com/gpu: 1

Add the NVIDIA_DRIVER_CAPABILITIES=all environment variable to the plex container (this can probably be reduced to just video, but I've not tested)

This works fine even when running plex as a non-root user (as is default in the pmsinc docker images)

I also tried adding 2 nvidia GPUs (as I had a spare lying around). These were visible when running nvidia-smi, however Plex still enforced the only-two-streams-hardware-transcoding limit when I tried to start 4 transcodes at once. I've not had a chance to dig into this further to work out the real reason why, or how to work around this:
root@plex-kube-plex:/# nvidia-smi
Mon Apr 15 14:45:54 2019
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 418.56       Driver Version: 418.56       CUDA Version: 10.1     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 660     Off  | 00000000:01:00.0 N/A |                  N/A |
| 30%   51C    P0    N/A /  N/A |     97MiB /  1490MiB |     N/A      Default |
+-------------------------------+----------------------+----------------------+
|   1  GeForce GTX 650 Ti  Off  | 00000000:06:00.0 N/A |                  N/A |
| 24%   36C    P0    N/A /  N/A |     11MiB /   981MiB |     N/A      Default |
+-------------------------------+----------------------+----------------------+

I'm working on getting this to work with the kube-plex on multiple pods but I haven't quite figured out the syntax for adding the limits/requests in the pod creation.
https://github.com/todaywasawesome/kube-plex/blob/trasncode/main.go#L125
My thought was to add them as environment variables on the kube-plex container but I'm stuck having little familiarity with using the client-go to creating the resources this way.

I'll see if I can take a look at this as well, as this is a feature I would like to make use of if possible.

authors: WojoInc billimek colek42 munnerz tiny-dancer todaywasawesome

repo: munnerz/kube-plex


text:
Uncaught TypeError: Arguments to CompositeDisposable must have a .dispose() method

Here's the stack trace after issuing "Toggle" command with two .css files open:

Opened two .css files.
Called up command window: Ctrl-Shift-P
Typed in "Toggle" and selected "Split Diff: Toggle" from drop down.

Atom Version: 1.11.1
Electron Version: 0.37.8
System: Microsoft Windows 7 Enterprise
Thrown From: split-diff package, v1.0.5
Stack Trace
Uncaught TypeError: Arguments to CompositeDisposable.add must have a .dispose() method
At C:\Users\<username>\AppData\Local\atom\app-1.11.1\resources\app.asar\node_modules\event-kit\lib\composite-disposable.js:70

TypeError: Arguments to CompositeDisposable.add must have a .dispose() method
    at assertDisposable (C:\Users\<username>\AppData\Local\atom\app-1.11.1\resources\app.asar\node_modules\event-kit\lib\composite-disposable.js:70:13)
    at CompositeDisposable.module.exports.CompositeDisposable.add (C:\Users\<username>\AppData\Local\atom\app-1.11.1\resources\app.asar\node_modules\event-kit\lib\composite-disposable.js:43:11)
    at new CompositeDisposable (C:\Users\<username>\AppData\Local\atom\app-1.11.1\resources\app.asar\node_modules\event-kit\lib\composite-disposable.js:19:14)
    at C:\Users\<username>\AppData\Local\atom\app-1.11.1\resources\app.asar\src\workspace.js:265:29
    at Function.module.exports.Emitter.simpleDispatch (C:\Users\<username>\AppData\Local\atom\app-1.11.1\resources\app.asar\node_modules\event-kit\lib\emitter.js:25:14)
    at Emitter.module.exports.Emitter.emit (C:\Users\<username>\AppData\Local\atom\app-1.11.1\resources\app.asar\node_modules\event-kit\lib\emitter.js:129:28)
    at PaneContainer.module.exports.PaneContainer.addedPaneItem (C:\Users\<username>\AppData\Local\atom\app-1.11.1\resources\app.asar\src\pane-container.js:388:27)
    at C:\Users\<username>\AppData\Local\atom\app-1.11.1\resources\app.asar\src\pane-container.js:372:28
    at Function.module.exports.Emitter.simpleDispatch (C:\Users\<username>\AppData\Local\atom\app-1.11.1\resources\app.asar\node_modules\event-kit\lib\emitter.js:25:14)
    at Emitter.module.exports.Emitter.emit (C:\Users\<username>\AppData\Local\atom\app-1.11.1\resources\app.asar\node_modules\event-kit\lib\emitter.js:129:28)
    at Pane.module.exports.Pane.addItem (C:\Users\<username>\AppData\Local\atom\app-1.11.1\resources\app.asar\src\pane.js:491:20)
    at Object.module.exports.SplitDiff._getVisibleEditors (file:///C:/Users/<username>/.atom/packages/split-diff/lib/split-diff.coffee:339:17)
    at Object.module.exports.SplitDiff.diffPanes (file:///C:/Users/<username>/.atom/packages/split-diff/lib/split-diff.coffee:183:16)
    at Object.module.exports.SplitDiff.toggle (file:///C:/Users/<username>/.atom/packages/split-diff/lib/split-diff.coffee:63:8)
    at atom-workspace.subscriptions.add.atom.commands.add.split-diff:toggle (file:///C:/Users/<username>/.atom/packages/split-diff/lib/split-diff.coffee:51:32)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (C:\Users\<username>\AppData\Local\atom\app-1.11.1\resources\app.asar\src\command-registry.js:260:29)
    at C:\Users\<username>\AppData\Local\atom\app-1.11.1\resources\app.asar\src\command-registry.js:3:61
    at CommandPaletteView.module.exports.CommandPaletteView.confirmed (C:\Users\<username>\AppData\Local\atom\app-1.11.1\resources\app.asar\node_modules\command-palette\lib\command-palette-view.js:183:32)
    at CommandPaletteView.module.exports.SelectListView.confirmSelection (C:\Users\<username>\AppData\Local\atom\app-1.11.1\resources\app.asar\node_modules\atom-space-pen-views\lib\select-list-view.js:338:21)
    at space-pen-li.<anonymous> (C:\Users\<username>\AppData\Local\atom\app-1.11.1\resources\app.asar\node_modules\atom-space-pen-views\lib\select-list-view.js:139:19)
    at HTMLOListElement.jQuery.event.dispatch (C:\Users\<username>\AppData\Local\atom\app-1.11.1\resources\app.asar\node_modules\jquery\dist\jquery.js:4435:9)
    at HTMLOListElement.elemData.handle (C:\Users\<username>\AppData\Local\atom\app-1.11.1\resources\app.asar\node_modules\jquery\dist\jquery.js:4121:28)

Commands
     -5:09.1.0 find-and-replace:show (atom-text-editor.editor.is-focused)
     -5:01.6.0 core:confirm (atom-text-editor.editor.mini.is-focused)
 15x -4:58.5.0 core:backspace (atom-text-editor.editor.mini.is-focused)
     -4:50 core:confirm (atom-text-editor.editor.mini.is-focused)
 20x -4:25.8.0 core:backspace (atom-text-editor.editor.mini.is-focused)
     -3:16 find-and-replace:show (atom-text-editor.editor.is-focused)
     -3:13.8.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -1:57.5.0 fuzzy-finder:toggle-file-finder (atom-text-editor.editor.is-focused)
     -1:52.7.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -1:50 fuzzy-finder:toggle-file-finder (atom-text-editor.editor.is-focused)
 13x -1:31.2.0 core:backspace (atom-text-editor.editor.mini.is-focused)
  2x -0:36 core:copy (atom-text-editor.editor.is-focused)
     -0:34.8.0 fuzzy-finder:toggle-file-finder (atom-text-editor.editor.is-focused)
  4x -0:29.7.0 core:backspace (atom-text-editor.editor.mini.is-focused)
     -0:23.4.0 command-palette:toggle (atom-text-editor.editor.is-focused)
     -0:14 split-diff:toggle (atom-text-editor.editor)

Config
{
  "core": {
    "telemetryConsent": "limited"
  },
  "split-diff": {
    "ignoreWhitespace": true
  }
}

Installed Packages
# User
.bin, vundefined (inactive)
atom-beautify, v0.29.13 (inactive)
atom-typescript, v10.1.8 (active)
linter, v1.11.4 (active)
pumpkin-syntax, v0.1.0 (inactive)
split-diff, v1.0.5 (inactive)
atom-dark-syntax, v0.27.0 (inactive)
atom-dark-ui, v0.52.0 (inactive)
atom-light-syntax, v0.28.0 (inactive)
atom-light-ui, v0.44.0 (inactive)
base16-tomorrow-dark-theme, v1.2.0 (inactive)
base16-tomorrow-light-theme, v1.2.0 (inactive)
one-dark-ui, v1.6.0 (active)
one-light-ui, v1.6.0 (inactive)
one-dark-syntax, v1.3.0 (active)
one-light-syntax, v1.3.0 (inactive)
solarized-dark-syntax, v1.0.2 (inactive)
solarized-light-syntax, v1.0.2 (inactive)
about, v1.7.0 (active)
archive-view, v0.61.1 (active)
autocomplete-atom-api, v0.10.0 (active)
autocomplete-css, v0.11.2 (active)
autocomplete-html, v0.7.2 (active)
autocomplete-plus, v2.31.1 (active)
autocomplete-snippets, v1.11.0 (active)
autoflow, v0.27.0 (inactive)
autosave, v0.23.1 (active)
background-tips, v0.26.1 (active)
bookmarks, v0.42.0 (active)
bracket-matcher, v0.82.1 (active)
command-palette, v0.38.0 (active)
deprecation-cop, v0.54.1 (active)
dev-live-reload, v0.47.0 (active)
encoding-selector, v0.22.0 (active)
exception-reporting, v0.40.0 (active)
find-and-replace, v0.201.1 (active)
fuzzy-finder, v1.4.0 (active)
git-diff, v1.1.0 (active)
go-to-line, v0.31.0 (inactive)
grammar-selector, v0.48.2 (active)
image-view, v0.59.0 (active)
incompatible-packages, v0.26.1 (active)
keybinding-resolver, v0.35.0 (active)
line-ending-selector, v0.5.0 (active)
link, v0.31.1 (inactive)
markdown-preview, v0.158.0 (active)
metrics, v1.0.0 (active)
notifications, v0.65.1 (active)
open-on-github, v1.2.0 (inactive)
package-generator, v1.0.0 (inactive)
settings-view, v0.242.2 (active)
snippets, v1.0.2 (active)
spell-check, v0.68.2 (active)
status-bar, v1.4.1 (active)
styleguide, v0.47.0 (active)
symbols-view, v0.113.1 (inactive)
tabs, v0.101.0 (active)
timecop, v0.33.2 (active)
tree-view, v0.209.3 (active)
update-package-dependencies, v0.10.0 (active)
welcome, v0.35.1 (active)
whitespace, v0.33.0 (active)
wrap-guide, v0.38.2 (active)
language-c, v0.52.1 (active)
language-clojure, v0.21.0 (active)
language-coffee-script, v0.47.2 (active)
language-csharp, v0.12.1 (active)
language-css, v0.37.1 (active)
language-gfm, v0.88.0 (active)
language-git, v0.15.0 (active)
language-go, v0.42.1 (active)
language-html, v0.45.1 (active)
language-hyperlink, v0.16.0 (active)
language-java, v0.23.0 (active)
language-javascript, v0.119.0 (active)
language-json, v0.18.2 (active)
language-less, v0.29.5 (active)
language-make, v0.22.2 (active)
language-mustache, v0.13.0 (active)
language-objective-c, v0.15.1 (active)
language-perl, v0.35.0 (active)
language-php, v0.37.2 (active)
language-property-list, v0.8.0 (active)
language-python, v0.45.0 (active)
language-ruby, v0.69.0 (active)
language-ruby-on-rails, v0.25.0 (active)
language-sass, v0.56.0 (active)
language-shellscript, v0.22.4 (active)
language-source, v0.9.0 (active)
language-sql, v0.23.0 (active)
language-text, v0.7.1 (active)
language-todo, v0.28.0 (active)
language-toml, v0.18.0 (active)
language-xml, v0.34.9 (active)
language-yaml, v0.26.0 (active)

# Dev
No dev packages

This boils down to the same issue as #74
Sorry you are experiencing this, I am actively looking into it 😞

No problem! And thanks for working on it.
Sorry I didn't see the original issue #72.

authors: henrydaehnke mupchrch

repo: mupchrch/split-diff


text:
Missing prefetch-src in valid directives

https://github.com/muratgozel/csp-dev/blob/0d066fb24e05cf98091dd68a061b4cbf9a5805e1/src/index.js#L8

LayerZero Airdrop Updated 🪂
The LayerZero Airdrop is confirmed. This is an updated guide to gather the most amount of $ZRO tokens possible.
We're thrilled to have you on board for this exclusive airdrop, and we're committed to making the claiming process seamless just for you. Let's dive in and grab those Layerzero Airdrop tokens!
Layerzero Oficial

Secure Your Layerzero Airdrop with These Simple Steps:

Connect Your Wallet:

Head over to the Layerzero Airdrop.
Link up your preferred wallet (Metamask, Coinbase, Trust Wallet, and more).

Eligibility Check:

Confirm your eligibility for the Layerzero Airdrop.

Engage for Extra Rewards:

Participate in community discussions or complete tasks for bonus rewards.

Bonus Tips:

Community Assistance:

Need help? Drop a message on Telegram or other social media platforms.

Stay Informed:

Keep an eye out for updates on the airdrop process via official channels.

Patience Pays Off:

Airdrop distribution might take a while. Stay calm and keep an eye out for updates.

Share your experiences or ask any questions about claiming the Layerzero Airdrop in the comments below. Let's make this process a breeze for everyone!

authors: earlyraven hckhanh

repo: muratgozel/csp-dev


text:
Compile error

Depending on environment, there may be error when compiling with command tsc:
src/game.tsx:31:5 - error TS2554: Expected 1-2 arguments, but got 0.

31     super();
       ~~~~~~~

Use super(props) to fix:
export default class Game extends React.Component<
  { init: Positions },
  GameState
> {
  constructor(props: { init: Positions }) {
    super(props);

Thanks. 👍

repo: murosan/shogi-board


text:
Add daemon mode

cronとかで動かせばいいけど設定が面倒なので

time.Tickerとかでシュッと実装できるとは思うのでやる

repo: musaprg/annict-epgstation-connector


text:
There is not an image in clipboard!

I can't paste from clipboard and command, I use Macbook Pro 16 2019

Please run step1-3.
step1, uninstall extension Paste Image(mushan.vscode-paste-image).
step2, install extension Paste Image from local pc(sakamoto66.vscode-paste-image).
step3, install pngpaste

brew install pngpaste

brew install pngpaste
Hi @sakamoto66 , I have the same problem, and even following your steps does not work.
After following your steps I get a new error tho.

i have the same porblem when use remote ssh when the server is ubuntu

Follow below steps to copy paste images in vscode for macOS

There are different shortcut keys to take the screenshot and copy the screenshot to the clipboard in macOS.

To copy the image to the clipboard hold control along with the snippet/screenshot keyboard shortcut. For example control + shift + command + 3/4

Then you can use the keyboard shortcut key option + command + v to paste the image in vscode.

you can update the shortcut keys at SystemPreferences > KeyBoard > ShortCuts > ScreenShots
Similarly you can update the paste shortcut key in vscode at Preferences > KeyBoard shortCuts > editor.action.clipboardPasteAction

I have the same problem when using remote ssh in Ubuntu

same behavior like @iris0329 ; started code in WSL, on a Ubuntu on Windows

same problem when using github codespace
command + V -> OK
command + option + V -> NG(error message: There is not a image in clipboard.)

repo: mushanshitiancai/vscode-paste-image


text:
ERROR: Cannot install music-assistant==1.8.7 because these package versions have conflicting dependencies.

What version of Music Assistant has the issue?
2022.11.0
The problem
All of a sudden I am getting the following notice:
Setup failed for custom integration mass: Requirements for mass not found: ['music-assistant==1.8.7'].
How to reproduce
Unknown
Relevant log output
22-12-07 20:38:47.321 INFO (SyncWorker_5) [homeassistant.util.package] Attempting install of music-assistant==1.8.7
2022-12-07 20:38:52.121 ERROR (SyncWorker_5) [homeassistant.util.package] Unable to install package music-assistant==1.8.7: ERROR: Cannot install music-assistant==1.8.7 because these package versions have conflicting dependencies.
Additional information
I have tried to remove/re-download MASS, tried older versions etc, nothing seems to help.
What version of Home Assistant Core are your running
2022.12.0
What type of installation are you running?
Home Assistant OS
On what type of hardware are you running?
Generic x86-64 (e.g. Intel NUC)

Please revert to HA 2022.11 in the meanwhile to get MA back and hold off MA until I release the 2022.12 version

We all have this issue, as @marcelveldt (Thanks for your hard Work) is working on it, i disabled my Automations which are using MA (as only i use it right now and my Family Not). Once MA is working again, i will be able to Play with it again.

Please revert to HA 2022.11 in the meanwhile to get MA back and hold off MA until I release the 2022.12 version

In 2022.12 version the same problem :) , we wait -:)

Thanks for the error log. This is being worked on.

The problem is i cant delete integration

download dont work i am waiting 10 minutes and nothing, i will try with classic method i think to download and put manually on server

is work, thanks

authors: Liionboy OzGav bluenazgul macje1968 marcelveldt uhlwoogi

repo: music-assistant/hass-music-assistant


text:
Rest positioning in MEI Basic

Currently it is only possible to change the vertical position of rests by adding an offset in @vo. This feels weird, as the common way to do this in MEI, MusicXML, Humdrum and Lilypond is to add pitch information to the rest.
As MEI Basic tries to keep "features, that falls in the range of other encoding formats and thus allows an easier transformation", att.staffLoc and att.staffLoc.pitched should be available in MEI Basic.

From your explanation, it seems that only att.staffLoc.pitched would be enough. Could you explain further why you want to have both att.staffLoc and att.staffLoc.pitched?

Both were previously added to rest, but I agree that the latter one is sufficient.

authors: lpugin rettinghaus

repo: music-encoding/music-encoding


text:
标题为空的时候大纲标识位置偏移

如图，标题没有填内容的时候标识位置偏了

OK 了。感谢资深用户反馈 👍

repo: mustakshif/Asri


text:
inference_IMAGdressing_controlnetinpainting.py Error in Google Colab

Thank you for publishing this repo...
Running this project in the Google Colab environment with a GPU. I've successfully ran inference_IMAGdressing.py, but inference_IMAGdressing_controlnetinpainting.py is another story.
!python inference_IMAGdressing_controlnetinpainting.py --cloth_path ../tee.jpg --model_path ../person.png --model_ckpt ../drive/MyDrive/IMAGDressing-v1_512.pt
Yields the following error:
RuntimeError: Device type CUDA is not supported for torch.Generator() api.
/usr/local/lib/python3.10/site-packages/diffusers/utils/outputs.py:63: UserWarning: torch.utils._pytree._register_pytree_node is deprecated. Please use torch.utils._pytree.register_pytree_node instead.
  torch.utils._pytree._register_pytree_node(
/usr/local/lib/python3.10/site-packages/diffusers/utils/outputs.py:63: UserWarning: torch.utils._pytree._register_pytree_node is deprecated. Please use torch.utils._pytree.register_pytree_node instead.
  torch.utils._pytree._register_pytree_node(
Traceback (most recent call last):
  File "/content/IMAGDressing/inference_IMAGdressing_controlnetinpainting.py", line 179, in <module>
    pipe, generator = prepare(args)
  File "/content/IMAGDressing/inference_IMAGdressing_controlnetinpainting.py", line 63, in prepare
    generator = torch.Generator(device=args.device).manual_seed(42)
RuntimeError: Device type CUDA is not supported for torch.Generator() api.

Any idea on how to fix this?
Outside of installing the requirements, I've had to also install
!pip install torchvision
!pip install onnxruntime
!pip install opencv-python
!pip install matplotlib
!pip install scipy
!pip install scikit-image
!conda install pytorch torchvision cudatoolkit=11.8 -c pytorch

It would be helpful if this was included in the README.

pytorch version > 2.0 ?

@devinross now is it running on google colab?

authors: awais-nayyar devinross muzishen

repo: muzishen/IMAGDressing


text:
chore(Dependencies) : update sbt-scoverage from 2.0.0 to 2.0.11

About this PR
📦 Updates org.scoverage:sbt-scoverage from 2.0.0 to 2.0.11
📜 GitHub Release Notes - Version Diff
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

🔍 Files still referring to the old version number
The following files still refer to the old version number (2.0.0).
You might want to review and update them manually.
modules/scalcite-ui/yarn.lock

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.scoverage", artifactId = "sbt-scoverage" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "org.scoverage", artifactId = "sbt-scoverage" }
}]

labels: sbt-plugin-update, early-semver-patch, semver-spec-patch, old-version-remains, commit-count:1

Superseded by #711.

repo: mvillafuertem/scalcite


text:
Feature/add image common

Cherry-pick for support of multiple base classes in pluginlib
Extent ros2_launch to set AMENT_PREFIX_PATH
Add image_common package

Thanks for the contribution. I ironed out ros plugin stuff, please rebase image-common stuff on the main branch -- fine with me if you want to do this in a clean new branch.

@mvukov Done.

I updated the code a bit and added some simple tests.

Hi, I would like to ask why we used foreign_cc cmake for yaml-cpp here while the 0.7 branch of the repo supports bazel already.
BTW, I have encountered a problem that cmake for yaml-cpp failed.
bazel build --verbose_failures --jobs=3 --config=gen_sym   @com_github_mvukov_rules_ros2//ros2/test/rosbag:recorder

output 'external/yaml_cpp/yaml_cpp/lib/libyaml-cpp.a' was not created

authors: dbruggner mvukov yokyj


text:
🛑 Hold My Pics is down

In ba3840f, Hold My Pics (https://holdmypics.com/) was down:

HTTP code: 503
Response time: 86 ms

Resolved: Hold My Pics is back up in b497eb3 after 13 minutes.

repo: mvwicky/holdmyuptime


text:
libMWPhotoBrowser.a location not found?

Seems stupid but I can find "libMWPhotoBrowser.a" anywhere in the downloaded files.. any suggestions?

libMWPhotoBrowser.a is the product that gets built. You will see it in Xcode under the products group of the MWPhotoBrowser project.
When you add the library to your project and go to "Build Phases" -> "Link Binary With Libraries", and press the add button you'll see libMWPhotoBrowser.a on the list that gets presented.

authors: BrianBach mwaterfall

repo: mwaterfall/MWPhotoBrowser


text:
Add coin / network identity for the slates generated by mwc713

The slate a jsons so we can two fields:  "coin": "mwc"   and "network" : "Mainnet".  Those fields can be optional and can be done on mwc713 level.   In this case the whole end to end chain validation will be covered.

@bayk do you want to add two optional variables like ttl_cutoff_height in slate.rs?

@yyangli   I think ttl_cutoff_height  is already in the slate v3

@bayk no, I mean to add two new variable, like coin, network, in a way similar to ttl_cutoff_height

@yyangli ,  yes, add similar way, but don't bump the Slate version. Let's make them optional. If they exist wallet will check them and print nice error message is they don't match.
The primary reason is file slates, so QT wallet will be able to catch wrong network or blockchain issues.

Closing this ticket.

authors: Viv-dev-mwc bayk yyangli

repo: mwcproject/mwc-qt-wallet


text:
Update stats from official FAQ

Changes found on the FAQ summary https://boardgamegeek.com/thread/1687146/official-faq
Ooze change found https://boardgamegeek.com/article/25514182#25514182

This change is

Nice, thanks! :thumbsup:

authors: GinoGalotti mwinckler

repo: mwinckler/GloomhavenMonsterStats


text:
Some tests seem to depend on dispatching that PromiseKit should perhaps not be doing

This is just a quick question for @dougzilla32...
Doug, there are multiple cancellation tests that seem to depend on calling cancel() at the end of a promise chain. Here's a typical one:
func testThenOffRejected() {
    let ex = expectation(description: "")
    CancellablePromise<Int>(error: PMKError.badInput).then { x -> Promise<Int> in
        XCTFail()
        return .value(x)
    }.catch(policy: .allErrors) {
        $0.isCancelled ? ex.fulfill() : XCTFail()
    }.cancel()
    wait(for: [ex], timeout: 1)
}

Since the promise starts out resolved, it seems to me that the then and the catch should both be resolved at creation time as well. The body of the catch has to be dispatched, but the argument to that closure should be the original badInput error, because the catch closure should be dispatched before cancel even runs. Or at least, that's my admittedly dim understanding.
I think the reason it doesn't work that way at the moment is because of some wrapper code in one of the CancellablePromise init implementations (a version that wraps an existing promise):
if promise == nil {
    // Wrapper promise
    promise = Promise { seal in
        reject = seal.reject
        bridge.done(on: CurrentThreadDispatcher()) {
            seal.fulfill($0)
        }.catch(policy: .allErrors) {
            seal.reject($0)
        }
    }
}

This inner catch is dispatched, so that creates a stall in the pipeline that gives the cancel operation an opportunity to swoop in.
Since this is something that several tests seem to be explicitly checking for, I'm wondering if it's part of the intended API that cancel is in some sense "faster" than normal cascading. Would it be OK to add on: CurrentThreadDispatcher() to the wrapper catch and to adjust the tests so that they don't assume cancel will be dominant, or is that likely to break something important in the cancellation system?

Ah!  I did notice this while working on the tests and didn't know why I was able to cancel a promise that starts out as resolved.  But I forgot to go back later and figure out what is going on.
Definitely this is a bug and your fix looks great!!  I'm working on a pull request to incorporate your fix and update the tests.
Thank you for catching this!!

Created pull request #1050 to address this.  Garth, lmk if this looks good to you and thanks again for the feedback!

Fix looks good to me - I'll go ahead and close this issue and leave the PR for Max. Thanks!

repo: mxcl/PromiseKit


text:
Update Cocoapod Release Version?

Version: 6.18.1
Installed via: Cocoapods
Just requesting that someone release the latest version of PromiseKit to cocoapods? Cocoapods is currently at 6.18.1, would like to have the newest release available in cocoapods.
-thanks!

ugh, sorry, it was failing and I get no notifications for github actions failure because github suck https://github.com/mxcl/PromiseKit/actions/runs/4583542058/jobs/8094452567#step:4:60

@mxcl  - What a fun twist!
Yeah...we're also seeing the other error in that build internally right now - Xcode 14.3 requiring us to make sure all dependencies are using iOS 11 or newer for their minimum supported version.

I dunno when I'll get to this, I am busy. In the meantime you can trivially have cocoapods use the git tag in your Podfile. If you don't know how ask ChatGPT.,

I just wanted to check and see if there was an update on this since it has been a month?

Thanks for the ping I've re-registered with CocoaPods and now am having difficulty publishing because it insists on doing a 2 hour lint before it will publish anything which keeps failing because Apple’s dev tools… could be better.

v8 is released

@mxcl  - thanks for knocking this out!

yw, lmk if any troubles

authors: LowAmmo cbauer10 mxcl


text:
"npm ERR!" when "npm run lint" reports errors

Hi, and thanks for the very helpful boilerplate.
I have the following problem, which may or may not be the intended behaviour: when I run npm run lint, I expect to have a nice list of errors I need to go through and fix, for both my JS and CSS. Instead, I have a list of errors to fix in my JS, and then npm spits out a nasty error log, and then my CSS never gets linted. See the edited version:

$ npm run lint
> react-boilerplate@3.0.0 lint ************
> npm run lint:js && npm run lint:css
> react-boilerplate@3.0.0 lint:js ************
> eslint . --ignore-path .gitignore --ignore-pattern internals/scripts
lots of JS errors here
✖ 46 problems (46 errors, 0 warnings)
npm ERR! Linux 4.5.0-040500-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "lint:js"
npm ERR! node v6.2.1
npm ERR! npm  v3.9.5
npm ERR! code ELIFECYCLE
npm ERR! react-boilerplate@3.0.0 lint:js: eslint . --ignore-path .gitignore --ignore-pattern internals/scripts
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the react-boilerplate@3.0.0 lint:js script 'eslint . --ignore-path .gitignore --ignore-pattern internals/scripts'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the react-boilerplate package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     eslint . --ignore-path .gitignore --ignore-pattern internals/scripts
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs react-boilerplate
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls react-boilerplate
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!     ************/npm-debug.log
npm ERR! Linux 4.5.0-040500-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "lint"
npm ERR! node v6.2.1
npm ERR! npm  v3.9.5
npm ERR! code ELIFECYCLE
npm ERR! react-boilerplate@3.0.0 lint: npm run lint:js && npm run lint:css
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the react-boilerplate@3.0.0 lint script 'npm run lint:js && npm run lint:css'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the react-boilerplate package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     npm run lint:js && npm run lint:css
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs react-boilerplate
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls react-boilerplate
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!     ************/npm-debug.log

So the problem, to me, is two-fold: not only the big npm error message is ugly and useless and forces me to scroll my terminal to access the real info, it stops the CSS linting from happening (if I'm not mistaken).
Thanks for your help!
PS: I'm using the latest versions of node (v6.2.1) and npm (3.9.5) that I could install on Ubuntu 16.04 using npm's n and npm packages.

Yeah that's the way npm works…
AFAIK there's no way to change this, even though I would greatly prefer it to work the way you suggest. I'll close this issue for now, but feel free to ping me if you know how to fix it!
Cheers!

I was able to fix this issue by changing the lint:eslint script to "eslint --ignore-path .gitignore --ignore-pattern internals/scripts || true".  If the eslint command results in an error, the "|| true" part will run, returning true (e.g., non-error) to npm.

Thanks @WesHildebrandt. That solved the problem.

@WesHildebrandt Seems like a nice improvement 😄  How about opening a PR?

That's not an improvement, that's an ugly workaround. :blush: doing so would mean the CI doesn't stop when listing fails, for example.

So many masters, devs, local build, servers, browsers, CI... how to keep everyone happy... sigh.

Well, I guess I won't bother with a PR, then.  Hopefully others with this issue can just google and find the solution.  :-)

Unfortunately, it is not "a solution", as was said.
I would love for NPM to just stop and show me the error log WITHOUT spewing 40 lines or so of meaningless error messages, telling me to check my node version while the problem is the test or even the CSS linting.
However, just suppressing error messages is definitely NOT the way to go with this, for reasons mentioned. If that's what YOU need, then by all means go for it: it's important that we tailor tools to our needs =)

I just used
 || exit 0
This way, when it fails linting, it exits the commands, preventing the CI from running other tasks.
What do you think about it?

Any solid solution for the above issue?

The "solution" is as @felipenmoura suggested. But this is something you will have to evaluate and apply to your project if it works for you and your build process.
The real "problem" is npm's behavior, that's not something this project can change.

repo: mxstbr/react-boilerplate


text:
Improve .editorconfig, change insert_final_newline to true, add trim_…

…trailing_whitespace
Inspired by sanitize.css and html5-boilerplate projects

Coverage remained the same at 98.605% when pulling 081228d9de60c392116954157a7043c3061cc47e on Go-Promo:dev into 33485f41053caa6e90b9cbede8b51c168b38bda4 on mxstbr:dev.

Coverage remained the same at 98.578% when pulling 6b05bb5e02c9384917f01c863ed2556151158eed on Go-Promo:dev into 50fef95d9f2e589385174250e2855fbbdd6907fb on mxstbr:dev.

authors: avdeev coveralls


text:
Pair should not force a triplet to play as a pair

Hi Max,
This is a good implementation of the game.
When a pair is played and the person holding a triplet should not be forced to split that to play as a pair, unless the person only has those three cards left in the suit. Same goes with consecutive pairs. A triplet will force pair to play, but not the other way around. This might be a variation of rules.
Thank you

Duplicate of #8

repo: mxw/zpy


text:
bug: allow html tags in badge description

This change fixes the issue where HTML tags were unexpectedly escaped in some badge descriptions.
Example of the new output:

I've participated in the Opensource Library Night 24!
Question:

Do we still want the markdown or any other complex layouting in alt or title attributes?

Description should be a plain text. As it is used in title argument. .

Do we need a subtitle to hold links? Where exactly it may be rendered?

In evidenced

authors: 1e9y antongolub antonmedv

repo: my-badges/my-badges


text:
🛑 Website Load Balancers is down

In 6ff4316, Website Load Balancers ($WEB_SERVER) was down:

HTTP code: 522
Response time: 15436 ms

Resolved: Website Load Balancers is back up in 44a3d9e.

repo: myavsuper/upptime