diff --git a/config.json b/config.json index 93fc6ce..ec4fd24 100644 --- a/config.json +++ b/config.json @@ -1,4 +1,5 @@ { "model": "openrouter/openai/gpt-4o", - "max_tokens": 1024 + "max_tokens": 1024, + "cache": false } \ No newline at end of file diff --git a/modules.py b/modules.py index a9378ef..331d7c3 100644 --- a/modules.py +++ b/modules.py @@ -27,6 +27,7 @@ class CypherFromQuestion(dspy.Signature): class GenerateCypherConfig(PrecompiledConfig): model: str = "openrouter/openai/gpt-4o" # OPENROUTER ONLY max_tokens: int = 1024 + cache: bool = False class GenerateCypher(PrecompiledProgram): @@ -38,6 +39,7 @@ class GenerateCypher(PrecompiledProgram): model=config.model, max_tokens=config.max_tokens, api_base="https://openrouter.ai/api/v1", + cache=config.cache, ) self.generate_cypher = dspy.ChainOfThought(CypherFromQuestion) self.generate_cypher.set_lm(self.lm) @@ -69,6 +71,6 @@ if __name__ == "__main__": generate_cypher.push_to_hub( "farouk1/text-to-cypher", with_code=True, - tag="v1.0.0", - commit_message="Update README.md", + tag="v1.0.1", + commit_message="Don't cache results", ) diff --git a/program.json b/program.json index 91e138d..3c0db41 100644 --- a/program.json +++ b/program.json @@ -27,7 +27,7 @@ "lm": { "model": "openrouter/openai/gpt-4o", "model_type": "chat", - "cache": true, + "cache": false, "num_retries": 3, "finetuning_model": null, "launch_kwargs": {},