Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
84d00fb7
authored
Sep 26, 2025
by
Seefs
Committed by
GitHub
Sep 26, 2025
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1882 from ShibaInu64/feature/nova-model
feat: 新增支持目前已发布的amazon nova model
parents
0637aee1
a069d03e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
1 deletions
+22
-1
relay/channel/aws/constants.go
+22
-1
No files found.
relay/channel/aws/constants.go
View file @
84d00fb7
...
...
@@ -21,6 +21,10 @@ var awsModelIDMap = map[string]string{
"nova-lite-v1:0"
:
"amazon.nova-lite-v1:0"
,
"nova-pro-v1:0"
:
"amazon.nova-pro-v1:0"
,
"nova-premier-v1:0"
:
"amazon.nova-premier-v1:0"
,
"nova-canvas-v1:0"
:
"amazon.nova-canvas-v1:0"
,
"nova-reel-v1:0"
:
"amazon.nova-reel-v1:0"
,
"nova-reel-v1:1"
:
"amazon.nova-reel-v1:1"
,
"nova-sonic-v1:0"
:
"amazon.nova-sonic-v1:0"
,
}
var
awsModelCanCrossRegionMap
=
map
[
string
]
map
[
string
]
bool
{
...
...
@@ -82,10 +86,27 @@ var awsModelCanCrossRegionMap = map[string]map[string]bool{
"apac"
:
true
,
},
"amazon.nova-premier-v1:0"
:
{
"us"
:
true
,
},
"amazon.nova-canvas-v1:0"
:
{
"us"
:
true
,
"eu"
:
true
,
"apac"
:
true
,
},
"amazon.nova-reel-v1:0"
:
{
"us"
:
true
,
"eu"
:
true
,
"apac"
:
true
,
},
"amazon.nova-reel-v1:1"
:
{
"us"
:
true
,
},
"amazon.nova-sonic-v1:0"
:
{
"us"
:
true
,
"eu"
:
true
,
"apac"
:
true
,
}}
},
}
var
awsRegionCrossModelPrefixMap
=
map
[
string
]
string
{
"us"
:
"us"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment