Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update main and add chat api #9

Closed
wants to merge 1,297 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1297 commits
Select commit Hold shift + click to select a range
67917dc
[fix] remove calculate tokens for some depricated endpoints
DninoAdnane Jul 12, 2024
7e4901c
Put 'form_recognizer' back into the microsoft settings template
juandavidcruzgomez Jul 12, 2024
90cc561
[fix] ValidationError ResumePersonalInfo affinda
KyrianC Jul 12, 2024
5d618c5
change amazon confidence scale
RedhaWassim Jul 12, 2024
1e6c0c9
generate new amazon output
RedhaWassim Jul 12, 2024
8b78cfe
add confidence value to microsoft ocr table
RedhaWassim Jul 12, 2024
63761d5
Merge branch 'master' into SD2-78-ocr-table-microsoft-add-confidence-…
RedhaWassim Jul 12, 2024
1b13f10
Merge pull request #225 from edenai/SD2-139-affinda-resume-parser-val…
KyrianC Jul 12, 2024
50e5e7b
[Fix] openai pricing for assistant
Daggx Jul 15, 2024
21821bf
Merge pull request #218 from AlexBarzoiu/add-financial-parser-extracta
juandavidcruzgomez Jul 15, 2024
ff52994
Merge pull request #223 from edenai/SD2-26-update-azure-ocr
juandavidcruzgomez Jul 15, 2024
4ec2eae
[doc] update available features & providers
juandavidcruzgomez Jul 15, 2024
9e1f742
Merge pull request #217 from edenai/openai-assisstant-invoice
SamyMe Jul 15, 2024
dfa1be8
[doc] update available features & providers
SamyMe Jul 15, 2024
084700f
[fix] ValidationError when key is None
KyrianC Jul 15, 2024
0e44d8f
format
KyrianC Jul 15, 2024
103b834
Merge pull request #224 from edenai/SD2-141-google-calculate-token-us…
Daggx Jul 15, 2024
ccdf938
[fix] ValueError when user input wrong params
KyrianC Jul 15, 2024
b4b7da9
Merge pull request #220 from edenai/SD2-136-klippa-indentity-parser
KyrianC Jul 15, 2024
2c820c2
Merge pull request #227 from edenai/SD2-134-base-64-ocr-data-extraction
KyrianC Jul 15, 2024
6b35f6e
[fix] fixing new openai sdk problems
SamyMe Jul 15, 2024
04bfb34
[fix] simplifying explicit contente image dataclass
SamyMe Jul 15, 2024
e5d46b6
Merge pull request #229 from edenai/openai-assisstant-invoice
SamyMe Jul 15, 2024
4d309fc
Merge pull request #226 from edenai/SD2-78-ocr-table-microsoft-add-co…
juandavidcruzgomez Jul 16, 2024
20c869d
[Fix] accepted input files for openai
Daggx Jul 16, 2024
81972d0
modify elevenlabs model from v1 to v2
RedhaWassim Jul 16, 2024
dfff69c
Merge branch 'master' into SD2-114-update-elevenlabs-language
RedhaWassim Jul 16, 2024
53585aa
[fix] openai streaming
SamyMe Jul 16, 2024
0aacbaa
Merge pull request #231 from edenai/openai-assisstant-invoice
SamyMe Jul 16, 2024
cdc2f84
[Fix] to_dict for chunking
Daggx Jul 16, 2024
4195807
Merge pull request #232 from edenai/hotfix/openai-stream
SamyMe Jul 16, 2024
7c70b79
fix microsoft parsing
RedhaWassim Jul 19, 2024
79037a6
Merge pull request #233 from edenai/microsoft-invoice-fix
juandavidcruzgomez Jul 19, 2024
d3bdada
[fix] openai financial and resume parsing fix
SamyMe Jul 23, 2024
5e78058
Remove the condition for checking !(url== and file==) for resume parser
juandavidcruzgomez Jul 24, 2024
0f92583
Remove the condition for checking !(url== and file==) for job descrip…
juandavidcruzgomez Jul 24, 2024
f99411c
fix cohere custom ner output parsing
RedhaWassim Jul 24, 2024
b8bc1f9
Merge branch 'master' into fix-cohere-custom-ner
RedhaWassim Jul 24, 2024
9183c8c
Merge pull request #228 from edenai/SD2-171-validation-error-with-pro…
KyrianC Jul 25, 2024
7ae07c4
custom ner new output json
RedhaWassim Jul 25, 2024
afc9f5a
Merge branch 'master' into fix-cohere-custom-ner
RedhaWassim Jul 25, 2024
eff5304
Merge pull request #235 from edenai/fix-cohere-custom-ner
DninoAdnane Jul 25, 2024
1075d2c
[Feat] Llama new models
Daggx Jul 25, 2024
303818f
[Fix] meta chat output
Daggx Jul 25, 2024
be3027b
[feat] adding response_format to multimodal chat
SamyMe Jul 26, 2024
9cc1141
Merge pull request #236 from edenai/SD2-247-switch-region-for-aws-bed…
juandavidcruzgomez Jul 26, 2024
9ac61de
Merge pull request #237 from edenai/multimodal_output_format
juandavidcruzgomez Jul 29, 2024
1c4d4a9
add video shot detection feature
RedhaWassim Jul 29, 2024
bfbb417
Merge branch 'master' into SD2-256-add-google-video-shot-detection-fe…
RedhaWassim Jul 29, 2024
0e5efc2
format
RedhaWassim Jul 29, 2024
a2c2fbb
retrigger checks
RedhaWassim Jul 29, 2024
465966c
Update how the pip install handles the constraints
juandavidcruzgomez Jul 29, 2024
471c9ba
Merge pull request #239 from edenai/fix/setuptools
juandavidcruzgomez Jul 29, 2024
f3dd323
add video shot detection feature
RedhaWassim Jul 29, 2024
9c0b4f8
format
RedhaWassim Jul 29, 2024
d37a794
retrigger checks
RedhaWassim Jul 29, 2024
422195e
Merge branch 'SD2-256-add-google-video-shot-detection-feature-new-fea…
juandavidcruzgomez Jul 29, 2024
945c2bd
update google info.json
RedhaWassim Jul 30, 2024
4ee123a
Merge pull request #238 from edenai/SD2-256-add-google-video-shot-det…
juandavidcruzgomez Jul 30, 2024
397824d
[doc] update available features & providers
juandavidcruzgomez Jul 30, 2024
75f56f4
[fix] microsoft financial parser ValidationError previous_unpaid_balance
DninoAdnane Jul 31, 2024
4292b5c
[fix] sapling ai_score None
DninoAdnane Jul 31, 2024
918ef6d
move file analysis for testing into the argument functions
appelstroop Aug 5, 2024
fdc55f3
Merge pull request #242 from edenai/move-file-analysis-into-functions
appelstroop Aug 5, 2024
3ee4bcd
[fix] winstonai ai_detection internatl server error
DninoAdnane Aug 5, 2024
3e44d63
[fix] eagldoc typeError
DninoAdnane Aug 5, 2024
5c6d9e9
[fix] catch google image QA error
DninoAdnane Aug 5, 2024
0bb5665
Merge pull request #234 from edenai/SD2-239-senseloaf-in-edenai-apis-…
DninoAdnane Aug 5, 2024
0a00b11
Merge pull request #241 from edenai/SD2-299-sapling-ai-detection-vali…
DninoAdnane Aug 5, 2024
58b43c6
Merge pull request #240 from edenai/SD2-298-https-edenai-py-sentry-io…
DninoAdnane Aug 5, 2024
593f418
Merge pull request #243 from edenai/SD2-207-json-decode-error-api-4-a…
DninoAdnane Aug 5, 2024
87d6ce6
Merge pull request #244 from edenai/SD2-206-type-error-originality-ai…
DninoAdnane Aug 5, 2024
132470f
Merge pull request #245 from edenai/SD2-187-key-error-content-google-…
DninoAdnane Aug 5, 2024
3683b7e
[Fix] remove deprecated models of google
Daggx Aug 12, 2024
59f7eb5
Merge pull request #246 from edenai/SD2-316-update-google-gemini-mode…
juandavidcruzgomez Aug 12, 2024
5629771
[fix] elevenlabs output format
DninoAdnane Aug 13, 2024
90c7e13
include new models from db for replicate
Daggx Aug 13, 2024
460dd82
remove duplicates
RedhaWassim Aug 13, 2024
9a4dac7
[fix] add documents supported for openai
DninoAdnane Aug 13, 2024
434cddd
Merge pull request #248 from edenai/SD2-320-change-replicate-models
juandavidcruzgomez Aug 13, 2024
a062f7f
Merge pull request #249 from edenai/SD2-360-financial-parser-not-upda…
juandavidcruzgomez Aug 13, 2024
3c45e4b
Merge pull request #230 from edenai/SD2-114-update-elevenlabs-language
Daggx Aug 14, 2024
26068ce
Merge branch 'master' into SD2-336-text-to-speech-mp-3-output-selecte…
DninoAdnane Aug 14, 2024
ef1dc47
Merge pull request #247 from edenai/SD2-336-text-to-speech-mp-3-outpu…
DninoAdnane Aug 14, 2024
a7be42b
gemini system instruction
Daggx Aug 14, 2024
756ac51
change role for system instruction
Daggx Aug 14, 2024
f3c75a2
Merge pull request #250 from edenai/SD2-111-gemini-add-fix-chatbot-gl…
juandavidcruzgomez Aug 16, 2024
112dd56
[fix] convert score from string to int
KyrianC Aug 19, 2024
7fc87f2
[fix] handle NoneType when extracting data
KyrianC Aug 19, 2024
a9a2ec1
Merge pull request #251 from edenai/SD2-168-type-error-originality-ai…
juandavidcruzgomez Aug 19, 2024
679d1a2
Merge pull request #252 from edenai/SD2-149-affinda-attribute-error
juandavidcruzgomez Aug 19, 2024
b2ce70d
moderate input openai image generation
Daggx Aug 20, 2024
b4e3fa9
Merge pull request #253 from edenai/SD2-389-moderation-on-open-ai-api
juandavidcruzgomez Aug 20, 2024
cca7104
[fix] google text_generation KeyError on content
DninoAdnane Aug 22, 2024
739dd7d
Merge pull request #254 from edenai/SD2-408-key-error-content-google-…
juandavidcruzgomez Aug 22, 2024
0482f5d
[fix] meta TypeError text chat
DninoAdnane Aug 22, 2024
95effdb
Merge pull request #255 from edenai/SD2-409-type-error-meta-text-chat
appelstroop Aug 23, 2024
5332205
[fix] moderate openai
Daggx Aug 23, 2024
f9bcf81
[fix] asyncio.run
Daggx Aug 23, 2024
5638c59
Merge pull request #257 from edenai/fix/async-moderate-openai
appelstroop Aug 23, 2024
adf6cff
threadsafe async
appelstroop Aug 24, 2024
9407f58
Now with async_to_sync
appelstroop Aug 24, 2024
916169e
[fix] KeyError google _handle_non_streaming_responses
DninoAdnane Aug 26, 2024
c43e20a
try with aiohttp
appelstroop Aug 26, 2024
b0f5580
add new voices to elevenlabs
RedhaWassim Aug 26, 2024
063f6d9
[fix] ResumeParserDataclass address can be null
DninoAdnane Aug 26, 2024
0c11454
Merge pull request #259 from edenai/elevenlabs-voice-ids
RedhaWassim Aug 26, 2024
8c846fb
[fix] allow all tests locally
DninoAdnane Aug 26, 2024
3508402
change function name
appelstroop Aug 26, 2024
3643f64
Merge pull request #262 from edenai/fix/threadsafe-async
appelstroop Aug 26, 2024
1025a89
Merge pull request #258 from edenai/SD2-436-key-error-content-google-…
appelstroop Aug 26, 2024
db96d53
Merge pull request #260 from edenai/SD2-434-validation-error-openai-o…
appelstroop Aug 26, 2024
5f63d38
Merge pull request #261 from edenai/fix/providers-package-tests-run-l…
appelstroop Aug 26, 2024
56da1ae
add new voice to eleven labs
RedhaWassim Aug 29, 2024
d54cb70
Merge branch 'master' into elevenlabs-voice-ids
RedhaWassim Aug 29, 2024
19277a1
Merge pull request #264 from edenai/elevenlabs-voice-ids
RedhaWassim Aug 29, 2024
4aefd1c
handle rate limit for openai moderation
Daggx Sep 3, 2024
703a34d
Merge pull request #265 from edenai/SD2-495-handle-openai-moderation-…
appelstroop Sep 3, 2024
3aa9047
moderate only sexual content for openai
Daggx Sep 13, 2024
783ab32
change msg provider exception
Daggx Sep 13, 2024
7faf327
Merge pull request #267 from edenai/SD2-524-open-ai-moderate-only-sex…
juandavidcruzgomez Sep 13, 2024
d468ba6
replace max_tokens param for openai
Daggx Sep 18, 2024
95d1191
Merge pull request #268 from edenai/SD2-544-make-new-open-ai-models-work
juandavidcruzgomez Sep 18, 2024
8804cae
Close all open files
appelstroop Sep 19, 2024
782e904
Google video question answer
Daggx Sep 20, 2024
87364ed
Fix base64 api code
appelstroop Sep 20, 2024
eda41f9
[Fix] video request google gemini
Daggx Sep 20, 2024
52ac4e5
change question input to text
Daggx Sep 20, 2024
4e669d7
google output video question answer
Daggx Sep 23, 2024
c30bc91
Merge pull request #269 from edenai/SD2-555-video-qa-feature-with-goo…
juandavidcruzgomez Sep 23, 2024
630b421
[fix] remove import time
Daggx Sep 24, 2024
affe227
[fix] import sleep
Daggx Sep 24, 2024
a1d24d5
Update jsonschema
juandavidcruzgomez Sep 26, 2024
7df2b66
Merge branch 'master' into jsonschema
juandavidcruzgomez Sep 26, 2024
288dc6f
Add Feature : Deepfake
AlexandrePrivat Sep 26, 2024
4f2a8b1
Merge pull request #270 from edenai/jsonschema
appelstroop Sep 26, 2024
f2e6b3a
update boto3
juandavidcruzgomez Sep 27, 2024
bbe28a7
Merge branch 'master' into updateboto3
juandavidcruzgomez Sep 27, 2024
2eafcc9
Merge pull request #271 from edenai/updateboto3
juandavidcruzgomez Sep 28, 2024
e0fbd18
in progress video q&a async
Daggx Oct 11, 2024
67616d0
delete file in video q&a
Daggx Oct 11, 2024
ea9294e
Merge pull request #272 from edenai/SD2-651-delete-video-file-in-q-a
appelstroop Oct 11, 2024
55b3231
[feat] video q&a async google
Daggx Oct 13, 2024
ae21dfe
Merge branch 'master' into SD2-641-transform-video-qa-to-async-lowerc…
Daggx Oct 13, 2024
ce479a4
[fix] imports
Daggx Oct 13, 2024
96a5b81
change error msg
Daggx Oct 14, 2024
09e0e97
Merge pull request #273 from edenai/SD2-641-transform-video-qa-to-asy…
Daggx Oct 14, 2024
65f1b98
[fix] video q&a google
Daggx Oct 16, 2024
7705007
Merge pull request #274 from edenai/hotfix/delete-video-async
Daggx Oct 16, 2024
3cd5f59
[fix] delete file if >= 10 m.b
Daggx Oct 16, 2024
c849ac3
Update PACKAGE_STRUCTURE.md
shubhamsharma44 Oct 16, 2024
289b1a2
[hotfix] 100 mb limit for sync google video
Daggx Oct 16, 2024
50a49aa
Add optional duration to FileInfo
appelstroop Oct 17, 2024
16ecb28
support ogg file for openai
Daggx Oct 21, 2024
0f0af49
add new mistral models
Daggx Oct 21, 2024
c214cce
Merge pull request #277 from edenai/SD2-694-cant-add-new-mistral-models
Daggx Oct 21, 2024
2461e6c
Merge pull request #276 from edenai/SD2-678-we-dont-support-ogg-files…
appelstroop Oct 22, 2024
04cfa46
Merge pull request #278 from edenai/add-duration-to-file-info
appelstroop Oct 23, 2024
3593d0c
[fix] stt provider_params + add details to original_response
KyrianC Nov 4, 2024
19948c3
delete file on get only after 3 hours
Daggx Nov 6, 2024
5464886
Merge pull request #279 from edenai/SD2-771-video-async-delete-file-o…
appelstroop Nov 7, 2024
450457c
[fix] change document url to be usable for sandbox calls
DninoAdnane Nov 21, 2024
46fdda5
Merge pull request #275 from shubhamsharma44/master
DninoAdnane Nov 21, 2024
05e47fc
Edit Feature : Deepfake Detection
AlexandrePrivat Nov 21, 2024
4141bb1
Merge pull request #280 from AlexandrePrivat/master
DninoAdnane Nov 22, 2024
85577ba
Merge remote-tracking branch 'origin/master' into fix/properly-close-…
appelstroop Nov 25, 2024
6917298
Fix "rb" in open
appelstroop Nov 25, 2024
a8fdd91
Add Provider : Leonardo
AlexandrePrivat Nov 28, 2024
7da76d2
Merge branch 'edenai:master' into master
AlexandrePrivat Nov 28, 2024
ea326bd
Fixes some mistakes in not keeping files open
appelstroop Nov 29, 2024
b55134c
Add modifications
AlexandrePrivat Dec 3, 2024
893cdac
Add modifications
AlexandrePrivat Dec 3, 2024
37fa0a2
Merge pull request #282 from AlexandrePrivat/master
DninoAdnane Dec 3, 2024
512bd39
Merge pull request #281 from edenai/fix/properly-close-files
appelstroop Dec 3, 2024
f0409eb
[fix] affinda passing file url
KyrianC Dec 5, 2024
2540033
[Fix] OpenAI document parsing
Daggx Dec 9, 2024
e1df190
[fix] pending logic for openai speech to text
KyrianC Dec 9, 2024
455a21c
format
KyrianC Dec 9, 2024
07e751f
[fix] raising from exception instance not from exception class
KyrianC Dec 9, 2024
4bee04a
format
KyrianC Dec 9, 2024
1aaa08d
[fix] google video person tracking KeyError on landmark_tracking
DninoAdnane Dec 9, 2024
e8c12ee
Merge pull request #286 from edenai/SD2-878-google-video-person-track…
juandavidcruzgomez Dec 9, 2024
18a87ec
[fix] typo
KyrianC Dec 9, 2024
2bc6945
Merge pull request #283 from edenai/SD2-862-doc-parsing-ap-is-open-ai…
juandavidcruzgomez Dec 9, 2024
61ec9eb
[Fix] google financial parser
Daggx Dec 10, 2024
273ed40
Merge pull request #287 from edenai/SD2-896-google-unicode-decode-err…
Daggx Dec 10, 2024
5dd1ecf
[fix] remove ai21labs spellcheck and summarize
DninoAdnane Dec 10, 2024
b4a3eb5
Merge pull request #288 from edenai/SD2-894-ai-21-labs-not-found-error
juandavidcruzgomez Dec 10, 2024
8b5b972
Merge pull request #284 from edenai/SD2-921-speech-to-text-openai-emp…
DninoAdnane Dec 11, 2024
e899c75
[Fix] Deprecated model for perplexity tests
Daggx Dec 11, 2024
97cab2c
Fix chat tests
Daggx Dec 12, 2024
022960d
[Fix] Image variation feature
Daggx Dec 12, 2024
0390d6e
[Fix] Sightengine info data
Daggx Dec 12, 2024
d9dc5cf
[Fix] test_input_text_too_long_sentences
Daggx Dec 12, 2024
7b7bcde
[Fix] test_invalid_file_audio_duration
Daggx Dec 12, 2024
54340e4
[fix] image deepfake detection
DninoAdnane Dec 12, 2024
b06bb56
[fix] sightengine deepgrake_detection_async video
DninoAdnane Dec 12, 2024
f6b698f
Merge pull request #289 from edenai/fix/sightengine-deepfake
DninoAdnane Dec 12, 2024
109332a
[refactor] openai stt directly return response in launch
KyrianC Dec 12, 2024
0888e8b
[refactor] don't use webhook.site as db google video qa async
KyrianC Dec 12, 2024
fbd65f3
[refactor] return response in launch privateai anonymization async
KyrianC Dec 12, 2024
f9f7c4c
[refactor] don't use webhook deepgram speech to text
KyrianC Dec 12, 2024
664dd7b
[refactor] return response in launch base64 anonymization async
KyrianC Dec 12, 2024
ea4f265
[fix] nickel automl don't use webhook.site for predict
KyrianC Dec 13, 2024
aece85b
Remove deprecated tests
Daggx Dec 16, 2024
38fc585
Merge branch 'master' into SD2-948-fix-all-edenai-apis-failing-tests
Daggx Dec 16, 2024
9235f8d
Skip provider/subfeature api call in github action
Daggx Dec 16, 2024
2d1da56
[Fix] Image variation signature tests
Daggx Dec 16, 2024
a4052a3
[Fix] Deepfake detection signature tests
Daggx Dec 16, 2024
141ceb4
[Fix] signature sightengine
Daggx Dec 16, 2024
03304f4
Merge pull request #291 from edenai/SD2-948-fix-all-edenai-apis-faili…
juandavidcruzgomez Dec 16, 2024
d2db324
[doc] update available features & providers
juandavidcruzgomez Dec 16, 2024
8b945b7
Merge pull request #290 from edenai/fix/rm-webhooks
juandavidcruzgomez Dec 17, 2024
284703d
[Feat] Video generation
Daggx Dec 17, 2024
d39620a
[Fix] DataClass name
Daggx Dec 17, 2024
6a61468
[Fix] typo in interface
Daggx Dec 17, 2024
9eb91d3
[Fix] test async longer time
Daggx Dec 18, 2024
b0fb826
Merge pull request #292 from edenai/SD2-913-new-feature-video-generation
juandavidcruzgomez Dec 18, 2024
98a6483
[Fix] OpenAI model in q&a image
Daggx Dec 19, 2024
791a169
[Fix] update boto3
Daggx Dec 19, 2024
b45442b
[feat] remove some unused providers
DninoAdnane Dec 19, 2024
8f03cd0
[tests] twelvelabs doesn't accept video without audio
KyrianC Dec 20, 2024
c6bb767
[fix] add missing models in tests
KyrianC Dec 20, 2024
fce78aa
Merge pull request #285 from edenai/SD2-925-eagledoc-jsondecodeerror
KyrianC Dec 20, 2024
9b9c21d
Merge pull request #293 from edenai/SD2-971-remove-features-from-prov…
KyrianC Jan 2, 2025
0d644c1
[fix] jina json decode error
DninoAdnane Jan 3, 2025
585044c
updated pydantic
appelstroop Jan 14, 2025
1d98a94
Merge pull request #296 from edenai/SD2-1007-jina-handle-errors
DninoAdnane Jan 14, 2025
e703217
Update openai
appelstroop Jan 14, 2025
9dc2d48
Fix enum types pydantic 2.7
appelstroop Jan 15, 2025
4e848d8
xAI provider
juandavidcruzgomez Jan 16, 2025
4383e5e
add translation outputs
juandavidcruzgomez Jan 16, 2025
5e5b0e6
add text outputs
juandavidcruzgomez Jan 16, 2025
336e9bb
Merge pull request #298 from edenai/pydantic-update
appelstroop Jan 17, 2025
38bfbcc
Merge pull request #299 from edenai/add-provider/xai
juandavidcruzgomez Jan 17, 2025
ca04a52
[fix] revert deletion of IBM sentiment_analysis
KyrianC Jan 17, 2025
bd1cfb7
Allow mimetype videoquicktime for google video question_answer
appelstroop Jan 20, 2025
28ca9aa
Merge pull request #300 from edenai/SD2-1060-fix-allow-mimetype-video…
appelstroop Jan 20, 2025
4439f4f
[feat] re-introduce ibm text syntax_analysis
KyrianC Jan 21, 2025
aa32409
fix indentation
KyrianC Jan 21, 2025
448dd98
Import classes
ksriv001 Jan 21, 2025
0b72b8e
Added client
ksriv001 Jan 21, 2025
e24d4f3
Added client
ksriv001 Jan 21, 2025
615b52d
Removed tools
ksriv001 Jan 22, 2025
9e1a689
Removed tools
ksriv001 Jan 22, 2025
ebb381d
Added url
ksriv001 Jan 22, 2025
96407c1
streamlined api
ksriv001 Jan 22, 2025
797bb39
added info
ksriv001 Jan 22, 2025
443f14b
Working output response
ksriv001 Jan 22, 2025
40a7f78
Working commit
ksriv001 Jan 22, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
103 changes: 103 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
# Use the latest 2.1 version of CircleCI pipeline process engine.
# See: https://circleci.com/docs/2.0/configuration-reference
version: 2.1

