mirror of
https://github.com/DayuanJiang/next-ai-draw-io.git
synced 2026-09-01 17:10:24 +08:00
Add Atlas Cloud provider support (#896)
* Add Atlas Cloud provider support * fix: restore files removed by Atlas provider PR --------- Co-authored-by: binyangzhu000-sudo <224954946+binyangzhu000-sudo@users.noreply.github.com>
This commit is contained in:
@@ -39,6 +39,22 @@ describe("ServerModelsConfigSchema", () => {
|
||||
expect(() => ServerModelsConfigSchema.parse(config)).not.toThrow()
|
||||
})
|
||||
|
||||
it("accepts Atlas Cloud provider names", () => {
|
||||
const config: ServerModelsConfig = {
|
||||
providers: [
|
||||
{
|
||||
name: "Atlas Cloud Server",
|
||||
provider: "atlascloud",
|
||||
models: ["qwen/qwen3.5-flash"],
|
||||
apiKeyEnv: "ATLASCLOUD_API_KEY",
|
||||
baseUrlEnv: "ATLASCLOUD_BASE_URL",
|
||||
},
|
||||
],
|
||||
}
|
||||
|
||||
expect(() => ServerModelsConfigSchema.parse(config)).not.toThrow()
|
||||
})
|
||||
|
||||
it("rejects invalid provider names", () => {
|
||||
const invalidConfig = {
|
||||
providers: [
|
||||
|
||||
Reference in New Issue
Block a user