Skip to content

Commit

Permalink
rename co.image -> co.paint
Browse files Browse the repository at this point in the history
  • Loading branch information
CoderHam committed Nov 11, 2022
1 parent 20f1c63 commit 177d0b8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cohere/__init__.py
Expand Up @@ -8,7 +8,7 @@
EMBED_URL = 'embed'
CLASSIFY_URL = 'classify'
EXTRACT_URL = 'extract'
IMAGE_URL = 'image'
PAINT_URL = 'paint'

CHECK_API_KEY_URL = 'check-api-key'
TOKENIZE_URL = 'tokenize'
Expand Down
4 changes: 2 additions & 2 deletions cohere/client.py
Expand Up @@ -19,7 +19,7 @@
from cohere.extract import Extraction, Extractions
from cohere.generation import Generations
from cohere.tokenize import Tokens
from cohere.image import Images
from cohere.paint import Images

use_xhr_client = False
try:
Expand Down Expand Up @@ -212,7 +212,7 @@ def detokenize(self, tokens: List[int]) -> Detokenization:
json_body = {'tokens': tokens}
return Detokenization(_future=self._executor.submit(self.__request, cohere.DETOKENIZE_URL, json=json_body))

def image(self, prompt: str) -> Images:
def paint(self, prompt: str) -> Images:
json_body = json.dumps({
'prompt': prompt,
})
Expand Down
File renamed without changes.

0 comments on commit 177d0b8

Please sign in to comment.