return modelAPIURL, ModelAPIKey(key), nil
}
- return modelChatGPTURL, newChatGPTAuth(filepath.Join(dir, tokenFileName), authIssuer), nil
+ return modelChatGPTURL, newChatGPTAuth(filepath.Join(dir, chatgptTokenFileName), chatgptIssuer), nil
}
// newModelClient returns a client for the Responses endpoint at url. It records
return ModelResponse{}, fmt.Errorf("authorize model call: %w", err)
}
- _, chatgpt := c.auth.(*chatgptAuth)
+ _, chatgpt := c.auth.(*ChatGPTAuth)
if chatgpt {
httpRequest.Header.Set("session_id", c.cacheKey)
}