Skip to content

Commit

Permalink
add icon
Browse files Browse the repository at this point in the history
  • Loading branch information
HikaruEgashira committed Oct 7, 2024
1 parent f627909 commit e6d590a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 34 deletions.
Binary file added o1-mini.webp
Binary file not shown.
26 changes: 0 additions & 26 deletions openai.svg

This file was deleted.

15 changes: 8 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "vscode-o1-agent",
"name": "vscode-o1-mini-agent",
"publisher": "hikaruegashira",
"displayName": "Use OpenAI API (o1-mini model) (Copilot Chat Participant)",
"description": "This extension provides a chat participant that allows you to use the OpenAI API (o1-mini model) in Copilot Chat.",
"displayName": "Invoke o1-mini model via OpenAI API. (Copilot Chat Participant)",
"description": "This extension provides a chat participant that allows you to invoke the o1-mini model via the OpenAI API.",
"repository": {
"type": "git",
"url": "https://github.com/HikaruEgashira/o1-extension.git"
Expand All @@ -17,14 +17,15 @@
"categories": [
"Other"
],
"icon": "o1-mini.webp",
"activationEvents": [],
"contributes": {
"chatParticipants": [
{
"id": "vscode-copilot.o1",
"fullName": "o1",
"name": "o1",
"description": "o1 given prompt",
"id": "vscode-copilot.o1-mini",
"fullName": "o1-mini",
"name": "o1-mini",
"description": "Invoke o1-mini model via OpenAI API.",
"isSticky": true
}
]
Expand Down
2 changes: 1 addition & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { chatHandler } from "./chatHandler";
export async function activate(context: vscode.ExtensionContext) {
const apiKey = await getApiKey(context);
const o1 = vscode.chat.createChatParticipant("vscode-copilot.o1", chatHandler(apiKey));
o1.iconPath = vscode.Uri.joinPath(context.extensionUri, "openai.svg");
o1.iconPath = vscode.Uri.joinPath(context.extensionUri, "o1-mini.webp");
}

async function getApiKey(context: vscode.ExtensionContext): Promise<string> {
Expand Down

0 comments on commit e6d590a

Please sign in to comment.