Skip to content
This repository has been archived by the owner on Jan 16, 2025. It is now read-only.

[BUG]: Client.chat() invalid arguments #249

Open
mdussere opened this issue Dec 10, 2024 · 1 comment
Open

[BUG]: Client.chat() invalid arguments #249

mdussere opened this issue Dec 10, 2024 · 1 comment

Comments

@mdussere
Copy link

Issue Type

Bug Report

Notebook Name

agents/agentic-RAG/agentic_rag_langchain.ipynb

Description

Seems like the cohere.Client.chat arguments are outdated

co = cohere.Client()

def get_chat_output(message, preamble, chat_history, model, temp, documents=None):
    return co.chat(
    message=message,
    preamble=preamble,
    chat_history=chat_history,
    documents=documents,
    model=model,
    temperature=temp
    ).text

does not match API V2 https://docs.cohere.com/reference/chat

Steps to Reproduce (for bugs)

No response

System Information

No response

Additional Context

No response

@mdussere
Copy link
Author

I also get the following error:

E       TypeError: V2Client.chat() got an unexpected keyword argument 'search_queries_only'

I suppose it was also something from V1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant