mirror of
https://github.com/aljazceru/dev-gpt.git
synced 2026-01-05 06:44:21 +01:00
🧪 test: level 2
This commit is contained in:
@@ -232,7 +232,7 @@ metas:
|
||||
lines = [line for line in lines if not any([pkg in line for pkg in ['jina', 'docarray', 'openai', 'pytest', 'gpt_3_5_turbo_api']])]
|
||||
content_modified = f'''jina==3.15.1.dev14
|
||||
docarray==0.21.0
|
||||
openai>=0.26.0
|
||||
openai==0.26.0
|
||||
pytest
|
||||
{os.linesep.join(lines)}'''
|
||||
return {REQUIREMENTS_FILE_NAME: content_modified}
|
||||
@@ -537,6 +537,9 @@ Test scenario:
|
||||
|
||||
@staticmethod
|
||||
def replace_with_gpt_3_5_turbo_if_possible(pkg):
|
||||
if pkg in ['nltk', 'textblob', 'spacy', 'transformers', 'textstat', 'gensim']:
|
||||
if pkg in ['allennlp', 'bertopic', 'fasttext', 'flair', 'gensim', 'nltk',
|
||||
'pattern', 'polyglot', 'pytorch-transformers', 'rasa', 'sentence-transformers',
|
||||
'spacy', 'stanza', 'textblob', 'textstat', 'transformers']:
|
||||
|
||||
return 'gpt_3_5_turbo_api'
|
||||
return pkg
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
FROM jinaai/jina:3.14.1-py39-standard
|
||||
# update pip
|
||||
RUN pip install --upgrade pip
|
||||
|
||||
RUN apt-get update && apt-get install --no-install-recommends -y {{apt_get_packages}} && apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
|
||||
Reference in New Issue
Block a user