-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathconfig_examples.yml
More file actions
117 lines (100 loc) · 3.08 KB
/
config_examples.yml
File metadata and controls
117 lines (100 loc) · 3.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# Copyright 2023 American Express Travel Related Services Company, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
# in compliance with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software distributed under the License
# is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
# or implied. See the License for the specific language governing permissions and limitations under
# the License.
# Example configurations for various scenarios
# 1. DIRECT API ACCESS (No EAS)
# Simply omit the EAS configuration
models:
# OpenAI Models
'gpt-4':
provider: openai
type: chat
model_name: gpt-4
'gpt-3.5':
provider: openai
type: chat
model_name: gpt-3.5-turbo
'o4-mini':
provider: openai
type: chat
model_name: o4-mini-2025-04-16
# Anthropic Models
'claude-3-opus':
provider: anthropic
type: chat
model_name: claude-3-opus-20240229
'claude-3-sonnet':
provider: anthropic
type: chat
model_name: claude-3-sonnet-20240229
# Google Models
'gemini-pro':
provider: google
type: chat
model_name: gemini-pro
# Custom API endpoint (e.g., local proxy, custom deployment)
'custom-gpt4':
provider: openai
type: chat
model_name: gpt-4
api_base: https://my-company-proxy.com/v1
# Custom environment variable for API key
'team-gpt':
provider: openai
type: chat
model_name: gpt-4
api_key_env: TEAM_OPENAI_KEY
# 2. AZURE OPENAI WITH EAS (Enterprise)
eas:
url: https://auth.company.com
scope: ["/api/v1/chat/**::post"]
originator_source: my-app
id_key: CONSUMER_ID
secret_key: CONSUMER_SECRET
token_refresh_interval: 60
models:
'azure-gpt4':
provider: openai
type: azure
engine: gpt-4
model_name: gpt-4
api_version: 2023-07-01-preview
api_base: https://my-instance.openai.azure.com
# Direct access model (bypasses EAS even when configured)
'direct-claude':
provider: anthropic
type: chat
model_name: claude-3-opus-20240229
bypass_eas: true
# 3. MIXED CONFIGURATION
# Some models use EAS, others use direct access
eas:
id_key: CONSUMER_ID
secret_key: CONSUMER_SECRET
models:
# Uses EAS
'corporate-gpt4':
provider: openai
type: azure
engine: gpt-4
model_name: gpt-4
api_base: https://corporate.openai.azure.com
# Direct access (non-OpenAI providers always bypass EAS)
'public-claude':
provider: anthropic
type: chat
model_name: claude-3-opus-20240229
# OpenAI with bypass_eas flag
'public-gpt4':
provider: openai
type: chat
model_name: gpt-4
bypass_eas: true