-
Notifications
You must be signed in to change notification settings - Fork 701
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add more LLM docs and improve format
- Loading branch information
Showing
14 changed files
with
149 additions
and
82 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
description: Using LLMs from OpenAI/AOAI | ||
--- | ||
# Azure OpenAI | ||
|
||
1. Create an account on [Azure OpenAI](https://azure.microsoft.com/en-us/products/ai-services/openai-service) and get your API key. | ||
2. Add the following to your `taskweaver_config.json` file: | ||
```json showLineNumbers | ||
{ | ||
"llm.api_base":"YOUR_AOAI_ENDPOINT", | ||
"llm.api_key":"YOUR_API_KEY", | ||
"llm.api_type":"azure", | ||
"llm.auth_mode":"api-key", | ||
"llm.model":"gpt-4-1106-preview", | ||
"llm.response_format": "json_object" | ||
} | ||
``` | ||
|
||
:::tip | ||
`llm.model` is the model name you want to use. | ||
You can find the list of models [here](https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models). | ||
::: | ||
|
||
:::info | ||
For `gpt-4-1106-preview` and `gpt-3.5-turbo-1106`, `llm.response_format` can be set to `json_object`. | ||
However, for the earlier models, which do not support JSON response explicitly, `llm.response_format` should be set to `null`. | ||
::: | ||
|
||
3. Start TaskWeaver and chat with TaskWeaver. | ||
You can refer to the [Quick Start](../quickstart.md) for more details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Gemini | ||
|
||
1. Create an account on [Google AI](https://ai.google.dev/) and get your API key. | ||
2. Add the following content to your `taskweaver_config.json` file: | ||
```json showLineNumbers | ||
{ | ||
"llm.api_type": "google_genai", | ||
"llm.google_genai.api_key": "YOUR_API_KEY", | ||
"llm.google_genai.model": "gemini-pro" | ||
} | ||
``` | ||
|
||
|
||
3. Start TaskWeaver and chat with TaskWeaver. | ||
You can refer to the [Quick Start](../quickstart.md) for more details. | ||
|
||
|
||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
description: Using LLMs from OpenAI | ||
--- | ||
# OpenAI | ||
|
||
1. Create an account on [OpenAI](https://beta.openai.com/) and get your [API key](https://platform.openai.com/api-keys). | ||
2. Add the following to your `taskweaver_config.json` file: | ||
```json showLineNumbers | ||
{ | ||
"llm.api_type":"openai", | ||
"llm.api_base": "https://api.openai.com/v1", | ||
"llm.api_key": "YOUR_API_KEY", | ||
"llm.model": "gpt-4-1106-preview", | ||
"llm.response_format": "json_object" | ||
} | ||
``` | ||
:::tip | ||
`llm.model` is the model name you want to use. | ||
You can find the list of models [here](https://platform.openai.com/docs/models). | ||
::: | ||
|
||
:::info | ||
For `gpt-4-1106-preview` and `gpt-3.5-turbo-1106`, `llm.response_format` can be set to `json_object`. | ||
However, for the earlier models which do not support JSON response explicitly, `llm.response_format` should be set to `null`. | ||
::: | ||
3. Start TaskWeaver and chat with TaskWeaver. | ||
You can refer to the [Quick Start](../quickstart.md) for more details. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters