File tree Expand file tree Collapse file tree 2 files changed +25
-2
lines changed Expand file tree Collapse file tree 2 files changed +25
-2
lines changed Original file line number Diff line number Diff line change 11import { ProviderAPIConfig } from '../types' ;
22
33export const dashscopeAPIConfig : ProviderAPIConfig = {
4- getBaseURL : ( ) => 'https://dashscope.aliyuncs.com/compatible-mode/v1' ,
4+ getBaseURL : ( ) => 'https://dashscope-intl .aliyuncs.com/compatible-mode/v1' ,
55 headers ( { providerOptions } ) {
66 const { apiKey } = providerOptions ;
77 return { Authorization : `Bearer ${ apiKey } ` } ;
Original file line number Diff line number Diff line change @@ -8,7 +8,30 @@ import { ProviderConfigs } from '../types';
88import { dashscopeAPIConfig } from './api' ;
99
1010export const DashScopeConfig : ProviderConfigs = {
11- chatComplete : chatCompleteParams ( [ ] , { model : 'qwen-turbo' } ) ,
11+ chatComplete : chatCompleteParams (
12+ [ ] ,
13+ { model : 'qwen-turbo' } ,
14+ {
15+ top_k : {
16+ param : 'top_k' ,
17+ } ,
18+ repetition_penalty : {
19+ param : 'repetition_penalty' ,
20+ } ,
21+ stop : {
22+ param : 'stop' ,
23+ } ,
24+ enable_search : {
25+ param : 'enable_search' ,
26+ } ,
27+ enable_thinking : {
28+ param : 'enable_thinking' ,
29+ } ,
30+ thinking_budget : {
31+ param : 'thinking_budget' ,
32+ } ,
33+ }
34+ ) ,
1235 embed : embedParams ( [ ] , { model : 'text-embedding-v1' } ) ,
1336 api : dashscopeAPIConfig ,
1437 responseTransforms : responseTransformers ( DASHSCOPE , {
You can’t perform that action at this time.
0 commit comments