Spaces:
Running
Running
zach
commited on
Commit
·
6130461
1
Parent(s):
df27812
Finalize pre-commit configuration
Browse files
.pre-commit-config.yaml
CHANGED
@@ -3,7 +3,5 @@ repos:
|
|
3 |
rev: 25.1.0
|
4 |
hooks:
|
5 |
- id: black
|
6 |
-
args: ["--line-length=88", "--fast", "--quiet"
|
7 |
types: [python]
|
8 |
-
pass_filenames: false
|
9 |
-
stages: [pre-commit]
|
|
|
3 |
rev: 25.1.0
|
4 |
hooks:
|
5 |
- id: black
|
6 |
+
args: ["--line-length=88", "--fast", "--quiet"]
|
7 |
types: [python]
|
|
|
|
src/integrations/anthropic_api.py
CHANGED
@@ -150,7 +150,7 @@ def generate_text_with_claude(prompt: str) -> str:
|
|
150 |
return str(blocks or "No content generated.")
|
151 |
|
152 |
except Exception as e:
|
153 |
-
logger.exception(f"Error generating text with Anthropic: {e}")
|
154 |
raise AnthropicError(
|
155 |
message=(
|
156 |
f"Error generating text with Anthropic: {e}. "
|
|
|
150 |
return str(blocks or "No content generated.")
|
151 |
|
152 |
except Exception as e:
|
153 |
+
logger.exception(f"Error generating text with the Anthropic API: {e}")
|
154 |
raise AnthropicError(
|
155 |
message=(
|
156 |
f"Error generating text with Anthropic: {e}. "
|