Merge pull request #3421 from mark-espinoza/Ask-Sage-Updates-Dec-2024
Added new models and Linked Ask Sage Documentation to preIndexedDocs
This commit is contained in:
commit
ad67e75eca
5 changed files with 198 additions and 32 deletions
|
|
@ -348,6 +348,11 @@ const preIndexedDocs: Record<
|
|||
rootUrl: "https://api.dart.dev",
|
||||
faviconUrl: "https://api.dart.dev/static-assets/favicon.png",
|
||||
},
|
||||
"https://docs.asksage.ai/": {
|
||||
title: "Ask Sage",
|
||||
startUrl: "https://docs.asksage.ai/",
|
||||
rootUrl: "https://docs.asksage.ai/",
|
||||
},
|
||||
};
|
||||
|
||||
export default preIndexedDocs;
|
||||
|
|
|
|||
|
|
@ -9,17 +9,27 @@ class Asksage extends BaseLLM {
|
|||
};
|
||||
|
||||
private static modelConversion: { [key: string]: string } = {
|
||||
"gpt-4o": "gpt-4o",
|
||||
"gpt-4o-mini": "gpt-4o-mini",
|
||||
"gpt4-gov": "gpt4-gov",
|
||||
"gpt-4o-gov": "gpt-4o-gov",
|
||||
"gpt-3.5-turbo": "gpt35-16k",
|
||||
"mistral-large-latest": "mistral-large",
|
||||
"llama3-70b": "llma3",
|
||||
"gemini-1.5-pro-latest": "google-gemini-pro",
|
||||
"claude-3-5-sonnet-20240620": "claude-35-sonnet",
|
||||
"claude-3-opus-20240229": "claude-3-opus",
|
||||
"claude-3-sonnet-20240229": "claude-3-sonnet",
|
||||
"gpt-4o-gov": "gpt-4o-gov", // Works
|
||||
"gpt-4o-mini-gov": "gpt-4o-mini-gov",
|
||||
"gpt4-gov": "gpt4-gov", // Works
|
||||
"gpt-gov": "gpt-gov", // Works
|
||||
"gpt-4o": "gpt-4o", // Works
|
||||
"gpt-4o-mini": "gpt-4o-mini", // Works
|
||||
"gpt4": "gpt4", // Works
|
||||
"gpt4-32k": "gpt4-32k",
|
||||
"gpt-o1": "gpt-o1", // Works
|
||||
"gpt-o1-mini": "gpt-o1-mini", // Works
|
||||
"gpt-3.5-turbo": "gpt35-16k", // Works
|
||||
"aws-bedrock-claude-35-sonnet-gov": "aws-bedrock-claude-35-sonnet-gov", // Works
|
||||
"claude-3-5-sonnet-latest": "claude-35-sonnet", // Works
|
||||
"claude-3-opus-20240229": "claude-3-opus", // Works
|
||||
"claude-3-sonnet-20240229": "claude-3-sonnet", // Works
|
||||
"grok-beta": "xai-grok",
|
||||
"groq-llama33": "groq-llama33",
|
||||
"groq-70b": "groq-70b",
|
||||
"mistral-large-latest": "mistral-large", // Works
|
||||
"llama3-70b": "llma3", // Works
|
||||
"gemini-1.5-pro-latest": "google-gemini-pro", // Works
|
||||
};
|
||||
|
||||
constructor(options: LLMOptions) {
|
||||
|
|
@ -28,7 +38,10 @@ class Asksage extends BaseLLM {
|
|||
}
|
||||
|
||||
protected _convertModelName(model: string): string {
|
||||
return Asksage.modelConversion[model] ?? model;
|
||||
console.log("Converting model:", model);
|
||||
const convertedModel = Asksage.modelConversion[model] ?? model;
|
||||
console.log("Converted model:", convertedModel);
|
||||
return convertedModel;
|
||||
}
|
||||
|
||||
protected _convertMessage(message: ChatMessage) {
|
||||
|
|
|
|||
|
|
@ -41,21 +41,34 @@ More models, functionalities and documentation will be added in the future for A
|
|||
|
||||
> We recommend to utilize the`OpenAI` or `Anthropic` models for the best performance and results for the `Chat` and `Edit` functionalities.
|
||||
|
||||
## Ask Sage Documentation
|
||||
Ask Sage documentation is not available with Continue.Dev, so if you have any questions or need help with Ask Sage type `@ask` and select the `Ask Sage` option in the chat. Then procced to ask your question about Ask Sage.
|
||||
|
||||
## Current Models From Ask Sage Supported
|
||||
|
||||
The current Models available provided by Ask Sage are:
|
||||
|
||||
| Model | Added |
|
||||
|--------------------|-------|
|
||||
| Gov GPT-4.0 | Yes |
|
||||
| Gov GPT-4o | Yes |
|
||||
| GPT-4o | Yes |
|
||||
| GPT-4o-mini | Yes |
|
||||
| GPT-3.5-16K | Yes |
|
||||
| Calude 3 Opus | Yes |
|
||||
| Calude 3 Sonet | Yes |
|
||||
| Calude 3.5 Sonnet | Yes |
|
||||
| Gemini Pro | Yes |
|
||||
| llama 3 | Yes |
|
||||
| Mistral Large | Yes |
|
||||
| Index | Model | Added | Status |
|
||||
|-------|------------------------|-------|--------|
|
||||
| 1 | GPT-4 Gov | Yes | ✅ |
|
||||
| 2 | GPT-4o Gov | Yes | ✅ |
|
||||
| 3 | GPT-4o-mini Gov | Yes | ✅ |
|
||||
| 4 | GPT-3.5-Turbo Gov | Yes | ✅ |
|
||||
| 5 | GPT-4o | Yes | ✅ |
|
||||
| 6 | GPT-4o-mini | Yes | ✅ |
|
||||
| 7 | GPT-4 | Yes | ✅ |
|
||||
| 8 | GPT-4-32K | Yes | ✅ |
|
||||
| 9 | GPT-o1 | Yes | ✅ |
|
||||
| 10 | GPT-o1-mini | Yes | ✅ |
|
||||
| 11 | GPT-3.5-turbo | Yes | ✅ |
|
||||
| 12 | Calude 3.5 Sonnet Gov | Yes | ✅ |
|
||||
| 13 | Calude 3 Opus | Yes | ✅ |
|
||||
| 14 | Calude 3 Sonet | Yes | ✅ |
|
||||
| 15 | Calude 3.5 Sonnet | Yes | ✅ |
|
||||
| 16 | Grok (xAI) | Yes | ✅ |
|
||||
| 17 | Groq Llama 3.3 | Yes | ✅ |
|
||||
| 18 | Groq 70B | Yes | ✅ |
|
||||
| 19 | Gemini Pro | Yes | ✅ |
|
||||
| 20 | llama 3 | Yes | ✅ |
|
||||
| 21 | Mistral Large | Yes | ✅ |
|
||||
|
||||
|
|
|
|||
|
|
@ -1053,10 +1053,10 @@ export const models: { [key: string]: ModelPackage } = {
|
|||
providerOptions: ["vertexai"],
|
||||
isOpenSource: false,
|
||||
},
|
||||
gpt4gov: {
|
||||
asksagegpt4gov: {
|
||||
title: "GPT-4 gov",
|
||||
description:
|
||||
"U.S. Government. Most capable model today - which is similar to GPT-4o but approved for use by the U.S. Government.",
|
||||
"U.S. Government. Most capable model today - which is similar to GPT-4 but approved for use by the U.S. Government.",
|
||||
params: {
|
||||
model: "gpt4-gov",
|
||||
contextLength: 128_000,
|
||||
|
|
@ -1068,14 +1068,14 @@ export const models: { [key: string]: ModelPackage } = {
|
|||
icon: "openai.png",
|
||||
isOpenSource: false,
|
||||
},
|
||||
gpt4ogov: {
|
||||
asksagegpt4ogov: {
|
||||
title: "GPT-4o gov",
|
||||
description:
|
||||
"U.S. Government. Most capable model today - which is similar to GPT-4o but approved for use by the U.S. Government.",
|
||||
params: {
|
||||
model: "gpt-4o-gov",
|
||||
contextLength: 128_000,
|
||||
title: "GPT-4o",
|
||||
title: "GPT-4o-gov",
|
||||
systemMessage:
|
||||
"You are an expert software developer. You give helpful and concise responses.", // Need to set this on the Ask Sage side or just configure it in here to be discussed
|
||||
},
|
||||
|
|
@ -1083,6 +1083,131 @@ export const models: { [key: string]: ModelPackage } = {
|
|||
icon: "openai.png",
|
||||
isOpenSource: false,
|
||||
},
|
||||
asksagegpt35gov: {
|
||||
title: "GPT-3.5-Turbo gov",
|
||||
description:
|
||||
"U.S. Government. Inexpensive and good ROI.",
|
||||
params: {
|
||||
model: "gpt-gov",
|
||||
contextLength: 8096,
|
||||
title: "GPT-3.5-Turbo gov",
|
||||
systemMessage:
|
||||
"You are an expert software developer. You give helpful and concise responses.", // Need to set this on the Ask Sage side or just configure it in here to be discussed
|
||||
},
|
||||
providerOptions: ["askSage"],
|
||||
icon: "openai.png",
|
||||
isOpenSource: false,
|
||||
},
|
||||
asksagegpt4ominigov: {
|
||||
title: "GPT-4o-mini gov",
|
||||
description:
|
||||
"U.S. Government. Latest OpenAI GPT 4o-mini model. More inexpensive than GPT4. Capable of ingesting and analyzing images (JPG, PNG, GIF (20MB files max)). 16,384 token response max.",
|
||||
params: {
|
||||
model: "gpt-4o-mini-gov",
|
||||
contextLength: 128_000,
|
||||
title: "GPT-4o-mini gov",
|
||||
systemMessage:
|
||||
"You are an expert software developer. You give helpful and concise responses.", // Need to set this on the Ask Sage side or just configure it in here to be discussed
|
||||
},
|
||||
providerOptions: ["askSage"],
|
||||
icon: "openai.png",
|
||||
isOpenSource: false,
|
||||
},
|
||||
asksagegpt4: {
|
||||
title: "GPT-4",
|
||||
description:
|
||||
"GPT4 is about 5X more expensive than Ask Sage tokens and 50X more expensive than GPT3.5",
|
||||
params: {
|
||||
model: "gpt4",
|
||||
contextLength: 8_192,
|
||||
title: "GPT-4",
|
||||
},
|
||||
providerOptions: ["openai",],
|
||||
icon: "openai.png",
|
||||
isOpenSource: false,
|
||||
},
|
||||
asksagegpt432: {
|
||||
title: "GPT-4-32k",
|
||||
description:
|
||||
"The GPT-4-32k model is a variant of the GPT-4 model developed by OpenAI. It is designed to handle a larger context window, capable of processing up to 32,768 tokens, which makes it suitable for scenarios that require extensive information integration and data analysis",
|
||||
params: {
|
||||
model: "gpt4-32k",
|
||||
contextLength: 32_768,
|
||||
title: "GPT-4-32k",
|
||||
},
|
||||
providerOptions: ["openai",],
|
||||
icon: "openai.png",
|
||||
isOpenSource: false,
|
||||
},
|
||||
asksagegpto1: {
|
||||
title: "GPT-o1",
|
||||
description:
|
||||
"Latest OpenAI GPT-o1 model. More inexpensive than GPT4. Capable of ingesting and analyzing images (JPG, PNG, GIF (20MB files max)).",
|
||||
params: {
|
||||
model: "gpt-o1",
|
||||
contextLength: 128_000,
|
||||
title: "GPT-o1",
|
||||
systemMessage:
|
||||
"You are an expert software developer. You give helpful and concise responses.",
|
||||
},
|
||||
providerOptions: ["askSage"],
|
||||
icon: "openai.png",
|
||||
isOpenSource: false,
|
||||
},
|
||||
asksagegpto1mini: {
|
||||
title: "GPT-o1-mini",
|
||||
description:
|
||||
"Latest OpenAI GPT-o1-mini model. More inexpensive than GPT-o1. Capable of ingesting and analyzing images (JPG, PNG, GIF (20MB files max)). 16,384 token response max.",
|
||||
params: {
|
||||
model: "gpt-o1-mini",
|
||||
contextLength: 128_000,
|
||||
title: "GPT-o1-mini",
|
||||
systemMessage:
|
||||
"You are an expert software developer. You give helpful and concise responses.",
|
||||
},
|
||||
providerOptions: ["askSage"],
|
||||
icon: "openai.png",
|
||||
isOpenSource: false,
|
||||
},
|
||||
asksageclaude35gov: {
|
||||
title: "Claude 3.5 Sonnet gov",
|
||||
description:
|
||||
"Anthropic's most intelligent model, but much less expensive than Claude 3 Opus",
|
||||
params: {
|
||||
model: "aws-bedrock-claude-35-sonnet-gov",
|
||||
contextLength: 200_000,
|
||||
title: "Claude 3.5 Sonnet gov",
|
||||
systemMessage:
|
||||
"You are an expert software developer. You give helpful and concise responses.",
|
||||
},
|
||||
providerOptions: ["askSage"],
|
||||
icon: "anthropic.png",
|
||||
isOpenSource: false,
|
||||
},
|
||||
asksagegroqllama33: {
|
||||
title: "Llama 3.3",
|
||||
description:
|
||||
"Llama-3.3 is a large language model customized by Groq.",
|
||||
params: {
|
||||
title: "Llama 3.3",
|
||||
model: "groq-llama33",
|
||||
contextLength: 128_000,
|
||||
},
|
||||
icon: "groq.png",
|
||||
isOpenSource: true,
|
||||
},
|
||||
asksagegroq70b: {
|
||||
title: "Groq-70B",
|
||||
description:
|
||||
"A large language model customized by Groq.",
|
||||
params: {
|
||||
title: "Groq-70B",
|
||||
model: "groq-70b",
|
||||
contextLength: 8_192,
|
||||
},
|
||||
icon: "groq.png",
|
||||
isOpenSource: true,
|
||||
},
|
||||
Qwen2Coder: {
|
||||
title: "Qwen 2.5 Coder 7b",
|
||||
description:
|
||||
|
|
@ -1131,7 +1256,7 @@ export const models: { [key: string]: ModelPackage } = {
|
|||
contextLength: 128_000,
|
||||
},
|
||||
icon: "xAI.png",
|
||||
providerOptions: ["xAI"],
|
||||
providerOptions: ["xAI", "askSage"],
|
||||
isOpenSource: false,
|
||||
},
|
||||
gemma2_2b: {
|
||||
|
|
|
|||
|
|
@ -782,14 +782,24 @@ To get started, [register](https://dataplatform.cloud.ibm.com/registration/stepo
|
|||
...completionParamsInputsConfigs,
|
||||
],
|
||||
packages: [
|
||||
models.gpt4gov,
|
||||
models.gpt4ogov,
|
||||
models.asksagegpt4ogov,
|
||||
models.asksagegpt4ominigov,
|
||||
models.asksagegpt4gov,
|
||||
models.asksagegpt35gov,
|
||||
models.gpt4o,
|
||||
models.gpt4omini,
|
||||
models.asksagegpt4,
|
||||
models.asksagegpt432,
|
||||
models.asksagegpto1,
|
||||
models.asksagegpto1mini,
|
||||
models.gpt35turbo,
|
||||
models.asksageclaude35gov,
|
||||
models.claude35Sonnet,
|
||||
models.claude3Opus,
|
||||
models.claude3Sonnet,
|
||||
models.grokBeta,
|
||||
models.asksagegroqllama33,
|
||||
models.asksagegroq70b,
|
||||
models.mistralLarge,
|
||||
models.llama370bChat,
|
||||
models.gemini15Pro,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue