Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support-gpt-4o #51

Merged
merged 2 commits into from
May 14, 2024
Merged

support-gpt-4o #51

merged 2 commits into from
May 14, 2024

Conversation

Michael1Peng
Copy link

No description provided.

@Michael1Peng
Copy link
Author

用正则匹配 gpt-4o model 名,兼容一下

dont compile every time and dont !="" because of +
@xqdoo00o xqdoo00o merged commit aeec615 into xqdoo00o:master May 14, 2024
6 checks passed
@Michael1Peng
Copy link
Author

Michael1Peng commented May 14, 2024

@xqdoo00o 我这边自测发现,matches[2]!= "" 需要补上,go 的正则我不太了解,没匹配中数组也会有个空字符串,len(matches) == 3
image

@xqdoo00o
Copy link
Owner

不会呀,+表示至少有一个字符匹配到,如果是长度是3的话,是一定不是空字符串的

@xqdoo00o
Copy link
Owner

你是对的,打游戏太迷,忘记测试了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants