Skip to content

Commit 24955a2

Browse files
Fix release drafter to work against the main branch (#102)
- release drafter - release drafter against main --------- Co-authored-by: Tyler Hutcherson <tyler.hutcherson@redis.com>
1 parent ef0f538 commit 24955a2

File tree

3 files changed

+17
-9
lines changed

3 files changed

+17
-9
lines changed

.github/workflows/release-drafter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
# branches to consider in the event; optional, defaults to all
66
branches:
7-
- master
7+
- main
88

99
permissions: {}
1010
jobs:

redisvl/vectorize/text/cohere.py

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,10 @@ def __init__(
6565
try:
6666
import cohere
6767
except ImportError:
68-
raise ImportError("Cohere vectorizer requires the cohere library. \
69-
Please install with `pip install cohere`")
68+
raise ImportError(
69+
"Cohere vectorizer requires the cohere library. \
70+
Please install with `pip install cohere`"
71+
)
7072

7173
# Fetch the API key from api_config or environment variable
7274
api_key = (
@@ -142,8 +144,10 @@ def embed(
142144
if not isinstance(text, str):
143145
raise TypeError("Must pass in a str value to embed.")
144146
if not isinstance(input_type, str):
145-
raise TypeError("Must pass in a str value for cohere embedding input_type. \
146-
See https://docs.cohere.com/reference/embed.")
147+
raise TypeError(
148+
"Must pass in a str value for cohere embedding input_type. \
149+
See https://docs.cohere.com/reference/embed."
150+
)
147151
if preprocess:
148152
text = preprocess(text)
149153
embedding = self._model_client.embed(
@@ -208,8 +212,10 @@ def embed_many(
208212
if len(texts) > 0 and not isinstance(texts[0], str):
209213
raise TypeError("Must pass in a list of str values to embed.")
210214
if not isinstance(input_type, str):
211-
raise TypeError("Must pass in a str value for cohere embedding input_type.\
212-
See https://docs.cohere.com/reference/embed.")
215+
raise TypeError(
216+
"Must pass in a str value for cohere embedding input_type.\
217+
See https://docs.cohere.com/reference/embed."
218+
)
213219

214220
embeddings: List = []
215221
for batch in self.batchify(texts, batch_size, preprocess):

redisvl/vectorize/text/openai.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,10 @@ def __init__(
6262
try:
6363
import openai
6464
except ImportError:
65-
raise ImportError("OpenAI vectorizer requires the openai library. \
66-
Please install with `pip install openai`")
65+
raise ImportError(
66+
"OpenAI vectorizer requires the openai library. \
67+
Please install with `pip install openai`"
68+
)
6769

6870
# Fetch the API key from api_config or environment variable
6971
api_key = (

0 commit comments

Comments
 (0)