Skip to content

Commit 5c23b96

Browse files
Fix type issues and add tests (#398)
* Fix tests/types * Fix test and add tool use * Fix import * Fix tests
1 parent 2c0e583 commit 5c23b96

File tree

2 files changed

+264
-203
lines changed

2 files changed

+264
-203
lines changed

src/cohere/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
import httpx
44

5-
from .environment import BaseCohereEnvironment
65
from .base_client import BaseCohere, AsyncBaseCohere
6+
from .environment import CohereEnvironment
77

88

99
class Client(BaseCohere):
@@ -12,7 +12,7 @@ def __init__(
1212
api_key: typing.Union[str, typing.Callable[[], str]],
1313
*,
1414
base_url: typing.Optional[str] = None,
15-
environment: BaseCohereEnvironment = BaseCohereEnvironment.PRODUCTION,
15+
environment: CohereEnvironment = CohereEnvironment.PRODUCTION,
1616
client_name: typing.Optional[str] = None,
1717
timeout: typing.Optional[float] = 60,
1818
httpx_client: typing.Optional[httpx.Client] = None,
@@ -34,7 +34,7 @@ def __init__(
3434
api_key: typing.Union[str, typing.Callable[[], str]],
3535
*,
3636
base_url: typing.Optional[str] = None,
37-
environment: BaseCohereEnvironment = BaseCohereEnvironment.PRODUCTION,
37+
environment: CohereEnvironment = CohereEnvironment.PRODUCTION,
3838
client_name: typing.Optional[str] = None,
3939
timeout: typing.Optional[float] = 60,
4040
httpx_client: typing.Optional[httpx.AsyncClient] = None,

0 commit comments

Comments
 (0)