From 615bac206ee625807e5805423ac55ac51956f43f Mon Sep 17 00:00:00 2001 From: YunhaoLiu1228 Date: Sun, 19 May 2024 19:42:39 -0700 Subject: [PATCH 1/3] Add Keywords AI in the Supported LLMs --- project/taskweaver_config.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/project/taskweaver_config.json b/project/taskweaver_config.json index 293ba878..269beaa4 100644 --- a/project/taskweaver_config.json +++ b/project/taskweaver_config.json @@ -1,5 +1,5 @@ { - "llm.api_base": "https://api.openai.com/v1", - "llm.api_key": "", - "llm.model": "gpt-4-1106-preview" + "llm.api_base": "https://api.keywordsai.co/api/", + "llm.api_key": "essxYPOB.uYBaWXDZzL9rnJA7CD6r943lgPoBMY7M", + "llm.model": "gpt-4o" } From d3293c28af4ed728ef8e099f5a9e749b6588f842 Mon Sep 17 00:00:00 2001 From: YunhaoLiu1228 Date: Sun, 19 May 2024 19:44:31 -0700 Subject: [PATCH 2/3] Add Keywords AI in the Supported LLMs --- project/taskweaver_config.json | 6 ++--- website/docs/llms/Keywords-AI.md | 39 ++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+), 3 deletions(-) create mode 100644 website/docs/llms/Keywords-AI.md diff --git a/project/taskweaver_config.json b/project/taskweaver_config.json index 269beaa4..293ba878 100644 --- a/project/taskweaver_config.json +++ b/project/taskweaver_config.json @@ -1,5 +1,5 @@ { - "llm.api_base": "https://api.keywordsai.co/api/", - "llm.api_key": "essxYPOB.uYBaWXDZzL9rnJA7CD6r943lgPoBMY7M", - "llm.model": "gpt-4o" + "llm.api_base": "https://api.openai.com/v1", + "llm.api_key": "", + "llm.model": "gpt-4-1106-preview" } diff --git a/website/docs/llms/Keywords-AI.md b/website/docs/llms/Keywords-AI.md new file mode 100644 index 00000000..d635e180 --- /dev/null +++ b/website/docs/llms/Keywords-AI.md @@ -0,0 +1,39 @@ +--- +description: Using LLMs from Keywords AI and have better observability. +--- + + +# Keywords AI + +:::info +[Keywords AI](https://keywordsai.co/) is a unified developer platform where you can call 150+ LLM using the OpenAI format with one API key and get insights into your AI products. With 2 lines of code, you can build better AI products with complete observability. +::: + + +1. Sign in [Keywords AI](https://keywordsai.co/) and generate an API key to call 150+ LLMs. + +:::tip +The full list of supported models by Keywords AI can be found in the [page](https://platform.keywordsai.co/platform/models). +::: + + +2. Add the following content to your `taskweaver_config.json` file: + +```json showLineNumbers +{ + "llm.api_type":"openai", + "llm.api_base": "https://api.keywordsai.co/api/", + "llm.api_key": "Your_Keywords_AI_API_Key", + "llm.model": "gpt-4o", +} +``` + +:::info +If the configuration does not work, please refer to Keywords AI [documents](https://docs.keywordsai.co/get-started/quick-start) to locally test whether you can send requests to the LLM. +::: + + +3. Open a new terminal, start TaskWeaver and chat. +You can refer to the [Quick Start](../quickstart.md) for more details. + +4. Suppose you want your AI products to be more robust and have better observability, such as having fallback models when primary models fail or knowing more about user activities. In that case, you can add parameters like fallback_models and customer_identifier in the extra_body param from OpenAI. \ No newline at end of file From 8a34f2c04b150978156823451bc02352e8ce88c8 Mon Sep 17 00:00:00 2001 From: YunhaoLiu1228 Date: Sun, 19 May 2024 19:47:14 -0700 Subject: [PATCH 3/3] Add Keywords AI in the Supported LLMs --- website/sidebars.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/sidebars.js b/website/sidebars.js index 0666cd73..4f34ebdc 100644 --- a/website/sidebars.js +++ b/website/sidebars.js @@ -75,7 +75,7 @@ const sidebars = { }, collapsible: true, collapsed: true, - items: ['llms/openai', 'llms/aoai', 'llms/liteLLM', 'llms/ollama', 'llms/gemini', 'llms/qwen', 'llms/glm', 'llms/customized_llm_api', 'llms/multi-llm'], + items: ['llms/openai', 'llms/aoai', 'llms/liteLLM', 'llms/ollama', 'llms/gemini', 'llms/qwen', 'llms/glm','llms/Keywords-AI', 'llms/customized_llm_api', 'llms/multi-llm'], }, { type: 'category',