# Define a job to be invoked later in a workflow.
# See: https://circleci.com/docs/2.0/configuration-reference/#jobs
jobs:
test:
docker:
- image: cimg/python:3.11
# Add steps to the job
# See: https://circleci.com/docs/2.0/configuration-reference/#steps
steps:
- checkout
- run:
name: Setup config files and folders
command: |
# Insall aws cli
pip install awscli --upgrade

# Copy settings file
aws s3 cp $S3PATH edenai_apis/api_keys --recursive

- run:
name: Install dependencies
command: |
sudo apt-get update
sudo apt-get install ffmpeg -y
pip install -r requirements.txt

- run:
name: Test
command: |
cd edenai_apis
mkdir test-results
export TEST_SCOPE="CICD" && pytest -vvv -n auto --maxprocesses=8 --dist loadgroup --junitxml=test-results/junit.xml --cov
- store_test_results:
path: edenai_apis/test-results/junit.xml
- store_artifacts:
path: edenai_apis/htmlcov

check_providers:
docker:
- image: cimg/python:3.11
# Add steps to the job
# See: https://circleci.com/docs/2.0/configuration-reference/#steps
parameters:
interval:
type: string
default: nightly

steps:
- checkout
- run:
name: Setup config files and folders
command: |
sudo apt-get update
sudo apt-get install build-essential libssl-dev libasound2 wget

