Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extend OpenAI provider to accept Organization and Project
Fixes block#1067 Extend the OpenAI provider to accept `openai_organization` and `openai_project` as new configuration keys. * Add `openai_organization` and `openai_project` to the `Settings` struct in `crates/goose-server/src/configuration.rs`. * Update the `test_socket_addr_conversion` function in `crates/goose-server/src/configuration.rs` to include `openai_organization` and `openai_project`. * Add `openai_organization` and `openai_project` to the `OpenAiProvider` struct in `crates/goose/src/providers/openai.rs`. * Update the `from_env` function in `crates/goose/src/providers/openai.rs` to load `openai_organization` and `openai_project`. * Modify the `post` function in `crates/goose/src/providers/openai.rs` to include `openai_organization` and `openai_project` in the request headers. * Add `OPENAI_ORGANIZATION` and `OPENAI_PROJECT` to the configuration keys in `crates/goose/src/providers/openai.rs`. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/block/goose/issues/1067?shareId=XXXX-XXXX-XXXX-XXXX).
- Loading branch information