devme commited on
Commit
3d4e1c7
·
verified ·
1 Parent(s): 81cf97e

Delete config.py

Browse files
Files changed (1) hide show
  1. config.py +0 -40
config.py DELETED
@@ -1,40 +0,0 @@
1
- """
2
- Amazon Q API 配置文件
3
- 包含请求模板和默认配置
4
- """
5
-
6
- # Amazon Q API 端点
7
- AMAZONQ_API_URL = "https://q.us-east-1.amazonaws.com/"
8
-
9
- # 默认请求头模板
10
- DEFAULT_HEADERS = {
11
- "content-type": "application/x-amz-json-1.0",
12
- "x-amz-target": "AmazonCodeWhispererStreamingService.GenerateAssistantResponse",
13
- "user-agent": "aws-sdk-rust/1.3.9 ua/2.1 api/codewhispererstreaming/0.1.11582 os/windows lang/rust/1.87.0 md/appVersion-1.19.4 app/AmazonQ-For-CLI",
14
- "x-amz-user-agent": "aws-sdk-rust/1.3.9 ua/2.1 api/codewhispererstreaming/0.1.11582 os/windows lang/rust/1.87.0 m/F app/AmazonQ-For-CLI",
15
- "x-amzn-codewhisperer-optout": "false",
16
- "amz-sdk-request": "attempt=1; max=3"
17
- }
18
-
19
- # 默认请求体模板(仅作为结构参考,实际使用时会被 raw_payload 替换)
20
- DEFAULT_BODY_TEMPLATE = {
21
- "conversationState": {
22
- "conversationId": "", # 运行时动态生成
23
- "history": [],
24
- "currentMessage": {
25
- "userInputMessage": {
26
- "content": "",
27
- "userInputMessageContext": {
28
- "envState": {
29
- "operatingSystem": "windows",
30
- "currentWorkingDirectory": ""
31
- },
32
- "tools": []
33
- },
34
- "origin": "CLI",
35
- "modelId": "claude-sonnet-4"
36
- }
37
- },
38
- "chatTriggerType": "MANUAL"
39
- }
40
- }