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

OpenAI Assistant & gpt4-o #9398

Closed
mbakgun opened this issue May 14, 2024 · 9 comments
Closed

OpenAI Assistant & gpt4-o #9398

mbakgun opened this issue May 14, 2024 · 9 comments
Labels
in linear Issue or PR has been created in Linear for internal review Released

Comments

@mbakgun
Copy link
Contributor

mbakgun commented May 14, 2024

Bug Description

I'm getting an error while requesting the OpenAI Assistant using the gpt-4o model as an assistant with APIv1, because gpt-4o cannot be used with the APIv1 schema.

Problem in node ‘OpenAI Assistant‘
400 The requested model 'gpt-4o' cannot be used with the Assistants API in v1. Follow the migration guide to upgrade to v2: https://platform.openai.com/docs/assistants/migration.

To Reproduce

To reproduce this problem you can use this public example: https://n8n.io/workflows/2098-chat-with-openai-assistant-by-adding-a-memory/

And please update your model as below :

Screenshot 2024-05-14 at 6 12 45 PM

Expected behavior

The expected behavior is a working assistant.

Operating System

Ubuntu Linux 22.04

n8n Version

1.39.4

Node.js Version

18.16.0

Database

MySQL

Execution mode

main (default)

@Joffcom
Copy link
Member

Joffcom commented May 15, 2024

Hey @mbakgun,

Using the example provided with a GPT4-O model it appears to be working as expected, Looking at your screenshot though rather than using an existing assistant are you trying to make a new one?

I have also tried this and for me it is working in 1.41.0, Are you able to provide an example that reproduces this?

@mbakgun
Copy link
Contributor Author

mbakgun commented May 15, 2024

Hi @Joffcom, I'm trying to create a new assistant, you can find the whole settings.
Screenshot 2024-05-15 at 8 39 34 AM

Area.mp4

@Joffcom
Copy link
Member

Joffcom commented May 15, 2024

Hey @mbakgun,

Even following that I am not able to reproduce the issue, Is your OpenAI account fairly new? We are going to need to update the node so I have created NODE-1350 as the dev ticket to get this updated.

@Joffcom Joffcom added the in linear Issue or PR has been created in Linear for internal review label May 15, 2024
@mbakgun
Copy link
Contributor Author

mbakgun commented May 15, 2024

Nope @Joffcom, I've been around for more than 2 years. I believe @OlegIvaniv's pr addresses the required changes.
I'll update here as soon as I get that update.

@Joffcom
Copy link
Member

Joffcom commented May 15, 2024

@mbakgun it does indeed, We were chatting about it internally. It is mix of old node and newer n8n version.

@mbakgun
Copy link
Contributor Author

mbakgun commented May 15, 2024

Alright, thanks :) I'm looking forward to test it

Edit : With the version of 1.41.0, it worked well 🚀

@Joffcom
Copy link
Member

Joffcom commented May 15, 2024

Opening until the PR is merged and released 🙂

@gvargas9
Copy link

This is working fine. I have tested it. The only thing that it is still a bug is that every message sent via chat, ends up creating a new Thread. But this is a separate bug

@janober
Copy link
Member

janober commented May 22, 2024

Fix got released with n8n@1.43.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in linear Issue or PR has been created in Linear for internal review Released
Projects
None yet
Development

No branches or pull requests

4 participants