Skip to content

Commit

Permalink
feat: added max_tokens field to Cohere API
Browse files Browse the repository at this point in the history
  • Loading branch information
Vali-98 committed Aug 11, 2024
1 parent 5807bf5 commit 8ae9760
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/constants/APIState/CohereAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { APIBase, APISampler } from './BaseAPI'
class CohereAPI extends APIBase {
samplers: APISampler[] = [
{ 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: 'p', samplerID: SamplerID.TOP_P },
Expand Down

0 comments on commit 8ae9760

Please sign in to comment.