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

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

@mdussere

Description

@mdussere

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions