Skip to content

Commit e37d162

Browse files
removed the OpenAI SDK dependency
1 parent e583bf0 commit e37d162

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

minds/utils.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,6 @@
22
import minds.exceptions as exc
33
from urllib.parse import urlparse, urlunparse
44

5-
def get_openai_base_url(base_url: str) -> str:
6-
parsed = urlparse(base_url)
7-
8-
netloc = parsed.netloc
9-
if netloc == 'mdb.ai':
10-
llm_host = 'llm.mdb.ai'
11-
else:
12-
llm_host = 'ai.' + netloc
13-
14-
parsed = parsed._replace(path='', netloc=llm_host)
15-
16-
return urlunparse(parsed)
17-
185

196
def validate_mind_name(mind_name):
207
"""

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
pydantic>=2.10
22
requests
3-
openai >= 1.75.0
43

0 commit comments

Comments
 (0)