wget http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.deb
sudo dpkg -i libssl1.1_1.1.0g-2ubuntu4_amd64.deb

# Insall aws cli
pip install awscli --upgrade
# Copy settings file
aws s3 cp $S3PATH edenai_apis/api_keys --recursive
- run:
name: Install dependencies
command: |
sudo apt-get update
sudo apt-get install ffmpeg -y
pip install -e .

- run:
name: check working providers
command: |
python edenai_apis/scripts/check_not_working_providers.py << parameters.interval >>


# Invoke jobs via workflows
# See: https://circleci.com/docs/2.0/configuration-reference/#workflows
workflows:
test-workflow:
jobs:
- test:
context:
- Edenai-back
filters:
branches:
only:
- master
- circleci
nightly:
triggers:
- schedule:
cron: "0 6 * * 1-5"
filters:
branches:
only:
- master
- release
jobs:
- check_providers
22 changes: 22 additions & 0 deletions .github/workflows/circIeci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: circleCI

on:
pull_request:
types: [opened,reopened]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Tickle CircleCI
env:
CIRCLE_BRANCH: ${{ github.head_ref }}
CIRCLE_TOKEN: ${{ secrets.CIRCLE_TOKEN }}
run: |
curl -X POST \
-H "Circle-Token: ${CIRCLE_TOKEN}" \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d "{\"branch\":\"${CIRCLE_BRANCH}\"}" \
https://circleci.com/api/v2/project/edenai-apis/pipeline
5 changes: 3 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.8"
python-version: "3.11"

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install ffmpeg -y
pip install -r requirements.txt
pip install -r requirements.txt -c constraints.txt
- name: Set Env variables
run: "echo TEST_SCOPE=CICD-OPENSOURCE >> $GITHUB_ENV"
- name: Run Test suite
Expand Down Expand Up @@ -62,6 +62,7 @@ jobs:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,8 @@ media

.vscode
.idea
.env

pyrightconfig.json

*.env*
Loading
Loading