-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: update openai adapter cookbook * chore: add openai adapter in inference.md * chore: add qianfan openai model mapping usage in cookbook * chore: fix md * chore: add openai_conf.yaml * chore: fix quicklink * chore: fix quicklink * chore: fix quicklink * chore: fix quicklink * chore: fix install * chore: fix with install
- Loading branch information
Showing
4 changed files
with
54 additions
and
26 deletions.
There are no files selected for viewing
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 @@ | ||
openai_adapter: | ||
# 绑定的 host | ||
host: 0.0.0.0 | ||
# 运行端口 | ||
port: 8001 | ||
# 是否后台运行 | ||
detach: false | ||
# 日志文件路径,不设置则不输出至文件 | ||
log_file: null | ||
# 模型映射,将模型名称从 OpenAI 的模型映射至千帆模型 | ||
# 当所有映射都失败时,会使用原始名称 | ||
# 映射的 key 与 value 均支持正则表达式 | ||
model_mapping: | ||
gpt-3.5.*: ERNIE-3.5-8K | ||
gpt-4.*: ERNIE-4.0-8K | ||
text-embedding.*: Embedding-V1 | ||
# 支持正则替换,如下仅作示意 | ||
# gpt-3.5(.*): ERNIE-3.5\1 |
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