Skip to content

Commit

Permalink
Remove augemented chat tests (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
BeatrixCohere authored Jul 24, 2023
1 parent d242fd2 commit abf9cbd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/sync/test_chat.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import unittest
from typing import List

from utils import get_api_key

import cohere
from cohere.responses.chat import Mode

API_KEY = get_api_key()
co = cohere.Client(API_KEY)
Expand Down Expand Up @@ -214,6 +212,9 @@ def test_invalid_logit_bias(self):
with self.assertRaises(cohere.error.CohereError):
_ = co.chat("Yo what up?", logit_bias=logit_bias, max_tokens=5)


"""
Stop testing augmented generation while we change the API
def test_search_query_generation(self):
prediction = co.chat("What are the tallest penguins?", mode="search_query_generation")
self.assertIsInstance(prediction.is_search_required, bool)
Expand Down Expand Up @@ -244,3 +245,4 @@ def test_augmented_generation(self):
self.assertIsInstance(prediction.citations, List)
self.assertGreater(len(prediction.text), 0)
self.assertGreater(len(prediction.citations), 0)
"""

0 comments on commit abf9cbd

Please sign in to comment.