Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant