Browse Source

Update try_orc readme

pull/2569/head
gagb 2 years ago
parent
commit
59ab0f2bb2
2 changed files with 30 additions and 0 deletions
  1. +21
    -0
      samples/apps/try_orc/OAI_CONFIG_LIST_sample
  2. +9
    -0
      samples/apps/try_orc/README.md

+ 21
- 0
samples/apps/try_orc/OAI_CONFIG_LIST_sample View File

@@ -0,0 +1,21 @@
[
{
"model": "gpt-4",
"api_key": "<your OpenAI API key here>",
"tags": ["gpt-4", "tool"]
},
{
"model": "<your Azure OpenAI deployment name>",
"api_key": "<your Azure OpenAI API key here>",
"base_url": "<your Azure OpenAI API base here>",
"api_type": "azure",
"api_version": "2024-02-15-preview"
},
{
"model": "<your Azure OpenAI deployment name>",
"api_key": "<your Azure OpenAI API key here>",
"base_url": "<your Azure OpenAI API base here>",
"api_type": "azure",
"api_version": "2024-02-15-preview"
}
]

+ 9
- 0
samples/apps/try_orc/README.md View File

@@ -25,6 +25,15 @@ The application should be run in a virtual environment to ensure that its depend

### Running the Application

First you need to set up your LLM keys and configuration. You can do this by
creating a file called `OAI_CONFIG_LIST` or export an environment variable
with the same name and content. Its basically a JSON string that defines
various properties like model names, api keys, base urls, etc.

Please see the contents of `OAI_CONFIG_LIST_sample` in this directory for an example.
Modify it with your keys and configuration and rename it to `OAI_CONFIG_LIST`.


Once you've installed the required packages, you can run the application with the following command:

```bash


Loading…
Cancel
Save