மனோஜ்குமார் பழனிச்சாமி

Results 524 comments of மனோஜ்குமார் பழனிச்சாமி

> Did you mean like this? Yes. Now, both messages are in the following format. 0 SystemMessage 1 HumanMessage 2 AIMessage 3 ToolMessage 4 HumanMessage Would you change the above...

Would you change the message content for both codes to their roles like for the first one, `{"role": "system", "content": "system"}` and compare it using [diffchecker](https://www.diffchecker.com/diff)?

> ChatOpenAI code: > `messages = [ SystemMessage(content="system", role="system"), HumanMessage(content="user", role="user"), ]` like this with all the 5 messages for both the working and non-working code.

> The code like this. (Terminal print:User> How's the weather in Hangzhou? > No tool calls found in the response. Why tool calls not found? --- Does the same happen...

What is the output of this code? ```py from openai import OpenAI def send_messages(messages): response = client.chat.completions.create( model="deepseek-chat", messages=messages, tools=tools ) return response.choices[0].message client = OpenAI( api_key="", base_url="https://api.deepseek.com", ) tools...

The above code is from [their docs](https://api-docs.deepseek.com/guides/function_calling#sample-code). Why is it not working? Is the example outdated? Does [this example](https://platform.openai.com/docs/guides/function-calling?api-mode=chat) work?

> docker-compose up You should use [docker compose up](https://stackoverflow.com/questions/66514436/difference-between-docker-compose-and-docker-compose)?

Don't share your keys. Could you generate a new key and test it? If still fails, checkout free Google Gemini models. Click [here](https://aistudio.google.com/app/apikey) to get the key. -- Seems anthropic...