Compare commits

...
6 Commits
Author SHA1 Message Date
denisj3030andGitHub 49dfbf7f14 Merge branch 'main' into ocr 2025-05-23 13:31:37 -04:00
denisj3030 f0d75e59e1 small fixed 2025-05-23 17:27:59 +00:00
denisj3030 9dea76a52a fix codestral ver 2025-05-23 15:42:46 +00:00
denisj3030 2e56b498ec fix missing ] 2025-05-23 15:24:06 +00:00
denisj3030 d66ae4cb78 adding mistral ocr 2025-05-23 14:10:50 +00:00
denisj3030 5001259780 adding mistral ocr 2025-05-23 14:02:11 +00:00
@@ -174,7 +174,7 @@
},
"outputs": [],
"source": [
"MODEL = \"mistral-small-2503\" # @param [\"mistral-small-2503\", \"codestral-2501\", \"mistral-large-2411\", \"mistral-nemo\"]\n",
"MODEL = \"mistral-small-2503\" # @param [\"mistral-small-2503\", \"codestral-2501\", \"mistral-large-2411\", \"mistral-nemo\", \"mistral-ocr-2505\"]\n",
"if MODEL == \"mistral-small-2503\":\n",
" available_regions = [\"europe-west4\", \"us-central1\"]\n",
" available_versions = [\"latest\"]\n",
@@ -983,12 +983,12 @@
" access_token=access_token, region=LOCATION, project_id=PROJECT_ID\n",
")\n",
"\n",
"MODEL = \"codestral\"\n",
"MODEL = \"codestral-2501\"\n",
"MODEL_VERSION = \"2501\"\n",
"\n",
"try:\n",
" resp = client.fim.complete(\n",
" model=f\"{MODEL}-{MODEL_VERSION}\",\n",
" model=f\"{MODEL}\",\n",
" prompt=\"def count_words_in_file(file_path: str) -> int\",\n",
" suffix=\"return n_words\",\n",
" )\n",