An LLM-powered knowledge curation system that researches a topic and generates a full-length report with citations.
Python agentic-ragdeep-researchemnlp2024knowledge-curationlarge-language-modelsnaaclnlpreport-generationretrieval-augmented-generation
Fix AzureOpenAIModel.
shaoyijia97ca8501f36c
diff --git a/knowledge_storm/lm.py b/knowledge_storm/lm.pyindex 886137f..5da0ebf 100644--- a/knowledge_storm/lm.py+++ b/knowledge_storm/lm.py@@ -109,8 +109,8 @@ class AzureOpenAIModel(dspy.AzureOpenAI):"""A wrapper class for dspy.AzureOpenAI."""def __init__(self,- api_base: str,- api_version: str,+ api_base: Optional[str] = None,+ api_version: Optional[str] = None,model: str = "gpt-3.5-turbo-instruct",api_key: Optional[str] = None,model_type: Literal["chat", "text"] = "chat",@@ -143,8 +143,6 @@ class AzureOpenAIModel(dspy.AzureOpenAI):return usage--class ClaudeModel(dspy.dsp.modules.lm.LM):"""Copied from dspy/dsp/modules/anthropic.py with the addition of tracking token usage."""