This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {% if context.params.rectype != 'PETscan' and | |
| context.params.rectype != 'PETreport' and | |
| context.params.rectype != 'PETprepare' and | |
| context.params.rectype != 'PETinj' %} | |
| {% error "rectype should be PETscan, PETreport, PETprepare or PETinj" %} | |
| {% endif %} | |
| {% set body = {"body": {"chtno": context.params.chtno, "deptNo": context.params.deptno, "recType": context.params.rectype}} %} | |
| select |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from openai import OpenAI | |
| client = OpenAI( | |
| api_key='ollama', | |
| base_url="http://localhost:11434/v1", | |
| ) | |
| # this will fail, showing openai.NotFoundError: 404 page not found | |
| data = client.embeddings.create( | |
| input='hi', |
OlderNewer