18 Commits

Author SHA1 Message Date
Peter Dave Hello
bf4bce32c1 Replace the retiring Azure OpenAI API version with the GA version (#94)
Reference:
- https://learn.microsoft.com/en-us/azure/ai-services/openai/api-version-deprecation#retiring-soon
2024-05-23 18:50:39 +08:00
Peter Dave Hello
7a8ff2ceb0 Make openaiModelMapper optional in the init process (#97)
Modify the initialization condition in `azure/init.go` to allow the
`openaiModelMapper` environment variable to be optional. This change
facilitates configurations where the model mapper is not needed, and
improving flexibility.

Resolves: #95
2024-05-23 18:50:06 +08:00
Xinhao Zhuang
c40e27c3b4 feat: ability to mimic /v1/models/ api (#68)
* add: ability to mimic `/v1/models/` api

* fix: missing json dependency

* fix: accidentally remove dependency

* fix: linter error caught by gh workflow
2023-09-27 19:20:26 +08:00
Xinhao Zhuang
80330ec62a add: print req body on err resp (#67) 2023-09-27 19:05:53 +08:00
Zhiqiang Li
7a8ef96d1f feat: add azure proxy 2023-09-26 13:16:57 +08:00
Zhiqiang Li
e3cd10288d feat: optimize read config file 2023-09-20 02:49:55 +08:00
warjiang
857d7e0e99 Fix apibase (#43)
* 🐛 set `api_base=/v1` as default value

* 🐛 fix EndpointUrl=nil when `InitFromEnvironmentVariables`

*  add notebook examples

* 💚 fix ci err, fmt for log.Fatalf
2023-06-16 10:16:01 +08:00
warjiang
9ba3a1e89e 🧱 update router 2023-06-15 15:57:58 +08:00
warjiang
932eefebfd 🧱 unify azure config from env or yaml file 2023-06-15 15:57:53 +08:00
warjiang
8f6b8efc11 🧱 add model support multi deployment with multi model 2023-06-15 15:57:47 +08:00
Zhiqiang Li
3828aed90c fix: CORS 2023-04-26 17:20:52 +08:00
Zhiqiang Li
a5fa6ca34d fix: OPTIONS req err 2023-04-25 17:21:45 +08:00
Zhiqiang Li
7351a8982d feat: add version output 2023-04-04 14:48:33 +08:00
Zhiqiang Li
808e9b7436 chore: remove comment 2023-03-30 19:32:18 +08:00
Zhiqiang Li
1e1d5eaf1b feat: remove pkg dir 2023-03-30 17:01:35 +08:00
Zhiqiang Li
656a7d1f1c feat: code clean 2023-03-30 16:55:15 +08:00
Zhiqiang Li
473f78fab4 feat: update readme 2023-03-28 14:43:50 +08:00
Zhiqiang Li
1968022907 feat: support multi model 2023-03-28 14:34:21 +08:00