[Frontend] Cohere chat v2 api support (#47189)
Signed-off-by: Andrew Berneshawi <andrewberneshawi@cohere.com> Co-authored-by: Cyrus Leung <tlleungac@connect.ust.hk>
This commit is contained in:
co-authored by
Cyrus Leung
parent
6c91de3689
commit
9c110fa522
@@ -126,6 +126,8 @@ click==8.4.2
|
||||
# uvicorn
|
||||
cloudpickle==3.1.2
|
||||
# via -r requirements/test/../common.txt
|
||||
cohere==7.0.8
|
||||
# via -r requirements/test/cuda.in
|
||||
cohere-melody==0.9.0
|
||||
# via -r requirements/test/cuda.in
|
||||
colorama==0.4.6
|
||||
@@ -226,6 +228,8 @@ fastar==0.11.0
|
||||
# via
|
||||
# fastapi
|
||||
# fastapi-cloud-cli
|
||||
fastavro==1.12.2
|
||||
# via cohere
|
||||
fastparquet==2024.11.0
|
||||
# via genai-perf
|
||||
fastrlock==0.8.2
|
||||
@@ -326,6 +330,7 @@ httpx==0.27.2
|
||||
# via
|
||||
# -r requirements/test/cuda.in
|
||||
# anthropic
|
||||
# cohere
|
||||
# fastapi
|
||||
# fastapi-cloud-cli
|
||||
# huggingface-hub
|
||||
@@ -772,6 +777,7 @@ pydantic==2.12.0
|
||||
# -r requirements/test/../common.txt
|
||||
# albumentations
|
||||
# anthropic
|
||||
# cohere
|
||||
# compressed-tensors
|
||||
# datamodel-code-generator
|
||||
# fastapi
|
||||
@@ -789,7 +795,9 @@ pydantic==2.12.0
|
||||
# ray
|
||||
# xgrammar
|
||||
pydantic-core==2.41.1
|
||||
# via pydantic
|
||||
# via
|
||||
# cohere
|
||||
# pydantic
|
||||
pydantic-extra-types==2.10.5
|
||||
# via
|
||||
# fastapi
|
||||
@@ -911,6 +919,7 @@ requests==2.32.3
|
||||
# -r requirements/test/../common.txt
|
||||
# azure-core
|
||||
# buildkite-test-collector
|
||||
# cohere
|
||||
# datasets
|
||||
# docker
|
||||
# evaluate
|
||||
@@ -1110,6 +1119,7 @@ tokenizers==0.22.2
|
||||
# via
|
||||
# -r requirements/test/../common.txt
|
||||
# -r requirements/test/cuda.in
|
||||
# cohere
|
||||
# transformers
|
||||
torch==2.13.0+cpu
|
||||
# via
|
||||
@@ -1191,6 +1201,8 @@ typer==0.26.8
|
||||
# fastsafetensors
|
||||
# perceptron
|
||||
# transformers
|
||||
types-requests==2.33.0.20260712
|
||||
# via cohere
|
||||
typing-extensions==4.15.0
|
||||
# via
|
||||
# -r requirements/test/../common.txt
|
||||
@@ -1204,6 +1216,7 @@ typing-extensions==4.15.0
|
||||
# azure-identity
|
||||
# azure-storage-blob
|
||||
# chz
|
||||
# cohere
|
||||
# fastapi
|
||||
# grpcio
|
||||
# huggingface-hub
|
||||
@@ -1248,6 +1261,7 @@ urllib3==2.2.3
|
||||
# responses
|
||||
# sentry-sdk
|
||||
# tritonclient
|
||||
# types-requests
|
||||
uvicorn==0.35.0
|
||||
# via
|
||||
# fastapi
|
||||
|
||||
@@ -73,6 +73,7 @@ gpt-oss >= 0.0.7; python_version > '3.11'
|
||||
perceptron # required for isaac test
|
||||
kaldi-native-fbank >= 1.18.7 # required for fireredasr2 test
|
||||
cohere_melody>=0.9.0 # required for cohere command reasoning parser test
|
||||
cohere>=7.0.0 # required for cohere chat v2 api tests (protocol/serving import cohere.types)
|
||||
|
||||
# Newer versions of datasets require torchcoded, that makes the tests fail in CI because of a missing library.
|
||||
# Older versions are in conflict with teerratorch requirements.
|
||||
|
||||
@@ -131,6 +131,8 @@ click==8.4.2
|
||||
# uvicorn
|
||||
cloudpickle==3.1.2
|
||||
# via -r requirements/test/../common.txt
|
||||
cohere==7.0.8
|
||||
# via -r requirements/test/cuda.in
|
||||
cohere-melody==0.9.0
|
||||
# via -r requirements/test/cuda.in
|
||||
colorama==0.4.6
|
||||
@@ -242,6 +244,8 @@ fastar==0.11.0
|
||||
# via
|
||||
# fastapi
|
||||
# fastapi-cloud-cli
|
||||
fastavro==1.12.2
|
||||
# via cohere
|
||||
fastparquet==2024.11.0
|
||||
# via genai-perf
|
||||
fastrlock==0.8.2
|
||||
@@ -345,6 +349,7 @@ httpx==0.27.2
|
||||
# via
|
||||
# -r requirements/test/cuda.in
|
||||
# anthropic
|
||||
# cohere
|
||||
# fastapi
|
||||
# fastapi-cloud-cli
|
||||
# huggingface-hub
|
||||
@@ -860,6 +865,7 @@ pydantic==2.12.0
|
||||
# -r requirements/test/../common.txt
|
||||
# albumentations
|
||||
# anthropic
|
||||
# cohere
|
||||
# compressed-tensors
|
||||
# datamodel-code-generator
|
||||
# fastapi
|
||||
@@ -877,7 +883,9 @@ pydantic==2.12.0
|
||||
# ray
|
||||
# xgrammar
|
||||
pydantic-core==2.41.1
|
||||
# via pydantic
|
||||
# via
|
||||
# cohere
|
||||
# pydantic
|
||||
pydantic-extra-types==2.10.5
|
||||
# via
|
||||
# fastapi
|
||||
@@ -1002,6 +1010,7 @@ requests==2.32.3
|
||||
# -r requirements/test/../common.txt
|
||||
# azure-core
|
||||
# buildkite-test-collector
|
||||
# cohere
|
||||
# datasets
|
||||
# docker
|
||||
# evaluate
|
||||
@@ -1207,6 +1216,7 @@ tokenizers==0.22.2
|
||||
# -c requirements/common.txt
|
||||
# -r requirements/test/../common.txt
|
||||
# -r requirements/test/cuda.in
|
||||
# cohere
|
||||
# transformers
|
||||
torch==2.13.0+cu130
|
||||
# via
|
||||
@@ -1296,6 +1306,8 @@ typer==0.26.8
|
||||
# fastsafetensors
|
||||
# perceptron
|
||||
# transformers
|
||||
types-requests==2.33.0.20260712
|
||||
# via cohere
|
||||
typing-extensions==4.15.0
|
||||
# via
|
||||
# -c requirements/common.txt
|
||||
@@ -1310,6 +1322,7 @@ typing-extensions==4.15.0
|
||||
# azure-identity
|
||||
# azure-storage-blob
|
||||
# chz
|
||||
# cohere
|
||||
# fastapi
|
||||
# grpcio
|
||||
# huggingface-hub
|
||||
@@ -1354,6 +1367,7 @@ urllib3==2.2.3
|
||||
# responses
|
||||
# sentry-sdk
|
||||
# tritonclient
|
||||
# types-requests
|
||||
uvicorn==0.35.0
|
||||
# via
|
||||
# fastapi
|
||||
|
||||
@@ -71,6 +71,7 @@ gpt-oss>=0.0.7; python_version > '3.11'
|
||||
perceptron # required for isaac test
|
||||
kaldi-native-fbank>=1.18.7 # required for fireredasr2 test
|
||||
cohere_melody>=0.9.0 # required for cohere command reasoning parser test
|
||||
cohere>=7.0.0 # required for cohere chat v2 api tests (protocol/serving import cohere.types)
|
||||
|
||||
# Newer versions of datasets require torchcoded, that makes the tests fail in CI because of a missing library.
|
||||
# Older versions are in conflict with terratorch requirements.
|
||||
|
||||
@@ -131,6 +131,8 @@ cloudpickle==3.1.2
|
||||
# via
|
||||
# -r requirements/test/../common.txt
|
||||
# tilelang
|
||||
cohere==7.0.8
|
||||
# via -r requirements/test/rocm.in
|
||||
cohere-melody==0.9.0
|
||||
# via -r requirements/test/rocm.in
|
||||
colorama==0.4.6
|
||||
@@ -231,6 +233,8 @@ fastapi-cloud-cli==0.16.1
|
||||
# via fastapi-cli
|
||||
fastar==0.10.0
|
||||
# via fastapi-cloud-cli
|
||||
fastavro==1.12.2
|
||||
# via cohere
|
||||
fastparquet==2026.3.0
|
||||
# via genai-perf
|
||||
fastsafetensors==0.3.2
|
||||
@@ -336,6 +340,7 @@ httpx==0.27.2
|
||||
# via
|
||||
# -r requirements/test/rocm.in
|
||||
# anthropic
|
||||
# cohere
|
||||
# fastapi
|
||||
# fastapi-cloud-cli
|
||||
# huggingface-hub
|
||||
@@ -832,6 +837,7 @@ pydantic==2.12.5
|
||||
# -r requirements/test/../common.txt
|
||||
# albumentations
|
||||
# anthropic
|
||||
# cohere
|
||||
# compressed-tensors
|
||||
# datamodel-code-generator
|
||||
# fastapi
|
||||
@@ -849,7 +855,9 @@ pydantic==2.12.5
|
||||
# ray
|
||||
# xgrammar
|
||||
pydantic-core==2.41.5
|
||||
# via pydantic
|
||||
# via
|
||||
# cohere
|
||||
# pydantic
|
||||
pydantic-extra-types==2.11.1
|
||||
# via
|
||||
# fastapi
|
||||
@@ -978,6 +986,7 @@ requests==2.32.5
|
||||
# -r requirements/test/../common.txt
|
||||
# azure-core
|
||||
# buildkite-test-collector
|
||||
# cohere
|
||||
# datasets
|
||||
# docker
|
||||
# evaluate
|
||||
@@ -1193,6 +1202,7 @@ tokenizers==0.22.2
|
||||
# -c requirements/common.txt
|
||||
# -r requirements/test/../common.txt
|
||||
# -r requirements/test/rocm.in
|
||||
# cohere
|
||||
# transformers
|
||||
torch-c-dlpack-ext==0.1.5
|
||||
# via tilelang
|
||||
@@ -1243,6 +1253,8 @@ typer==0.24.1
|
||||
# fastsafetensors
|
||||
# perceptron
|
||||
# transformers
|
||||
types-requests==2.33.0.20260712
|
||||
# via cohere
|
||||
typing-extensions==4.15.0
|
||||
# via
|
||||
# -c requirements/common.txt
|
||||
@@ -1257,6 +1269,7 @@ typing-extensions==4.15.0
|
||||
# azure-identity
|
||||
# azure-storage-blob
|
||||
# chz
|
||||
# cohere
|
||||
# fastapi
|
||||
# grpcio
|
||||
# huggingface-hub
|
||||
@@ -1302,6 +1315,7 @@ urllib3==2.6.3
|
||||
# responses
|
||||
# sentry-sdk
|
||||
# tritonclient
|
||||
# types-requests
|
||||
uvicorn==0.42.0
|
||||
# via
|
||||
# fastapi
|
||||
|
||||
Reference in New Issue
Block a user