Skip to content

Commit f5db6ca

Browse files
committed
style
1 parent 9ea9165 commit f5db6ca

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

parea/cookbook/tracing_with_images_anthropic.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,17 @@ def image_maker(query: str) -> str:
2828
return image_url
2929

3030

31-
import requests
32-
import base64
3331
from typing import Optional
3432

33+
import base64
34+
35+
import requests
36+
37+
3538
@trace
3639
def ask_vision(image_url: str) -> Optional[str]:
3740
image_data = requests.get(image_url).content
38-
base64_image = base64.b64encode(image_data).decode('utf-8')
41+
base64_image = base64.b64encode(image_data).decode("utf-8")
3942

4043
response = a_client.messages.create(
4144
model="claude-3-haiku-20240307",

0 commit comments

Comments
 (0)