arcee-ai / arcee-python

The Arcee client for executing domain-adpated language model routines https://pypi.org/project/arcee-py/
https://www.arcee.ai
25 stars 5 forks source link

Add /api to url #54

Closed tleyden closed 4 months ago

tleyden commented 4 months ago

Steps to repro

import arcee
arcee.upload_corpus_folder(
    corpus = f"arcee_e2e_tests_{random.randint(0, 100000)}", 
    s3_folder_url = self.args.corpus_s3_uri, 
    tokenizer_name = self.args.tokenizer_name, 
    block_size = self.args.block_size
)

Error

405 Method Not Allowed</h3><p class="text-sm text-muted-foreground"><code class="text-pretty">Error: You made a POST request to &quot;/v2/pretraining/corpusUpload&quot; but did not provide an `action` for route &quot;routes/$&quot;, so there is no way to handle the request.</code>
tleyden commented 4 months ago

This is difficult to fix long term.

Alternative workaround: add /api to the ARCEE_API_URL env var