First time here? Check out the FAQ!

gemisigo's profile - activity

2025-03-13 21:04:55 -0500 received badge Famous Question (source)
2025-01-09 19:58:48 -0500 marked best answer Which OpenAI AI models can be used?

I've got an email from OpenAI that they will cease to provide access to Assistant API v1 on December 18.

I checked the project to which the API key used by Wing was created in and found dozens of assistants created by Wing. The funny thing is that they were all set to gpt-4-turbo, even though when configuring I set the model to gpt-4o-mini and the console did not complain about the model. Now, gpt-4-turbo is not the most expensive model regarding the input/output token price (it's $10 / $30 per 1M tokens for input/output respectively) when compared to eg. gpt-4 ($30 / $60 ) but is a bit pricier than gpt-4o ($2.5 / $10) and o1-mini ($3 / $12) and considerably more expensive than gpt-4o-mini ($0.15 / $0.6), for example.

Also, when asking the AI to refactor, I see increase in API requests and token usage, but strangely, it matches neither the model picked in Wing AI config nor the model set in the Assistant created by Wing. Last, I tried setting the model in Wing to gpt-4o-mini and now refactoring increases the usage of GPT-4o-mini-2024-07-18 (according to openai's activity dashboard). And when using the chat, it does not seem to result in any API requests at all.

What is happening here? Does Wing create an Assistant that uses the gpt-4-turbo instead of the model given in the configuration but then doesn't use it anyway? Also, why create so many? I tried changing the model used by the assistant to see if it changes anything but it immediately broke the AI in Wing. I had to delete the assistant, disable AI in Wing, and then restart it.

Which OpenAI AI models can be used when configuring the AI?

Perhaps having a dropdown with the possible models would be less error-prone than trying to guess the correct name.

2025-01-09 19:58:22 -0500 received badge Notable Question (source)
2024-12-22 17:57:02 -0500 received badge Popular Question (source)
2024-12-14 03:44:46 -0500 commented answer Which OpenAI AI models can be used?

I don't want to sound a miser, but there are considerable differences in price for different models. You say gpt-4o-mini

2024-12-13 09:12:11 -0500 asked a question Which OpenAI AI models can be used?

Which OpenAI AI models can be used? I've got an email from OpenAI that they will cease to provide access to Assistant AP

2024-09-23 16:04:19 -0500 marked best answer Trouble setting up AI

I have trouble setting up AI. I've tried multiple models. For gpt-4o-mini it says "unsupported model" (see the error message). For gpt-4o it's even worse, I get "The requested model 'gpt-4o' does not exist". It allows gpt-4-turbo though. Is it not possible to use gpt-4o-mini or gpt-4o?

The console shows the following error message

> Starting AI Chat "C:\Program
> Files\Wing Pro
> 10\bin\__os__\win32\runtime-python3.11\python.exe" "C:\Users\gemis\AppData\Roaming\Wing
> Pro
> 10\updates\from_10.0.2.0\10.0.5.0\plugins\ai\_openai_chat.py"
> WINGHOME=C:\Program Files\Wing Pro 10
> WINGSETTINGSDIR=C:\Users\gemis\AppData\Roaming\Wing
> Pro 10 STARTED=127.0.0.1:57015
> 
> Could not create AI Assistant:
> Traceback (most recent call last):  
> File
> "C:\Users\gemis\AppData\Roaming\Wing
> Pro
> 10\updates\from_10.0.2.0\10.0.5.0\plugins\ai\_openai_chat.py",
> line 94, in create
>     self.assistant = client.beta.assistants.create(
>                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File
> "C:\Program Files\Wing Pro
> 10\bin\__os__\win32\runtime-pip-openai-py3.11\lib\site-packages\openai\resources\beta\assistants\assistants.py",
> line 95, in create
>     return self._post(
>            ^^^^^^^^^^^   File "C:\Program Files\Wing Pro
> 10\bin\__os__\win32\runtime-pip-openai-py3.11\lib\site-packages\openai\_base_client.py",
> line 1088, in post
>     return cast(ResponseT, self.request(cast_to, opts,
> stream=stream, stream_cls=stream_cls))
>                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "C:\Program Files\Wing Pro
> 10\bin\__os__\win32\runtime-pip-openai-py3.11\lib\site-packages\openai\_base_client.py",
> line 853, in request
>     return self._request(
>            ^^^^^^^^^^^^^^   File "C:\Program Files\Wing Pro
> 10\bin\__os__\win32\runtime-pip-openai-py3.11\lib\site-packages\openai\_base_client.py",
> line 930, in _request
>     raise self._make_status_error_from_response(err.response)
> from None openai.BadRequestError:
> Error code: 400 - {'error':
> {'message': "The requested model
> 'gpt-4o-mini' cannot be used with the
> Assistants API in v1. Follow the
> migration guide to upgrade to v2:
> https://platform.openai.com/docs/assistants/migration.",
> 'type': 'invalid_request_error',
> 'param': 'model', 'code':
> 'unsupported_model'}}
2024-08-06 18:27:58 -0500 received badge Famous Question (source)
2024-08-02 07:38:32 -0500 received badge Notable Question (source)
2024-08-01 08:32:53 -0500 commented answer Trouble setting up AI

Using gpt-4o for AI Refactoring does work, but there's a minor glitch. When Current Scope is selected for Target, Wing

2024-08-01 04:24:24 -0500 received badge Popular Question (source)
2024-08-01 04:22:11 -0500 received badge Famous Question (source)
2024-08-01 04:22:11 -0500 received badge Notable Question (source)
2024-08-01 04:22:11 -0500 received badge Popular Question (source)
2024-07-26 04:37:27 -0500 asked a question Trouble setting up AI

Trouble setting up AI I have trouble setting up AI. I've tried multiple models. For gpt-4o-mini it says "unsupported mod

2021-09-24 22:12:23 -0500 received badge Popular Question (source)
2021-09-24 22:12:23 -0500 received badge Famous Question (source)
2021-09-24 22:12:23 -0500 received badge Notable Question (source)
2021-05-18 16:00:51 -0500 commented answer Rewrap text

That sounds great! My trial will expire in a few days and I plan on purchasing a non-commercial perpetual license. Will

2021-05-18 09:43:31 -0500 commented answer Rewrap text

Great! Do you have an ETA for 8.0.0.5?

2021-05-18 07:20:50 -0500 marked best answer Is it possible to add a second Edge Marker and wrap docstring?

PEP 8 suggests statement lines should be limited to 79 characters and lines with comments and docstrings to 72 characters. In Preferences > Editor > Line Wrapping I can set a single Edge Marker that shows where that column is in the editor. There's also a setting Reformatting Wrap Column that can be set to a value different from the Edge Marker. So at first, I thought I'm out of luck, either my code will be wrapped at column 72 or my docstrings will be wrapped at column 79. But then came the surprise, the docstrings weren't wrapped. I mean they weren't wrapped at all. I had to do that manually.

Is there a way to turn on docstring wrapping at a user-configurable column? And if there's none, is it possible to add a second Edge Marker to have at least a visual crutch?

2021-05-17 16:18:07 -0500 commented question Is it possible to add a second Edge Marker and wrap docstring?

I have auto-formatting turned on and triggered by saving the file, that's why I was surprised it didn't format docstring

2021-05-17 16:02:46 -0500 received badge Supporter ( source )
2021-05-17 16:00:56 -0500 marked best answer Rewrap text

What is the command for Source > Rewrap text? I want to assign a hotkey to it (besides the obvious Alt+s, w on Windows) but couldn't find the command.

2021-05-17 16:00:56 -0500 received badge Scholar ( source )
2021-05-17 16:00:53 -0500 commented answer Rewrap text

Good idea, I definitely wouldn't guess that one. Thanks for the hint!

2021-05-17 14:36:36 -0500 asked a question Rewrap text

Rewrap text What is the command for Source > Rewrap text? I want to assign a hotkey to it (besides the obvious Alt+s,

2021-05-17 13:58:36 -0500 commented question Is it possible to add a second Edge Marker and wrap docstring?

Very strange things happen. I thought that having the auto-formatting set to Whole Files Before Save would format the wh

2021-05-17 13:56:53 -0500 commented question Is it possible to add a second Edge Marker and wrap docstring?

Very strange things happen. I thought that having the auto-formatting set to Whole Files Before Save would format the wh

2021-05-15 11:05:17 -0500 received badge Student (source)
2021-05-15 11:04:52 -0500 asked a question Is it possible to add a second Edge Marker and wrap docstring?

Is it possible to add a second Edge Marker and wrap docstring? PEP 8 suggests statement lines should be limited to 79 ch