monarch-initiative / ontogpt

LLM-based ontological extraction tools, including SPIRES
https://monarch-initiative.github.io/ontogpt/
BSD 3-Clause "New" or "Revised" License
548 stars 68 forks source link

gpt-4o #376

Closed rkboyce closed 1 month ago

rkboyce commented 1 month ago

Hi - I am trying to add GPT-4o to the ./src/ontogpt/models.yaml per below but am getting an error message:

KeyError: 'Could not automatically map gpt-4o-2024-05-13 to a tokeniser. Please use `tiktoken.get_encoding` to explicitly get the tokeniser you expect.'

YAML addition:

- name: MODEL_GPT_4o                                                                                                                                    
    canonical_name: "gpt-4o-2024-05-13"                                                                                                                  
    alternative_names:                                                                                                                                   
      - "gpt-4o-2024-05-13"                                                                                                                              
    provider: OpenAI                                                                                                                                     
    creators:                                                                                                                                            
      - OpenAI                                                                                                                                           
    requirements:                                                                                                                                        
      diskspace: "N/A"                                                                                                                                   
      memory: "N/A"                                                                                                                                      
    is_default: true          

Could you please suggest a way forward?

Thanks!

caufieldjh commented 1 month ago

I'm not entirely certain why this didn't work, but I'll add it in a PR. Luckily this (i.e., adding models manually) won't be necessary in the near future.

caufieldjh commented 1 month ago

OK, gpt-4o should now be available in ontogpt 0.3.12.

rkboyce commented 1 month ago

That worked! Thank you!