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

Add support for o1-preview #14356

Merged
merged 2 commits into from
Oct 28, 2024
Merged

Add support for o1-preview #14356

merged 2 commits into from
Oct 28, 2024

Conversation

JonasHelming
Copy link
Contributor

fixed #14329

What it does

Adds a new agent O1-Preview to chat with o1

How to test

Select o1-preview for the O1 agents and ask it questions.

Review checklist

Reminder for reviewers

@JonasHelming JonasHelming requested review from sdirix and planger and removed request for sdirix October 26, 2024 11:55
identifier: 'openai/o1-preview',
}],
'chat',
'codicon codicon-chat',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think codicon-chat doesn't exist.

Comment on lines 34 to 36
ChatAgentLocation.ALL,
['Chat'],
true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we could just remove those as they are just replicating the defaults of the super class.

Comment on lines 38 to 39
this.agentSpecificVariables = [];
this.variables = [];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Imho it'd be clearer if we just initialize them above (as agentSpecificVariables is already initialized with an empty array). So we could just remove those lines.

public name = 'O1-Preview';
public description = 'An agent for interacting with ChatGPT o1-preview';
public promptTemplates: PromptTemplate[] = [];
public defaultModel = 'o1-preview';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't appear to be used anywhere is it?

@@ -0,0 +1,46 @@
import {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are a few linting errors in this file (no copyright, extra blank lines).

@planger planger self-requested a review October 28, 2024 08:33
Copy link
Contributor

@planger planger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With 6546049 I've suggested a fix for my comments. With them in, this change is good to go imho!

At first it was a bit surprising to see a dedicated chat agent, but since o1 has a different interaction model (no streaming, no system message, maybe in the future more progress reporting), I guess it is justified.

Works great, thank you!

@JonasHelming JonasHelming merged commit bcf96a3 into master Oct 28, 2024
11 checks passed
@github-actions github-actions bot added this to the 1.55.0 milestone Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

[Theia AI] Support Chat GPT o1
2 participants