Skip to content

Commit

Permalink
Update model.py
Browse files Browse the repository at this point in the history
  • Loading branch information
viveksilimkhan1 authored Oct 24, 2023
1 parent 8363b22 commit 63c7183
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions spacy_llm/models/bedrock/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
import json
import warnings
from enum import Enum
import requests
from requests import HTTPError
from typing import Any, Dict, Iterable, Optional, Type, List, Sized, Tuple

from confection import SimpleFrozenDict
Expand Down Expand Up @@ -81,7 +79,7 @@ def __call__(self, prompts: Iterable[str]) -> Iterable[str]:
prompts = list(prompts)
api_config = Config(retries = dict(max_attempts = self._max_retries))

def _request(json_data: Dict[str, Any]) -> str:
def _request(json_data: str) -> str:
session = self.get_session()
print("Session:", session)
bedrock = session.client(service_name="bedrock-runtime", config=api_config)
Expand Down

0 comments on commit 63c7183

Please sign in to comment.