Skip to content

Fix #77: Remove orphan LLMResponse construction in anthropic generate()#166

Open
fazalpsinfo-cmyk wants to merge 1 commit into
OpenAgentHQ:mainfrom
fazalpsinfo-cmyk:fix-77-orphan-llmresponse
Open

Fix #77: Remove orphan LLMResponse construction in anthropic generate()#166
fazalpsinfo-cmyk wants to merge 1 commit into
OpenAgentHQ:mainfrom
fazalpsinfo-cmyk:fix-77-orphan-llmresponse

Conversation

@fazalpsinfo-cmyk

Copy link
Copy Markdown

Fixes #77

Summary

Removes the orphan LLMResponse(...) construction in the Anthropic.generate() method that was created but never assigned or returned. The method returns a plain str, making this object construction dead code on every LLM call.

Changes

  • Removed the orphan LLMResponse(...) constructor call (lines 204-211)
  • Cleaned up the unused LLMResponse import

Impact

  • Eliminates wasteful object construction on every Anthropic LLM generation call
  • Removes dead code that could mislead future maintainers

https://buymeacoffee.com/muhamedfazalps

…ic generate()

The LLMResponse object was constructed but never assigned or returned.
The generate() method returns a plain str, making this dead code.
Also cleans up the unused LLMResponse import.
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.

providers(anthropic): orphan LLMResponse constructed but never used in generate()

1 participant