Skip to content

Commit

Permalink
Update anthropic sonnet model ref to latest, tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
1runeberg committed Oct 25, 2024
1 parent 8dd0b38 commit 84130a1
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 270 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,9 @@ app.*.settings.local

.flutter-plugins
.flutter-plugins-dependencies

# intellij
.idea/

# vscode
.vscode/*
252 changes: 0 additions & 252 deletions confichat/.idea/other.xml

This file was deleted.

34 changes: 19 additions & 15 deletions confichat/.idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion confichat/lib/api_anthropic.dart
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class ApiAnthropic extends LlmApi{
Future<void> getModels(List<ModelItem> outModels) async {

// As of this writing, there doesn't seem to be an api endpoint to grab model names
outModels.add(ModelItem('claude-3-5-sonnet-20240620', 'claude-3-5-sonnet-20240620'));
outModels.add(ModelItem('claude-3-5-sonnet-20241022', 'claude-3-5-sonnet-20241022'));
outModels.add(ModelItem('claude-3-opus-20240229', 'claude-3-opus-20240229'));
outModels.add(ModelItem('claude-3-sonnet-20240229', 'claude-3-sonnet-20240229'));
outModels.add(ModelItem('claude-3-haiku-20240307', 'claude-3-haiku-20240307'));
Expand Down
1 change: 0 additions & 1 deletion confichat/lib/ui_anthropic_options.dart
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ class AnthropicOptionsState extends State<AnthropicOptions> {
}

void _useDefaultSettings() {
//_apiKeyController.text = '';
_applyValues();
}

Expand Down
2 changes: 1 addition & 1 deletion confichat/lib/ui_widgets.dart
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ class ChatBubble extends StatelessWidget {
@override
Widget build(BuildContext context) {

// Check if this is a syustem prompt
// Check if this is a system prompt
if( textData == AppData.ignoreSystemPrompt){ return const SizedBox.shrink(); }

// Parse textData for documents and code files
Expand Down

0 comments on commit 84130a1

Please sign in to comment.