Skip to content

Commit

Permalink
Fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
billytrend-cohere committed Sep 30, 2024
1 parent 83d55dc commit c796595
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 18 deletions.
6 changes: 3 additions & 3 deletions src/cohere/manually_maintained/cohere_aws/chat.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from cohere_aws.response import CohereObject
from cohere_aws.error import CohereError
from cohere_aws.mode import Mode
from .response import CohereObject
from .error import CohereError
from .mode import Mode
from typing import List, Optional, Generator, Dict, Any, Union
from enum import Enum
import json
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from cohere_aws.response import CohereObject
from .response import CohereObject
from typing import Any, Dict, Iterator, List, Literal, Union

Prediction = Union[str, int, List[str], List[int]]
Expand Down
16 changes: 8 additions & 8 deletions src/cohere/manually_maintained/cohere_aws/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@
ParamValidationError)
from sagemaker.s3 import S3Downloader, S3Uploader, parse_s3_url

from cohere_aws.classification import Classification, Classifications
from cohere_aws.embeddings import Embeddings
from cohere_aws.error import CohereError
from cohere_aws.generation import (Generation, Generations,
from .classification import Classification, Classifications
from .embeddings import Embeddings
from .error import CohereError
from .generation import (Generation, Generations,
StreamingGenerations,
TokenLikelihood)
from cohere_aws.chat import Chat, StreamingChat
from cohere_aws.rerank import Reranking
from cohere_aws.summary import Summary
from cohere_aws.mode import Mode
from .chat import Chat, StreamingChat
from .rerank import Reranking
from .summary import Summary
from .mode import Mode


class Client:
Expand Down
2 changes: 1 addition & 1 deletion src/cohere/manually_maintained/cohere_aws/embeddings.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from cohere_aws.response import CohereObject
from .response import CohereObject
from typing import Iterator, List


Expand Down
4 changes: 2 additions & 2 deletions src/cohere/manually_maintained/cohere_aws/generation.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from cohere_aws.response import CohereObject
from cohere_aws.mode import Mode
from .response import CohereObject
from .mode import Mode
from typing import List, Optional, NamedTuple, Generator, Dict, Any
import json

Expand Down
2 changes: 1 addition & 1 deletion src/cohere/manually_maintained/cohere_aws/rerank.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Any, Dict, Iterator, List, NamedTuple, Optional

from cohere_aws.response import CohereObject
from .response import CohereObject

RerankDocument = NamedTuple("Document", [("text", str)])
RerankDocument.__doc__ = """
Expand Down
4 changes: 2 additions & 2 deletions src/cohere/manually_maintained/cohere_aws/summary.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from cohere_aws.error import CohereError
from cohere_aws.response import CohereObject
from .error import CohereError
from .response import CohereObject
from typing import Any, Dict, Optional


Expand Down

0 comments on commit c796595

Please sign in to comment.