|
| 1 | +// |
| 2 | +// OpenAIModel.swift |
| 3 | +// |
| 4 | +// Created by Nico Tranquilli on 05/02/23. |
| 5 | +// |
| 6 | + |
| 7 | +import Foundation |
| 8 | + |
| 9 | +public enum OpenAIAPIModel { |
| 10 | + case text_davinci_003 |
| 11 | + case text_davinci_002 |
| 12 | + case text_davinci_001 |
| 13 | + |
| 14 | + case text_curie_001 |
| 15 | + case text_babbage_001 |
| 16 | + case text_ada_001 |
| 17 | + |
| 18 | + case text_davinci_edit_001 |
| 19 | + case text_davinci_insert_002 |
| 20 | + case text_davinci_insert_001 |
| 21 | + |
| 22 | + case code_davinci_002 |
| 23 | + case code_cushman_001 |
| 24 | + |
| 25 | + case code_davinci_edit_001 |
| 26 | + |
| 27 | + case text_search_babbage_doc_001 |
| 28 | + case text_search_curie_doc_001 |
| 29 | + case text_search_curie_query_001 |
| 30 | + case text_search_davinci_doc_001 |
| 31 | + case text_search_babbage_query_001 |
| 32 | + case text_search_ada_query_001 |
| 33 | + case text_search_ada_doc_001 |
| 34 | + case text_search_davinci_query_001 |
| 35 | + |
| 36 | + case text_similarity_davinci_001 |
| 37 | + case text_similarity_curie_001 |
| 38 | + case text_similarity_ada_001 |
| 39 | + case text_similarity_babbage_001 |
| 40 | + |
| 41 | + case text_embedding_ada_002 |
| 42 | + |
| 43 | + case babbage |
| 44 | + case ada |
| 45 | + case davinci |
| 46 | + case curie |
| 47 | + |
| 48 | + case davinci_similarity |
| 49 | + case babbage_similarity |
| 50 | + case ada_similarity |
| 51 | + case curie_similarity |
| 52 | + |
| 53 | + case babbage_code_search_text |
| 54 | + case ada_code_search_text |
| 55 | + |
| 56 | + case babbage_code_search_code |
| 57 | + case ada_code_search_code |
| 58 | + |
| 59 | + case curie_search_query |
| 60 | + case babbage_search_query |
| 61 | + case davinci_search_query |
| 62 | + case ada_search_query |
| 63 | + |
| 64 | + case code_search_babbage_text_001 |
| 65 | + case code_search_ada_text_001 |
| 66 | + |
| 67 | + case code_search_babbage_code_001 |
| 68 | + case code_search_ada_code_001 |
| 69 | + |
| 70 | + case davinci_search_document |
| 71 | + case curie_search_document |
| 72 | + case babbage_search_document |
| 73 | + case ada_search_document |
| 74 | + |
| 75 | + case davinci_instruct_beta |
| 76 | + case curie_instruct_beta |
| 77 | + |
| 78 | + public var name: String { |
| 79 | + return String(describing: self).replacingOccurrences(of: "_", with: "-") |
| 80 | + } |
| 81 | +} |
0 commit comments