Skip to content

Commit

Permalink
fix: no samplers for default OpenAI template
Browse files Browse the repository at this point in the history
  • Loading branch information
Vali-98 committed Dec 1, 2024
1 parent 0e0106d commit e54ae17
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion constants/API/DefaultAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,16 @@ export const defaultTemplates: APIConfiguration[] = [

request: {
requestType: 'stream',
samplerFields: [],
samplerFields: [
{ externalName: 'max_context_length', samplerID: SamplerID.CONTEXT_LENGTH },
{ externalName: 'max_tokens', samplerID: SamplerID.GENERATED_LENGTH },
{ externalName: 'stream', samplerID: SamplerID.STREAMING },
{ externalName: 'temperature', samplerID: SamplerID.TEMPERATURE },
{ externalName: 'top_p', samplerID: SamplerID.TOP_P },
{ externalName: 'presence_penalty', samplerID: SamplerID.PRESENCE_PENALTY },
{ externalName: 'frequency_penalty', samplerID: SamplerID.FREQUENCY_PENALTY },
{ externalName: 'seed', samplerID: SamplerID.SEED },
],
completionType: {
type: 'chatCompletions',
userRole: 'user',
Expand Down

0 comments on commit e54ae17

Please sign in to comment.