CitizensFoundation / policy-synth

Policy Synth is a Typescript class library for creating multi-scale AI agent logic flows, API's and state of the art realtime web applications. The drive behind the project is to help governments and citizens make better decisions together by seamlessly integrating collective and artificial intelligence.
https://policy-synth.ai
MIT License
41 stars 5 forks source link

Update LLM model base class for model name and set default for all LLM models #19

Closed rbjarnason closed 5 months ago

rbjarnason commented 5 months ago

Task Description Update src/models/baseChatModel.ts, src/models/clauseOpusChat.ts, src/models/azureOpenAiChat.ts and src/models/openAiChat.ts to use this.modelName

Task Instructions

  1. Change src/models/baseChatModel.ts to add a modelName string attribute string | TiktokenModel and should be set in the constructor
  2. Change src/models/clauseOpusChat.ts to default to "claude-3-opus-20240229" for this.modelName
  3. Change src/models/azureOpenAiChat.ts to default to "gpt-4o"
  4. Change src/models/openAiChat.ts also to default to "gpt-4o"
  5. Change src/models/googleGeminiChat.ts to default to "gemini-pro" for this.modelName in its constructor but use can provide their own, same for the other models