Skip to content

fix TypeInitializationException#1

Merged
pfriesch merged 1 commit intocuriosity-ai:masterfrom
pfriesch:patch-1
Sep 15, 2025
Merged

fix TypeInitializationException#1
pfriesch merged 1 commit intocuriosity-ai:masterfrom
pfriesch:patch-1

Conversation

@pfriesch
Copy link
Copy Markdown
Member

System.TypeInitializationException: The type initializer for 'LlmTornado.Chat.Models.ChatModelAnthropicClaude3' threw an exception.
---> System.TypeInitializationException: The type initializer for 'LlmTornado.Chat.Models.ChatModel' threw an exception.
---> System.TypeInitializationException: The type initializer for 'LlmTornado.Chat.Models.ChatModelAnthropic' threw an exception.
---> System.ArgumentNullException: Value cannot be null. (Parameter 'collection')
at System.Collections.Generic.List1.AddRange(IEnumerable1 collection)
at LlmTornado.Chat.Models.ChatModelAnthropic..cctor()
--- End of inner exception stack trace ---
at LlmTornado.Chat.Models.ChatModelAnthropic..ctor()
at LlmTornado.Chat.Models.ChatModel..cctor()
--- End of inner exception stack trace ---
at LlmTornado.Chat.Models.ChatModel..ctor(String name, LLmProviders provider, Int32 contextTokens)
at LlmTornado.Chat.Models.ChatModelAnthropicClaude3..cctor()
--- End of inner exception stack trace ---

System.TypeInitializationException: The type initializer for 'LlmTornado.Chat.Models.ChatModelAnthropicClaude3' threw an exception.
 ---> System.TypeInitializationException: The type initializer for 'LlmTornado.Chat.Models.ChatModel' threw an exception.
 ---> System.TypeInitializationException: The type initializer for 'LlmTornado.Chat.Models.ChatModelAnthropic' threw an exception.
 ---> System.ArgumentNullException: Value cannot be null. (Parameter 'collection')
   at System.Collections.Generic.List`1.AddRange(IEnumerable`1 collection)
   at LlmTornado.Chat.Models.ChatModelAnthropic..cctor()
   --- End of inner exception stack trace ---
   at LlmTornado.Chat.Models.ChatModelAnthropic..ctor()
   at LlmTornado.Chat.Models.ChatModel..cctor()
   --- End of inner exception stack trace ---
   at LlmTornado.Chat.Models.ChatModel..ctor(String name, LLmProviders provider, Int32 contextTokens)
   at LlmTornado.Chat.Models.ChatModelAnthropicClaude3..cctor()
   --- End of inner exception stack trace ---
@pfriesch pfriesch merged commit 5d11359 into curiosity-ai:master Sep 15, 2025
3 checks passed
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

Successfully merging this pull request may close these issues.

1 participant