Skip to content

Commit

Permalink
feat: add openai , azure openai and codellama env sample
Browse files Browse the repository at this point in the history
  • Loading branch information
imotai committed Oct 2, 2023
1 parent 0808899 commit 98f9364
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 32 deletions.
68 changes: 36 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,42 @@ You can use /help to look for help
[1]🎧>
```
## Development


Prepare the environment

```
git clone https://github.com/dbpunk-labs/octogen.git
cd octogen
python3 -m venv octogen_venv
source octogen_venv/bin/activate
pip install -r requirements.txt
```

Run the sandbox including Agent with mock model and Kernel

```
$ bash start_sandbox.sh
$ og
Welcome to use octogen❤️ . To ask a programming question, simply type your question and press esc +
enter
Use /help for help
[1]🎧>hello
╭─ 🐙Octogen ─────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ 0 🧠 how can I help you today? │
│ │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────╯
[2]🎧>
```

Use openai for development, just update the config in the `start_sandbox.sh` with the example of [openai-env.example](./env_sample/openai_env.sample)
Use azure openai for development, just update the config in the `start_sandbox.sh` with the example of [azure-env.example](./env_sample/azure_env.sample)
Use codellama for development, just update the config in the `start_sandbox.sh` with the example of [codellama-env.example](./env_sample/codellama_env.sample)

## Supported API Service

Expand Down Expand Up @@ -94,36 +130,4 @@ if you have any feature suggestion. please create a discuession to talk about it

* [roadmap for v0.5.0](https://github.com/dbpunk-labs/octogen/issues/64)

## Development


Prepare the environment

```
git clone https://github.com/dbpunk-labs/octogen.git
cd octogen
python3 -m venv octogen_venv
source octogen_venv/bin/activate
pip install -r requirements.txt
```

Run the sandbox including Agent with mock model and Kernel

```
$ bash start_sandbox.sh
$ og
Welcome to use octogen❤️ . To ask a programming question, simply type your question and press esc +
enter
Use /help for help
[1]🎧>hello
╭─ 🐙Octogen ─────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ 0 🧠 how can I help you today? │
│ │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────╯
[2]🎧>
```

2 changes: 2 additions & 0 deletions env_sample/azure_env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ db_path=/tmp/octopus.db
llm_key=azure_openai
openai_api_type=azure
openai_api_version=2023-07-01-preview
# tha api key
openai_api_key=api_key
# the azure api base
openai_api_base=base_url
# the deployment_name
openai_api_deployment=deployment_name
Expand Down
14 changes: 14 additions & 0 deletions env_sample/codellama_env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
rpc_host=127.0.0.1
rpc_port=9528
admin_key=gennerate_admin_key
max_file_size=202400000
max_iterations=8
# the sqlite db path
db_path=/tmp/octogen.db
llm_key=codellama
# the llama cpp server
llama_api_base=http://127.0.0.1:8080
max_file_size=202400000
max_iterations=8
log_level=debug

2 changes: 2 additions & 0 deletions env_sample/openai_env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ max_file_size=10240000
verbose=True
db_path=/tmp/octopus.db
llm_key=openai
# the openai api mode name
openai_api_model=model_nama
# the openai api key
openai_api_key=api_key
max_iterations=10
log_level=debug

0 comments on commit 98f9364

Please sign in to comment.