{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":490915757,"defaultBranch":"main","name":"replicate-python","ownerLogin":"replicate","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2022-05-11T01:26:58.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/60410876?v=4","public":true,"private":false,"isOrgOwned":true},"refInfo":{"name":"","listCacheKey":"v0:1716338945.0","currentOid":""},"activityList":{"items":[{"before":null,"after":"3406b015aa0d5e6cac155d856c1508b69f98d864","ref":"refs/heads/add-pr-template","pushedAt":"2024-05-22T00:49:05.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"zeke","name":"Zeke Sikelianos","path":"/zeke","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/2289?s=80&v=4"},"commit":{"message":"add pull request template\n\nSigned-off-by: Zeke Sikelianos ","shortMessageHtmlLink":"add pull request template"}},{"before":"df67837883e9168545700fa6ec198e31db900e11","after":"d69f588d1c39f647f90b6495c7e43b4df311585a","ref":"refs/heads/mattt/delete","pushedAt":"2024-05-14T18:12:09.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"mattt","name":"Mattt","path":"/mattt","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/7659?s=80&v=4"},"commit":{"message":"Add overloads to models.delete method\n\nSigned-off-by: Mattt Zmuda ","shortMessageHtmlLink":"Add overloads to models.delete method"}},{"before":null,"after":"df67837883e9168545700fa6ec198e31db900e11","ref":"refs/heads/mattt/delete","pushedAt":"2024-05-14T18:03:04.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"mattt","name":"Mattt","path":"/mattt","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/7659?s=80&v=4"},"commit":{"message":"Add overloads to models.get method\n\nSigned-off-by: Mattt Zmuda ","shortMessageHtmlLink":"Add overloads to models.get method"}},{"before":"eb3cebf370d0566790821a74f45460c2b24c467b","after":"d8d6a4e8a80e1b9d6f28a8859ce0520d65532d66","ref":"refs/heads/main","pushedAt":"2024-05-14T17:28:12.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"mattt","name":"Mattt","path":"/mattt","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/7659?s=80&v=4"},"commit":{"message":"0.26.0\n\nSigned-off-by: Mattt Zmuda ","shortMessageHtmlLink":"0.26.0"}},{"before":"9d713aaac29a958c1427374fab55c2b79db287a9","after":null,"ref":"refs/heads/mattt/overload-predictions-create","pushedAt":"2024-05-07T16:57:14.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"mattt","name":"Mattt","path":"/mattt","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/7659?s=80&v=4"}},{"before":"c0cf1ec45bed6c7ad4747e449db4c5d2f88ebbbd","after":"eb3cebf370d0566790821a74f45460c2b24c467b","ref":"refs/heads/main","pushedAt":"2024-05-07T16:57:13.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"mattt","name":"Mattt","path":"/mattt","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/7659?s=80&v=4"},"commit":{"message":"Support `predictions.create` with `model`, `version`, or `deployment` parameters (#290)\n\nThis PR updates `predictions.create` to support overloads with `model`,\r\n`version`, or `deployment` parameters. With these changes, API consumers\r\ncan more easily change between official models, model versions, and\r\ndeployments.\r\n\r\n```python\r\nimport replicate\r\n\r\nprediction = replicate.predictions.create(\r\n model=\"meta/meta-llama-3-8b-instruct\",\r\n input={\"prompt\": \"write a haiku about corgis\"},\r\n)\r\n\r\nprediction = replicate.predictions.create(\r\n version=\"39ed52f2a78e934b3ba6e2a89f5b1c712de7dfea535525255b1aa35c5565e08b\",\r\n input={\"prompt\": \"a studio photo of a rainbow colored corgi\"},\r\n)\r\n\r\nprediction = replicate.predictions.create(\r\n deployment=\"my-username/my-embeddings-model\",\r\n input={\"text\": \"hello world\"},\r\n)\r\n```\r\n\r\n---------\r\n\r\nSigned-off-by: Mattt Zmuda ","shortMessageHtmlLink":"Support predictions.create with model, version, or deployment…"}},{"before":"0d31fd79f31af1283b2c3066bdec1c0c956b3827","after":null,"ref":"refs/heads/mattt/bearer","pushedAt":"2024-04-25T11:26:42.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"mattt","name":"Mattt","path":"/mattt","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/7659?s=80&v=4"}},{"before":"301a4ad671f51cafdc5a9ae292273201b0197b53","after":"c0cf1ec45bed6c7ad4747e449db4c5d2f88ebbbd","ref":"refs/heads/main","pushedAt":"2024-04-25T11:26:41.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"mattt","name":"Mattt","path":"/mattt","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/7659?s=80&v=4"},"commit":{"message":"Use Bearer authorization scheme (#295)\n\nReplicate's API now supports the standard [Bearer authentication\r\nscheme](https://swagger.io/docs/specification/authentication/bearer-authentication/).\r\n\r\nhttps://replicate.com/changelog/2024-04-03-bearer-tokens\r\n\r\nFor compatibility with existing clients, the existing `Token` scheme\r\nwill be supported indefinitely. But going forward, the new `Bearer`\r\nscheme is preferred.\r\n\r\nSigned-off-by: Mattt Zmuda ","shortMessageHtmlLink":"Use Bearer authorization scheme (#295)"}},{"before":null,"after":"0d31fd79f31af1283b2c3066bdec1c0c956b3827","ref":"refs/heads/mattt/bearer","pushedAt":"2024-04-25T11:11:29.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"mattt","name":"Mattt","path":"/mattt","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/7659?s=80&v=4"},"commit":{"message":"Use Bearer authorization scheme\n\nSigned-off-by: Mattt Zmuda ","shortMessageHtmlLink":"Use Bearer authorization scheme"}},{"before":"10f1cbd77c99e20022bfce56be1c2018394c750d","after":null,"ref":"refs/heads/bfirsh-patch-1","pushedAt":"2024-04-22T23:43:42.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"bfirsh","name":"Ben Firshman","path":"/bfirsh","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/40906?s=80&v=4"}},{"before":"16c1520cf78414a290dca3e2cfe4079a50c8ed8c","after":"301a4ad671f51cafdc5a9ae292273201b0197b53","ref":"refs/heads/main","pushedAt":"2024-04-22T23:43:41.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"bfirsh","name":"Ben Firshman","path":"/bfirsh","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/40906?s=80&v=4"},"commit":{"message":"Update readme to llama 3","shortMessageHtmlLink":"Update readme to llama 3"}},{"before":null,"after":"10f1cbd77c99e20022bfce56be1c2018394c750d","ref":"refs/heads/bfirsh-patch-1","pushedAt":"2024-04-22T23:43:19.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"bfirsh","name":"Ben Firshman","path":"/bfirsh","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/40906?s=80&v=4"},"commit":{"message":"Update readme to llama 3","shortMessageHtmlLink":"Update readme to llama 3"}},{"before":"38784d59c0841a3666a6358b1df5ff35f90da2e1","after":"e91822a119822b268effad918258826ff870540f","ref":"refs/heads/generate-docs","pushedAt":"2024-04-22T23:29:11.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"deepfates","name":"deepfates","path":"/deepfates","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/58602708?s=80&v=4"},"commit":{"message":"use pdoc3 not pdoc","shortMessageHtmlLink":"use pdoc3 not pdoc"}},{"before":null,"after":"38784d59c0841a3666a6358b1df5ff35f90da2e1","ref":"refs/heads/generate-docs","pushedAt":"2024-04-22T23:27:05.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"deepfates","name":"deepfates","path":"/deepfates","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/58602708?s=80&v=4"},"commit":{"message":"add generated docs","shortMessageHtmlLink":"add generated docs"}},{"before":"571ff91e21c6421c20529ebc381d358d44ea74c6","after":"9d713aaac29a958c1427374fab55c2b79db287a9","ref":"refs/heads/mattt/overload-predictions-create","pushedAt":"2024-04-22T11:42:36.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"mattt","name":"Mattt","path":"/mattt","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/7659?s=80&v=4"},"commit":{"message":"Ignore pylint import-outside-toplevel warning\n\nSigned-off-by: Mattt Zmuda ","shortMessageHtmlLink":"Ignore pylint import-outside-toplevel warning"}},{"before":"2584ffb0613d994275d14399cfb9733bab72cd60","after":"571ff91e21c6421c20529ebc381d358d44ea74c6","ref":"refs/heads/mattt/overload-predictions-create","pushedAt":"2024-04-22T11:40:52.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"mattt","name":"Mattt","path":"/mattt","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/7659?s=80&v=4"},"commit":{"message":"Add test case for specifying model and version and deployment\n\nSigned-off-by: Mattt Zmuda ","shortMessageHtmlLink":"Add test case for specifying model and version and deployment"}},{"before":null,"after":"2584ffb0613d994275d14399cfb9733bab72cd60","ref":"refs/heads/mattt/overload-predictions-create","pushedAt":"2024-04-22T11:16:07.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"mattt","name":"Mattt","path":"/mattt","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/7659?s=80&v=4"},"commit":{"message":"Add new cassettes\n\nSigned-off-by: Mattt Zmuda ","shortMessageHtmlLink":"Add new cassettes"}},{"before":"a745d1529b1a0b3ccd6caae75cd08b22e87a9a49","after":"16c1520cf78414a290dca3e2cfe4079a50c8ed8c","ref":"refs/heads/main","pushedAt":"2024-04-19T21:48:41.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"mattt","name":"Mattt","path":"/mattt","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/7659?s=80&v=4"},"commit":{"message":"0.25.2\n\nSigned-off-by: Mattt Zmuda ","shortMessageHtmlLink":"0.25.2"}},{"before":"35c854443c868c7a1568ffb38400c814edc89ecb","after":null,"ref":"refs/heads/mattt/fix-stream-decoder-initialization","pushedAt":"2024-04-19T21:48:01.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"mattt","name":"Mattt","path":"/mattt","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/7659?s=80&v=4"}},{"before":"4cc05ad2d590b28ecb36ca683a8e15c6dbd9ce67","after":"a745d1529b1a0b3ccd6caae75cd08b22e87a9a49","ref":"refs/heads/main","pushedAt":"2024-04-19T21:48:00.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"mattt","name":"Mattt","path":"/mattt","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/7659?s=80&v=4"},"commit":{"message":"Fix initialization of stream decoder (#288)\n\nFixes #287 \r\n\r\nGiven the following code:\r\n\r\n```python\r\nimport replicate\r\n\r\n\r\ndef go():\r\n for event in replicate.stream(\r\n \"meta/meta-llama-3-8b-instruct\",\r\n input={\r\n \"top_p\": 0.9,\r\n \"prompt\": \"Hi! Help me please:)\",\r\n \"max_tokens\": 512,\r\n \"min_tokens\": 0,\r\n \"temperature\": 0.01,\r\n \"stop_sequences\": \"<|end_of_text|>\",\r\n \"prompt_template\": \"<|begin_of_text|><|start_header_id|>system<|end_header_id|>\\n\\nYou are a helpful assistant<|eot_id|><|start_header_id|>user<|end_header_id|>\\n\\n{prompt}<|eot_id|><|start_header_id|>assistant<|end_header_id|>\\n\\n\",\r\n \"presence_penalty\": 0,\r\n \"frequency_penalty\": 1,\r\n },\r\n ):\r\n print(str(event), end=\"\")\r\n print()\r\n\r\n\r\ngo()\r\nprint(\"---------------------------------\")\r\ngo()\r\nprint(\"---------------------------------\")\r\ngo()\r\nprint(\"---------------------------------\")\r\n\r\n```\r\n\r\nThe latest release repeats the same token once for each previous\r\ninvocation.\r\n\r\n
\r\n\r\n```\r\nHi there! I'd be happy to help you with whatever you need. What's on your mind?assistant\r\n\r\nI'm glad you asked! I'm here to help you with any questions or problems you might have. Whether it's something big or something small, I'm here to help.\r\n\r\nSo, what's on your mind? Do you have a specific question or problem you'd like to talk about?assistant\r\n\r\nI'm all ears! Take your time, and feel free to share as much or as little as you'd like.\r\n\r\nRemember, everything we discuss is confidential and just between us. So,\r\n---------------------------------\r\nHi\r\nHi there! I'd be happy to help you with whatever you need. What's on your mind?assistant\r\n\r\nI'm glad you asked! I'm here to help you with any questions or problems you might have. Whether it's something big or something small, I'm here to help.\r\n\r\nSo, what's on your mind? Do you have a specific question or problem you'd like to talk about?assistant\r\n\r\nI'm all ears! Take your time, and feel free to share as much or as little as you'd like.\r\n\r\nRemember, everything we discuss is confidential and just between us. So,\r\n---------------------------------\r\nHi\r\nHi\r\nHi there! I'd be happy to help you with whatever you need. What's on your mind?assistant\r\n\r\nI'm glad you asked! I'm here to help you with any questions or problems you might have. Whether it's something big or something small, I'm here to help.\r\n\r\nSo, what's on your mind? Do you have a specific question or problem you'd like to talk about?assistant\r\n\r\nI'm all ears! Take your time, and feel free to share as much or as little as you'd like.\r\n\r\nRemember, everything we discuss is confidential and just between us. So,\r\n---------------------------------\r\n```\r\n\r\n
\r\n\r\nThis is caused by incorrect initialization of the stream `Decoder`\r\nobject. After applying this change, the code produces the correct\r\nbehavior:\r\n\r\n
\r\n\r\n```\r\nHi there! I'd be happy to help you with whatever you need. What's on your mind?assistant\r\n\r\nI'm glad you asked! I'm here to help you with any questions or problems you might have. Whether it's something big or something small, I'm here to help.\r\n\r\nSo, what's on your mind? Do you have a specific question or problem you'd like to talk about?assistant\r\n\r\nI'm all ears! Take your time, and feel free to share as much or as little as you'd like.\r\n\r\nRemember, everything we discuss is confidential and just between us. So,\r\n---------------------------------\r\nHi there! I'd be happy to help you with whatever you need. What's on your mind?assistant\r\n\r\nI'm glad you asked! I'm here to help you with any questions or problems you might have. Whether it's something big or something small, I'm here to help.\r\n\r\nSo, what's on your mind? Do you have a specific question or problem you'd like to talk about?assistant\r\n\r\nI'm all ears! Take your time, and feel free to share as much or as little as you'd like.\r\n\r\nRemember, everything we discuss is confidential and just between us. So,\r\n---------------------------------\r\nHi there! I'd be happy to help you with whatever you need. What's on your mind?assistant\r\n\r\nI'm glad you asked! I'm here to help you with any questions or problems you might have. Whether it's something big or something small, I'm here to help.\r\n\r\nSo, what's on your mind? Do you have a specific question or problem you'd like to talk about?assistant\r\n\r\nI'm all ears! Take your time, and feel free to share as much or as little as you'd like.\r\n\r\nRemember, everything we discuss is confidential and just between us. So,\r\n---------------------------------\r\n\r\n```\r\n\r\nSigned-off-by: Mattt Zmuda ","shortMessageHtmlLink":"Fix initialization of stream decoder (#288)"}},{"before":null,"after":"35c854443c868c7a1568ffb38400c814edc89ecb","ref":"refs/heads/mattt/fix-stream-decoder-initialization","pushedAt":"2024-04-19T21:42:07.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"mattt","name":"Mattt","path":"/mattt","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/7659?s=80&v=4"},"commit":{"message":"Fix initialization of stream decoder\n\nSigned-off-by: Mattt Zmuda ","shortMessageHtmlLink":"Fix initialization of stream decoder"}},{"before":null,"after":"329262bdf7cfdd9bdf29c9adbee170027bc592dc","ref":"refs/heads/update-docs-official-models","pushedAt":"2024-04-19T19:31:24.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"cbh123","name":"Charlie Holtz","path":"/cbh123","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/14149230?s=80&v=4"},"commit":{"message":"async example, and link documentation","shortMessageHtmlLink":"async example, and link documentation"}},{"before":"44fcdee1430a796d2edbafdbc514eae96b112597","after":"cfe72347e0c0b160c744cb585d6361d43abc821b","ref":"refs/heads/mattt/rye","pushedAt":"2024-04-12T14:43:46.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"mattt","name":"Mattt","path":"/mattt","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/7659?s=80&v=4"},"commit":{"message":"Fix R1737: Use 'yield from' directly instead of yielding each element one by one (use-yield-from)\n\nSigned-off-by: Mattt Zmuda ","shortMessageHtmlLink":"Fix R1737: Use 'yield from' directly instead of yielding each element…"}},{"before":"70f669991d4bc33f2f1525b6b04eebf7192b3007","after":"44fcdee1430a796d2edbafdbc514eae96b112597","ref":"refs/heads/mattt/rye","pushedAt":"2024-04-12T14:39:52.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"mattt","name":"Mattt","path":"/mattt","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/7659?s=80&v=4"},"commit":{"message":"Use setup-rye action\n\nSigned-off-by: Mattt Zmuda ","shortMessageHtmlLink":"Use setup-rye action"}},{"before":"29b7847bb68ae6fa1df08964e214555433b4cf6c","after":"70f669991d4bc33f2f1525b6b04eebf7192b3007","ref":"refs/heads/mattt/rye","pushedAt":"2024-04-12T14:34:49.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"mattt","name":"Mattt","path":"/mattt","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/7659?s=80&v=4"},"commit":{"message":"Install with bash shell\n\nSigned-off-by: Mattt Zmuda ","shortMessageHtmlLink":"Install with bash shell"}},{"before":"9b87229ee3ec62fc1b19580cfedc21cea9c587ce","after":"29b7847bb68ae6fa1df08964e214555433b4cf6c","ref":"refs/heads/mattt/rye","pushedAt":"2024-04-12T14:30:09.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"mattt","name":"Mattt","path":"/mattt","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/7659?s=80&v=4"},"commit":{"message":"Set bash shell\n\nSigned-off-by: Mattt Zmuda ","shortMessageHtmlLink":"Set bash shell"}},{"before":"0f1c8b70f259c3245a2ccbd8e633a830934b11cd","after":"9b87229ee3ec62fc1b19580cfedc21cea9c587ce","ref":"refs/heads/mattt/rye","pushedAt":"2024-04-12T14:28:23.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"mattt","name":"Mattt","path":"/mattt","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/7659?s=80&v=4"},"commit":{"message":"Set bash shell\n\nSigned-off-by: Mattt Zmuda ","shortMessageHtmlLink":"Set bash shell"}},{"before":"bd0c56c0752d498c49de7ddc16c11480f7ece328","after":"0f1c8b70f259c3245a2ccbd8e633a830934b11cd","ref":"refs/heads/mattt/rye","pushedAt":"2024-04-12T14:22:37.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"mattt","name":"Mattt","path":"/mattt","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/7659?s=80&v=4"},"commit":{"message":"Update to actions/checkout@v4 and actions/setup-python@v5\n\nSigned-off-by: Mattt Zmuda ","shortMessageHtmlLink":"Update to actions/checkout@v4 and actions/setup-python@v5"}},{"before":"f7c5333fc00e97426e184213b531cf2c8b822b06","after":"bd0c56c0752d498c49de7ddc16c11480f7ece328","ref":"refs/heads/mattt/rye","pushedAt":"2024-04-12T14:21:24.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"mattt","name":"Mattt","path":"/mattt","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/7659?s=80&v=4"},"commit":{"message":"Update script/setup for GitHub Actions\n\nSigned-off-by: Mattt Zmuda ","shortMessageHtmlLink":"Update script/setup for GitHub Actions"}},{"before":null,"after":"f7c5333fc00e97426e184213b531cf2c8b822b06","ref":"refs/heads/mattt/rye","pushedAt":"2024-04-12T14:10:13.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"mattt","name":"Mattt","path":"/mattt","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/7659?s=80&v=4"},"commit":{"message":"Rewrite scripts to use rye\n\nSigned-off-by: Mattt Zmuda ","shortMessageHtmlLink":"Rewrite scripts to use rye"}}],"hasNextPage":true,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"djE6ks8AAAAEUGaneAA","startCursor":null,"endCursor":null}},"title":"Activity · replicate/replicate-python"}