First time here? Check out the FAQ!
1

Trying to use Claude throws an exception

Sending request: Write the python code for hello world. filename=None focus=
Ran request:
Chat via completions API failed with exit_code=1; output:
Traceback (most recent call last):
  File "/home/glenn/.wingpro11/updates/from_11.1.0.0/11.1.3.0/plugins/ai/_openai_completion.py", line 464, in <module>
    CompletionsAPIMain()
  File "/home/glenn/.wingpro11/updates/from_11.1.0.0/11.1.3.0/plugins/ai/_openai_completion.py", line 420, in CompletionsAPIMain
    result = _RunOpenAICompletionRequest(key, base_url, model, messages)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/glenn/.wingpro11/updates/from_11.1.0.0/11.1.3.0/plugins/ai/_openai_completion.py", line 454, in _RunOpenAICompletionRequest
    result = chat.completions.create(
             ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/wingpro11/bin/__os__/linux-x64/external-packages/openai/_utils/_utils.py", line 286, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/wingpro11/bin/__os__/linux-x64/external-packages/openai/resources/chat/completions/completions.py", line 1192, in create
    return self._post(
           ^^^^^^^^^^^
  File "/usr/lib/wingpro11/bin/__os__/linux-x64/external-packages/openai/_base_client.py", line 1297, in post
    return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/wingpro11/bin/__os__/linux-x64/external-packages/openai/_base_client.py", line 1070, in request
    raise self._make_status_error_from_response(err.response) from None
openai.NotFoundError: Error code: 404 - {'error': {'code': 'not_found_error', 'message': 'model: claude-3-7-sonnet-4-6', 'type': 'invalid_request_error', 'param': None}}

Configuration is default for all AI options, except using key in file (/home/glenn/.wingpro11/claude.key)

gglazer's avatar
36
gglazer
asked 2026-06-01 21:37:43 +0000, updated 2026-06-01 21:39:08 +0000
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

I think that's what happens when you try to use a model that's no longer supported. You'll need to change to another model in the AI provider configuration.

BTW, we're close to releasing the first beta of Wing 12 that introduces AI agent based development, starting with Claude Codec. It is way better than the one-off queries that Wing 11 supports. That will still be possible but from my experiences with this, I suspect most people will use agents instead.

Wingware Support's avatar
4.3k
Wingware Support
answered 2026-06-01 21:41:23 +0000
edit flag offensive 0 remove flag delete link

Comments

Do you have a list of supported model versions? Sonnet is about right for my work, I'm not fussy about the particular version.

gglazer's avatar gglazer (2026-06-01 22:10:30 +0000) edit

It's whatever Anthropic is supporting at any given moment. I think their page is https://platform.claude.com/docs/en/abo…

Wingware Support's avatar Wingware Support (2026-06-01 22:47:03 +0000) edit
add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer