Skip to content

Commit 2ab2968

Browse files
committed
chore: use OpenAI instead of Azure OpenAI
Signed-off-by: CHEN, CHUN <[email protected]>
1 parent b68d901 commit 2ab2968

16 files changed

+22
-38
lines changed

.env_sample

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
AZURE_OPENAI_ENDPOINT=https://your.openai.azure.com
2-
AZURE_OPENAI_API_KEY=fakekey
3-
AZURE_OPENAI_DEPLOYMENT=gpt-4o
1+
OPENAI_ENDPOINT=https://your.openai.azure.com
2+
OPENAI_API_KEY=fakekey
3+
OPENAI_DEPLOYMENT=gpt-4o

.vscode/settings.json

+5-7
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,13 @@
1313
"toolsai",
1414
"Waifu"
1515
],
16-
"prompty.currentModelConfiguration": "default",
16+
"prompty.currentModelConfiguration": "${env:OPENAI_DEPLOYMENT}",
1717
"prompty.modelConfigurations": [
1818
{
19-
"name": "default",
20-
"type": "azure_openai",
21-
"api_version": "2024-08-01-preview",
22-
"azure_endpoint": "${env:AZURE_OPENAI_ENDPOINT}",
23-
"azure_deployment": "${env:AZURE_OPENAI_DEPLOYMENT}",
24-
"api_key": "${env:AZURE_OPENAI_API_KEY}"
19+
"name": "${env:OPENAI_DEPLOYMENT}",
20+
"type": "openai",
21+
"base_url": "${env:OPENAI_ENDPOINT}",
22+
"api_key": "${env:OPENAI_API_KEY}"
2523
}
2624
]
2725
}

automated-prompt-engineering/0_basic.prompty

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ name: Automated Prompt Engineering
33
description: 👋 I'm here to help you create effective prompts! 🎯
44
model:
55
configuration:
6-
type: azure_openai
7-
azure_deployment: gpt-4o-mini
6+
name: gpt-4o-mini
87
sample:
98
USER_INPUT: 你使用什麼樣的技術來最佳化提示詞呢?
109
---

automated-prompt-engineering/scoring-criteria-maker/1_basic.prompty

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ model:
66
response_format:
77
type: json_object
88
configuration:
9-
type: azure_openai
10-
azure_deployment: gpt-o1-mini
9+
name: gpt-4o
1110
outputs:
1211
goal_analysis:
1312
type: string

automated-prompt-engineering/scoring-criteria-maker/2_is-score-complete.prompty

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ name: Scoring Criteria Maker
33
description: This bot is part of Automated Prompt Engineering, designed to generate the scoring criteria.
44
model:
55
configuration:
6-
type: azure_openai
7-
azure_deployment: gpt-4o-mini
6+
name: gpt-4o-mini
87
parameters:
98
response_format:
109
type: json_object

automated-prompt-engineering/scoring-criteria-maker/3_scoring-rubric.prompty

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ name: Scoring Criteria Maker
33
description: This bot is part of Automated Prompt Engineering, designed to generate the scoring criteria.
44
model:
55
configuration:
6-
type: azure_openai
7-
azure_deployment: gpt-4o-mini
6+
name: gpt-4o-mini
87
outputs:
98
scoring_rubric:
109
type: string

c-sharp-ai-buddy/0_collate-user-input-for-knowledge.prompty

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ description: |
66
🚀 無論你是初學者還是資深開發者,C# AI Buddy 都將成為你開發旅程中不可或缺的得力助手!
77
model:
88
configuration:
9-
type: azure_openai
10-
azure_deployment: gpt-4o-mini
9+
name: gpt-4o-mini
1110
sample:
1211
input: |
1312
教我 DI 依頼注入

c-sharp-ai-buddy/0_collate-user-input-for-search.prompty

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ description: |
66
🚀 無論你是初學者還是資深開發者,C# AI Buddy 都將成為你開發旅程中不可或缺的得力助手!
77
model:
88
configuration:
9-
type: azure_openai
10-
azure_deployment: gpt-4o-mini
9+
name: gpt-4o-mini
1110
sample:
1211
input: |
1312
如何使用 YARP 處理 Angular SPA 重導向?

english-textbook-generation-assistant/0_basic.prompty

+1-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ model:
3434
type: boolean
3535
type: object
3636
configuration:
37-
type: azure_openai
38-
azure_deployment: gpt-4o-mini
37+
name: gpt-4o-mini
3938
inputs:
4039
USER_INPUT:
4140
type: string

english-textbook-generation-assistant/1_vocabulary_introducer.prompty

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ description: |
1414
目前不支援修改故事,每一次的交談都會產生新的故事。**請在同一次交談中完整交代所有需求。**
1515
model:
1616
configuration:
17-
type: azure_openai
18-
azure_deployment: gpt-4o-mini
17+
name: gpt-4o-mini
1918
inputs:
2019
vocabularies:
2120
type: array

english-textbook-generation-assistant/3_textbook_translator.prompty

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ description: |
1414
目前不支援修改故事,每一次的交談都會產生新的故事。**請在同一次交談中完整交代所有需求。**
1515
model:
1616
configuration:
17-
type: azure_openai
18-
azure_deployment: gpt-4o-mini
17+
name: gpt-4o-mini
1918
inputs:
2019
input:
2120
type: string

jackellie-help-bot/0_extract-the-key-words-from-user-input-llm.prompty

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
name: JackEllie Help bot
33
model:
44
configuration:
5-
type: azure_openai
6-
azure_deployment: gpt-4o-mini
5+
name: gpt-4o-mini
76
sample:
87
input: |
98
如何安裝 Stable Diffusion WebUI Forge?

rust-ai-buddy/0_extract-the-keywords-from-user-input.prompty

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ description: |
66
🚀 無論你是初學者還是經驗豐富的開發者,Rust AI Buddy 都將成為你 Coding 之旅中不可或缺的得力助手!
77
model:
88
configuration:
9-
type: azure_openai
10-
azure_deployment: gpt-4o-mini
9+
name: gpt-4o-mini
1110
sample:
1211
input: |
1312
用簡單易懂的方式解釋 Rust 語言中的 "if let"

rust-ai-buddy/0_rephrase-for-search-from-user-input.prompty

+1-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ model:
99
response_format:
1010
type: json_object
1111
configuration:
12-
type: azure_openai
13-
azure_deployment: gpt-4o-mini
12+
name: gpt-4o-mini
1413
outputs:
1514
queries:
1615
type: List[string]

trash-novel-generator/0_basic.prompty

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ name: 垃圾小說產生器
33
description: 📚 探索無限可能的廁紙 🗑️
44
model:
55
configuration:
6-
type: azure_openai
7-
azure_deployment: gpt-4o-mini
6+
name: gpt-4o-mini
87
parameters:
98
tools:
109
- type: function

trash-novel-generator/0_check_contain_code.prompty

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ name: 垃圾小說產生器
33
description: 📚 探索無限可能的廁紙 🗑️
44
model:
55
configuration:
6-
type: azure_openai
7-
azure_deployment: gpt-4o-mini
6+
name: gpt-4o-mini
87
parameters:
98
response_format:
109
type: json_object

0 commit comments

Comments
 (0)