Skip to content

armgit / dspy

Public Imported from GitHub
0

DSPy: The framework for programming—not prompting—language models

Python

Fix the following error likely introduced from https://github.com/stanfordnlp/dspy/pull/330

Insop Song0468619663f4
diff --git a/dsp/modules/aws_lm.py b/dsp/modules/aws_lm.py
index e378ca8a4..40a125d83 100644
--- a/dsp/modules/aws_lm.py
+++ b/dsp/modules/aws_lm.py
@@ -2,6 +2,8 @@
A generalized AWS LLM.
"""
+from __future__ import annotations
+
from abc import abstractmethod
import logging
from typing import Any, Literal
diff --git a/dsp/modules/bedrock.py b/dsp/modules/bedrock.py
index f3b88c09e..8e737c16e 100644
--- a/dsp/modules/bedrock.py
+++ b/dsp/modules/bedrock.py
@@ -1,3 +1,5 @@
+from __future__ import annotations
+
from typing import Any
import json
from dsp.modules.aws_lm import AWSLM